Monitoring Hosts & Services only when the host is powered ON

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
swapnil.kadam
Posts: 48
Joined: Fri Dec 05, 2014 10:38 am

Re: Monitoring Hosts & Services only when the host is powere

Post 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.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Monitoring Hosts & Services only when the host is powere

Post 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.
Locked