Home Directory Patches check_snmp_multiplier

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_snmp_multiplier

Current Version
1.0
Last Release Date
2017-07-06
Compatible With
  • Nagios 3.x
  • Nagios 4.x
License
GPL
Hits
6742
Files:
FileDescription
check_snmp.patchcheck_snmp.patch
Nagios CSP

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!
check_snmp.patch add ability to multiply the check_snmp result by a float number. Nagios Plugins: 2.2.1
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