Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
As I see it impossible to delete this packet. When I trying to delete this packet, apt-get want to delete cacti too. Is it possible to change way of getting SNMP information in cacti itself?
function snmp_get_method($version = 1) {
if ((function_exists("snmpget")) && ($version == 1)) {
return SNMP_METHOD_BINARY;
}else if ((function_exists("snmp2_get")) && ($version == 2)) {
return SNMP_METHOD_BINARY;
}else if ((function_exists("snmp3_get")) && ($version == 3)) {
return SNMP_METHOD_BINARY;
}else if ((($version == 2) || ($version == 3)) && (file_exists(read_config_option("path_snmpget")))) {
return SNMP_METHOD_BINARY;
}else if (function_exists("snmpget")) {
/* last resort (hopefully it isn't a 64-bit result) */
return SNMP_METHOD_BINARY;
}else if (file_exists(read_config_option("path_snmpget"))) {
return SNMP_METHOD_BINARY;
}else{
/* looks like snmp is broken */
return SNMP_METHOD_BINARY;
}
}
After this my system started working under hight load (it used 95% of system resourses). Is it normal for cacti with using snmp binary? By the way, cacti started to get information from this 2 devices...
Well, the load issue depends on amount of SNMP requests. We therefor recommend using php-snmp. But we know, that this has some "issues". And your results show that you're facing those issues as well. So it seems to be a bug in php-snmp ...
R.
But after running it got error: "Warning: snmp3_get(): An error occurred, quitting in /usr/share/cacti/site/test.php on line 3"
And I got this error from any device. Maybe I'm doing something wrong? Script has rights to be executed (+x).