Page 1 of 1

Disable Notifications for New Hosts Until State Change

PostPosted: Thu Dec 02, 2021 5:24 pm
by mr_samuel
I have a rather large environment that I monitor so I've automated my Nagios server to be updated and re-compiled daily to pickup new host changes in our DNS. It works very well; however, any new DNS entries for new devices that are not yet plugged into the network (actively pinging) send "host down" alerts, for obvious reasons.

I'm trying to think of a way to disable notifications on new hosts until they change to an "up" state. So then Nagios could still update daily, add those new hosts, but stay silent until there's a state change. I wouldn't mind even getting an alert saying a host has come online, it's just the initial host down alert I'm trying to do away with.

If anyone has done something like this and can share your experience that would help me out a lot.

Thx!

Re: Disable Notifications for New Hosts Until State Change

PostPosted: Fri Dec 03, 2021 3:54 pm
by gormank
You might add a step to not add hosts until they're reachable, or add them as inactive and only activate them until reachable. Or, you might want to create a file with a list of unreachable hosts that are waiting to be added so you don't lose track of them.