Stopping nagios service if eth0 down


Just was wondering if there is an existing nagios plugin/event handler that will stop nagios service or sendmail if the ethernet interface goes down or the server loses network connection?

Just trying to prevent a flood of notification emails when the cable is plugged back in. I have another process that monitors the nagios server so know when it is disconnected.

Any better ideas to prevent a notification flood if nagios loses connection to network, until the mail notification queue can be cleaned out.

Thanks, Erick


create a host on the first connection (switch?)… disable notifications for this host and use parent relationships.