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/>";
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/>";
Anyone can help?