The method for Downed Device Detection is SNMP
In previous version of cacti averything were good. All devices are pinged from command line. When I go to Console -> Devices -> (Edit) my buggy router, I see that snmp is available (there is information about router in left upper corner and Verbose Query is giving me information about my interfaces).
I turn on Debug mode for logging. In cacti log:
Code: Select all
03/02/2009 01:05:34 PM - CMDPHP: Poller[0] Host[10] SNMP: Host did not respond to SNMP
I guessed that for this message is responsible:
Code: Select all
/usr/share/cacti/site/lib/ping.php
Code: Select all
function ping_snmp()
5.2.6-1+lenny2
this is a BUG in condition:
Code: Select all
if (version_compare("5", phpversion(), "<")) {
$oid = ".1";
}else{
$oid = ".1.3.6.1.2.1.1.3.0";
}
Code: Select all
if (version_compare("5", "floatval(phpversion())", "<")) {
$oid = ".1";
}else{
$oid = ".1.3.6.1.2.1.1.3.0";
}
Finally I have questions:
1. Why some of my devices worked perfectly and why some of them were buggy before changing the function (I think there may be a bug somewhere also)
2. Why 3 of my routers will have problems with SNMP (SNMP error in left right corner and with Verbose Query)
Thanks for help