Page 1 of 1

Monitor only the required network interfaces

Posted: Tue Jul 07, 2015 3:55 pm
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

Re: Monitor only the required network interfaces

Posted: Tue Jul 07, 2015 4:11 pm
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"

Re: Monitor only the required network interfaces

Posted: Tue Jul 07, 2015 4:33 pm
by yunushaikh
Thanks sir,

It worked. Thanks a lot.