Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
check_snmp.patch add ability to multiply the check_snmp result by a float number. Nagios Plugins: 2.2.1
Current Version
1.0
Last Release Date
2017-07-06
Owner
Marcus Vinicius
License
GPL
Compatible With
This is a simple patch to make multiplications of the check_snmp results.
The multiplier can be defined with -M option.
Tested version: nagios-plugins-2.2.1
APPLING PATCH # cd /root/marcus/nagios-plugins-2.2.1/ # patch -p0 < check_snmp.patch
USAGE EXAMPLES
- Normal check ./check_snmp -H 10.10.10.10 -C Ative -o .1.3.6.1.4.1.8741.1.3.1.2.0 OK - 1229 | iso.3.6.1.4.1.8741.1.3.1.2.0=1229
- Multiply by 0.1 ./check_snmp -H 10.10.10.10 -C Ative -o .1.3.6.1.4.1.8741.1.3.1.2.0 -M 0.1 OK - 123 | iso.3.6.1.4.1.8741.1.3.1.2.0=123
- Multiply by 2 ./check_snmp -H 10.10.10.10 -C Ative -o .1.3.6.1.4.1.8741.1.3.1.2.0 -M 2 -w 100 -c 2000 CRITICAL - *2098* | iso.3.6.1.4.1.8741.1.3.1.2.0=2098;100;2000;
- Verbose enabled ./check_snmp -H 10.10.10.10 -C Ative -o .1.3.6.1.4.1.8741.1.3.1.2.0 -M 2 -v iso.3.6.1.4.1.8741.1.3.1.2.0 = Gauge32: 1070 Doing multiplication for result 1070 by 2.000000 Multiplication result: 2140.0 OK - 2140 | iso.3.6.1.4.1.8741.1.3.1.2.0=2140
You must be logged in to submit a review.
To:
From: