Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_snmp_multiplier
Current Version
1.0
Last Release Date
2017-07-06
Compatible With
- Nagios 3.x
- Nagios 4.x
Owner
License
GPL
Hits
6990
Files:
File | Description |
---|---|
check_snmp.patch | check_snmp.patch |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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
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
Reviews (0)
Be the first to review this listing!