Probe Function not working

Forum for questions and support relating to the 1.30.x releases only.
Locked
Andre81
Posts: 14
Joined: Thu Jun 25, 2009 10:25 am

Probe Function not working

Post by Andre81 »

Hi @ all,

I have a problem with the probe function, so this is what I've changed in /usr/share/zoneminder/www/skins/classic/views/monitorprobe.php :

This is the output of arp -a command:

Code: Select all

andrea@nvr:~$ arp -a
? (172.16.1.11) at 00:40:8c:aa:XX:XX [ether] on ens160
? (172.16.1.8) at 00:02:d1:0d:XX:XX [ether] on ens160
? (172.16.1.10) at 00:40:8c:aa:XX:XX [ether] on ens160
? (172.16.1.14) at 00:0c:42:e1:XX:XX [ether] on ens160
? (172.16.1.1) at d4:ca:6d:80:XX:XX [ether] on ens160
andrea@nvr:~$

Code: Select all

 if ( !preg_match( '/^.*([\d.]+).*([0-9a-f:]+).*/', $line, $matches ) )
        continue;
    $ip = $matches[1];
    $host = $ip;
    $mac = $matches[2];
    //echo "I:$ip, H:$host, M:$mac<br/>";
whit this:

Code: Select all

 if ( !preg_match( '/(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).*((?:[a-zA-Z0-9]{2}[:-]){5}[a-zA-Z0-9]{2})/', $line, $matches ) )
        continue;

    $ip = $matches[1].".".$matches[2].".".$matches[3].".".$matches[4];
    $host = $ip;
    $mac = $matches[5];
    //echo "I:$ip, H:$host, M:$mac<br/>";
now the probe function found the cameras, but when select the camera it not compiling the configuration page automatically, so the function is unusable.


Anyone can help?
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Probe Function not working

Post by knight-of-ni »

There are two different probe functions. From the context of your message, you appear to be referring to the (older) probe function that never really worked, and is currently unmaintained.

If your camera is onvif compliant, then use the new onvif probe.

We currently do not have a working probe function for non-onvif cameras, but we will accept pull requests.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked