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
Monitor only the required network interfaces
-
- Posts: 176
- Joined: Sat Jun 20, 2015 9:04 pm
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Monitor only the required network interfaces
It appears to me that the plugin you used supports regex filtering:
Is this the plugin?
If so try adding something like -n "bond0|p3p1|em2"
Code: Select all
http://nagios.manubulon.com/index_commands.html#interface
If so try adding something like -n "bond0|p3p1|em2"
-
- Posts: 176
- Joined: Sat Jun 20, 2015 9:04 pm
Re: Monitor only the required network interfaces
Thanks sir,
It worked. Thanks a lot.
It worked. Thanks a lot.