SNMP

Check ifOperStatus via snmpget

Description:

This script checks the ifOperStatus of a network interface via snmpget. The difference with the one provided by the normal distribution of Nagios is that this one works without perl.

Current Version

Last Release Date

June 23, 2009

Compatible With


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 script checks the ifOperStatus of a network interface via snmpget. The difference with the one provided by the normal distribution of Nagios is that this one works without perl. You must put this script on your libexec/nagios directory and give him execution file mode. The command definition should be like this: define command{ command_name check_ifoperstatusNAS command_line $USER1$/check_ifoperstatNAS $ARG1$ $HOSTADDRESS$ $ARG2$ } The usage on the definition of the service should be like this: check_ifoperstatusNAS!! Greetings, nalvarezs.
Reviews (1) Add a Review
A little mistake
by Marte88, October 31, 2010
There is a little mistake in line 18.

You can read:
elif [ $comm -eq 0 ]; then
but it must be:
elif [ $comm -eq 2 ]; then
You have to replace 0 for 2 because the answer of snmpwalk when one ethernet interface shows down is 2 not 0.

the value 0 is only for unreachable ethernet interface.

Anyway it's a good plugin.
Helpful? Yes  No 
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
4 (1)
Favorites
0
Views
156,123