Page 1 of 1

Probe Function not working

Posted: Fri Aug 12, 2016 2:20 pm
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?

Re: Probe Function not working

Posted: Fri Aug 12, 2016 5:29 pm
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.