Page 1 of 1
Sends a single alert for powered down servers
Posted: Mon Nov 09, 2020 6:30 am
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.
Re: Sends a single alert for powered down servers
Posted: Mon Nov 09, 2020 11:16 am
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.
Re: Sends a single alert for powered down servers
Posted: Mon Nov 09, 2020 11:49 am
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).
Re: Sends a single alert for powered down servers
Posted: Mon Nov 09, 2020 11:59 am
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.
Re: Sends a single alert for powered down servers
Posted: Mon Nov 09, 2020 4:28 pm
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.