Sends a single alert for powered down servers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
NagiosIMCS
Posts: 20
Joined: Mon Mar 19, 2018 2:55 pm

Sends a single alert for powered down servers

Post by NagiosIMCS »

Good morning everyone,

Still new to Nagios and learning so I appreciate the help.

Lots of the servers we monitor are cloud based and therefore spend lots of time powered off.

All I want to do is configure Nagios so if a server is powered down it send a single alert saying its down and a single OK alert when it comes back on line.

Thank you for your help nice people.
NagiosIMCS
Posts: 20
Joined: Mon Mar 19, 2018 2:55 pm

Re: Sends a single alert for powered down servers

Post by NagiosIMCS »

Ideally I only want a single alert if the host is powered down. For any other alerts, for instance High CPU I still want to receive multiple alerts. I am aware I can change the the problem persist option to 0 to achieve this.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Sends a single alert for powered down servers

Post by dchurch »

You can make a host or service only notify once if you open it in Core Config Manager (Configure menu at top of screeen) and set the Notification Interval = 0 in the Alert Settings tab.

That way, it'll only send one alert when the host or service changes state (e.g. OK -> Critical).
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
NagiosIMCS
Posts: 20
Joined: Mon Mar 19, 2018 2:55 pm

Re: Sends a single alert for powered down servers

Post by NagiosIMCS »

Thank you dchurch,

Ideally if the server is powered on I would still want receive multiple alarms. For instance for High CPU or Disk Usage but just the single notification if the Host is powered down.

Do you know if that is possible? Unfortunately I have rather limited knowledge.

Thank you for your help.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Sends a single alert for powered down servers

Post by dchurch »

Sure, just:
  • Set the notification Interval on the host check (open the HOST in the Core Config Manager), set that to 0, then...
  • something like the default 60 on the service checks (open the SERVICE in the Core Config Manager).
If the host fails to respond to pings, it'll fire one notification as the host goes to critical, but as long as the host is OK, it'll alert every 60 seconds on status change of the services.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Locked