Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
We are moitoring UPS's via a SNMP Card. Some of the values, however, need to be divided by 10 to get proper value. In the forums, I cam accross this solution :
That works perfectly ... but, we need to set thresholds and this is where it fails as the output differs between a status of Ok and Warning / Critical :
SNMP OK - 2178 | iso.3.6.1.4.1.935.1.1.1.3.2.1.0=2178
Haven't used this plugin before, but the code looks like it does what you want. You'd simply multiply by 0.1 instead of dividing by 10. Assuming Nagios::Plugin does the threshold calculations I guess? There's no comparisons to warning/critical being done in the above code.