Page 1 of 1

Possible to create an alert in Nagios XI for when a server is turned "on"?

Posted: Mon Aug 26, 2024 1:13 pm
by samersultan
Is it possible to have Nagios XI send an alert for when a server is powered on, and possibly a 120 minute reminder that the server is still on?

Re: Possible to create an alert in Nagios XI for when a server is turned "on"?

Posted: Mon Aug 26, 2024 1:33 pm
by DoubleDoubleA
Hi @samersultan,

Yes, this is possible. There are a couple of ways to do it.

Probably the easier way to do this is, for active checking, you could check if the machine responds to ping or some other attempt to connect, and also use the Nagios negate plugin https://assets.nagios.com/downloads/nag ... ios-XI.pdf so that when it is unreachable it is ok, but when it is reachable it is critical.

And then set your notification interval to 7200 seconds.

Alternately, you could have the server send a passive check to XI as part of its startup script https://assets.nagios.com/downloads/nag ... ios-XI.pdf .

Aaron

Re: Possible to create an alert in Nagios XI for when a server is turned "on"?

Posted: Mon Aug 26, 2024 2:56 pm
by samersultan
Thank you Aaron, I will give this a try.

Re: Possible to create an alert in Nagios XI for when a server is turned "on"?

Posted: Wed Aug 28, 2024 8:26 am
by tsample
Seconded for the negate function. I used the negate function in Nagios and had it set so if a ping went through successfully, it would generate a single alert email.