Patches

check_snmp_multiplier

Description:

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

Compatible With

  • Nagios 3.x
  • Nagios 4.x

License

GPL


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!
Project Files
Project Notes
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
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
5 (1)
Favorites
0
Views
6,732