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

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
samersultan
Posts: 3
Joined: Mon Aug 26, 2024 1:11 pm

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

Post 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?
DoubleDoubleA
Posts: 199
Joined: Thu Feb 09, 2017 5:07 pm

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

Post 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
samersultan
Posts: 3
Joined: Mon Aug 26, 2024 1:11 pm

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

Post by samersultan »

Thank you Aaron, I will give this a try.
tsample
Posts: 4
Joined: Fri Aug 23, 2024 2:09 pm

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

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