[Nagiosplug-devel] suggestion for enhancment of check_snmp

Frank IJskes fijskes at allshare.nl
Tue Apr 5 12:39:44 CEST 2011


Hi,
 
I would like to suggest an extra parameter for check_snmp. 
--divideby
 
I use the check_snmp to get a temperature reading of a dell motherboard. The snmp returned value is in tenth of degrees. SNMP does not allow decimals. So a lot of systems report a value that is multiplied. This is also true for reading APC UPS current usage. 
When using nagios with PNP for nagios, to gather the nagios information in RRD, and create graphs from it, it would be great to actually have the corrected information available.
I therefor suggest an option to divide the snmp returned value. I am unsure if the warning and critical level should be checked against the original snmp value or against the calculated return value. This is a design choice i leave to the developer. I think the original (snmp returned) value would be best, because of the higher resolution.
 
For me it would look like: 
/usr/local/nagios/libexec/check_snmp -H host02 -C public -o .1.3.6.1.4.1.674.10892.1.700.20.1.6.1.1 -w 300 -c 400 -l "Temperatuur Moederboard" --divideby 10
 
Perhaps someone might have a reason to also ask for --multiply to convert bits to bytes (--multpily 8) or convert snmp values to M (--multiply 1024).
I do not need this, but if a divide is present, a multiply might also be handy.
 
Kind regards,
 
Frank IJskes
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20110405/446204ac/attachment.html>


More information about the Devel mailing list