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.
How can I get an SNMP data query to translate an integer value to text for vendor specific MIBs? Such as is done with the snmpwalk command.The SNMP query just gives me '2' instead of 'active' or 'active(2)'. Is this something that needs to be configured for snmp-php, the MIBDIR environment variable, or snmp.conf? I am using 0.8.7i
When running an SNMP query php-snmp (/prod/cacti/lib/snmp.php) is being used, correct? Or are the system snmpget/snmpwalk commands being used? From my understanding MIBs can be loaded with with php-snmp (http://php.net/manual/en/function.snmp-read-mib.php) and of course they can be loaded with the system snmp commands.
So is there no easy way to tell Cacti to load a vendor MIB? Please let me know if I am wrong in anything stated. I refuse to believe this is not possible!
This is ONLY done for interface stats. And it is done statically in the code == bad solution.
We do NOT use MIBs (they are often broken and badly written).
And, as already told, you will be able to do any conversion with upcoming data query XML. See http://docs.cacti.net/manual:088:3a_adv ... xml_syntax, especially "rewrite_index"
R.