Re: External Commands Logic.
Posted: Mon May 13, 2013 4:53 pm
Have you considered excluding unreachable hosts from your notification options within each one:
This is one way of filtering out false positives. If your goal is to only reduce the amount of notifications you receive then your current configuration should work fine for this as ideally you would want your hosts to go into a hard state before your services do, and subsequently, silence the service alerts and send a hard state notification.UNREACHABLE States and Notifications
By default, Nagios will notify contacts about both DOWN and UNREACHABLE host states. As an admin/tech, you might not want to get notifications about hosts that are UNREACHABLE. You know your network structure, and if Nagios notifies you that your router/firewall is down, you know that everything behind it is unreachable.
If you want to spare yourself from a flood of UNREACHABLE notifications during network outages, you can exclude the unreachable (u) option from the notification_options directive in your host definitions and/or the host_notification_options directive in your contact definitions.