Help! check_ping to alert me when eth0 is up not down

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
dth202
Posts: 4
Joined: Wed Jan 04, 2012 12:59 pm

Help! check_ping to alert me when eth0 is up not down

Post by dth202 »

So this is an interesting situation. I deal with many servers on a cloud environment (don't worry you don't have to understand that side of things to help), each server has two nics, eth0 (public interface) and eth1 (private 10. interface). Only select machines need to have the eth0 up and all the rest need to have eth0 disabled. I want to find a plugin that would allow me to ping the eth0 on the machines where it needs to be disabled and have Nagios alert me when they are up.

The reason is, I need to enable eth0 (public nic) to do updates and installs on the server but don't want to forget to take it down when I am done.

Does anyone know of a plugin to do this? I thought of changing the normal check_ping to alert me if the response was 100% but then it would alert me for everything below that including 0%.
Locked