Monitor only the required network interfaces

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Monitor only the required network interfaces

Post by yunushaikh »

Hello Experts,

I have configured a nagios plugin check_snmp_int_v1 to monitor network interfaces. Now the problem is that this plugins look for all the interfaces present on the server and suppose if any one of them is not connected it gives me critical error. Is it possible to monitor specific network interfaces or is there any other plugin which can only monitor the interfaces we want to monitor.

Thanks for you help.

Example of present output
em1:DOWN, lo:UP, p7p2:DOWN, p3p2:DOWN, p7p1:DOWN, em3:DOWN, bond0:UP, p3p1:UP, em4:DOWN, em2:UP: 6 int NOK : CRITICAL
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Monitor only the required network interfaces

Post by jdalrymple »

It appears to me that the plugin you used supports regex filtering:

Code: Select all

http://nagios.manubulon.com/index_commands.html#interface
Is this the plugin?

If so try adding something like -n "bond0|p3p1|em2"
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: Monitor only the required network interfaces

Post by yunushaikh »

Thanks sir,

It worked. Thanks a lot.
Locked