Page 2 of 2
Re: Monitoring Hosts & Services only when the host is powere
Posted: Thu Mar 26, 2015 1:05 pm
by swapnil.kadam
To make it simple, can we stop monitoring all hosts/Services in DOWN status? Nagios should monitor only monitor the Hosts when is changes its status from DOWN to UP or any other status.
Re: Monitoring Hosts & Services only when the host is powere
Posted: Thu Mar 26, 2015 1:40 pm
by jdalrymple
swapnil.kadam
To give you a simple answer... yes - `check_dummy 0` will not monitor hosts in a down status - although it also won't monitor hosts in an up status.
your requirement is understandable - you don't want to monitor hosts that "YOU KNOW" aren't supposed to be online. The problem is Nagios doesn't know that the host isn't supposed to be online, only you know this information. Somehow the whole requirement is short sighted. What do you expect Nagios to do in the event that a host goes down in an unexpected manner? How is Nagios to know the difference between your AWS instance shutting down due to necessity or by way of Amazon going offline?
You can follow lmiltchev's suggestion, that should work
If it's on a schedule, you could go that route
Or if you can elaborate on what it is you're actually trying to monitor besides host state we can probably help you monitor that and at the same time help you avoid unnecessary alerts when the host is offline.