Angelo Höngens
2010-10-09 09:47:32 UTC
Hey,
I use net-snmp extend scripts a lot in my organization to monitor all kinds of values on linux, freebsd and windows servers, and that's been working great with cacti so far. However, net-snmp seems to return only string datatypes instead of integers. It's not a problem for Cacti, since it automatically does string-to-integer conversion, but I'm starting out with nagios and other software, and it really has problems.
Example:
This extend line:
extend .1.3.6.1.4.1.2021.54.101.0 test "/bin/echo 123"
Gets me the following return value:
UCD-SNMP-MIB::ucdavis.54.101.0.4.1.2.4.116.101.115.116.1 = STRING: "123"
Is there a way I can force net-snmp to return an integer value?
--
With kind regards,
Angelo Höngens
Systems Administrator
------------------------------------------
NetMatch
tourism internet software solutions
Ringbaan Oost 2b
5013 CA Tilburg
T: +31 (0)13 5811088
F: +31 (0)13 5821239
mailto:***@netmatch.nl
http://www.netmatch.nl
------------------------------------------
I use net-snmp extend scripts a lot in my organization to monitor all kinds of values on linux, freebsd and windows servers, and that's been working great with cacti so far. However, net-snmp seems to return only string datatypes instead of integers. It's not a problem for Cacti, since it automatically does string-to-integer conversion, but I'm starting out with nagios and other software, and it really has problems.
Example:
This extend line:
extend .1.3.6.1.4.1.2021.54.101.0 test "/bin/echo 123"
Gets me the following return value:
UCD-SNMP-MIB::ucdavis.54.101.0.4.1.2.4.116.101.115.116.1 = STRING: "123"
Is there a way I can force net-snmp to return an integer value?
--
With kind regards,
Angelo Höngens
Systems Administrator
------------------------------------------
NetMatch
tourism internet software solutions
Ringbaan Oost 2b
5013 CA Tilburg
T: +31 (0)13 5811088
F: +31 (0)13 5821239
mailto:***@netmatch.nl
http://www.netmatch.nl
------------------------------------------