Christmas arrives to TComm and we celebrate it adding a new category and a new free plugin for this category. It is a plugin to known the state of the interfaces of a network device that supports RFC 1213 (IF-MIB).

check_iface_status let us checking the operational status of an interfaces list given. If all  interfaces are UP then the plugin state is OK, if not, if almost one of the interfaces has an operational status different to UP state, plugin checks if the interface is in the warning interface list or in the critical interface list to return the plugin state.

An example should make this more clear.

check_iface_status -H 192.0.0.13 -u 1..5,8 -w 1,8 -c 2..5

In this case, plugin checks interfaces 1,2,3,4,5 and 8 of a device with address 192.0.0.13, and possible states are:

- OK, if all checked interfaces has a operational status equal to UP

- WARNING,if any of the interfaces 1 or 8 haven´t a operational status equal to UP

- CRITICAL, if any of the interfaces 2, 3, 4 or 5 haven´t a operational status equal to UP

- UNKNOWN, if it cant´s establish a SNMP connection or another undetected error.

Also, plugin can be used in test mode to know if SNMP access is enabled to your device and if it supports IF-MIB. An example of it could be:

check_iface_status -H 192.0.0.13

- OK if it passed the test. A list with the found interfaces with the id, operatinal status and description is shown too.

- UNKNOWN if test didn´t pass the test.

Plugin is fully embedded Perl compatible (ePN) and can be downloaded from our website or through Nagios Exchange.

We hope this contribution will be useful and hope your suggestions and comments. Happy Christmas!

Published in Blog
« May 2012 »
Mon Tue Wed Thu Fri Sat Sun
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31