Page 1 of 1

set host not to get alerts frm other services when host down

Posted: Tue Apr 16, 2019 9:13 am
by rnjie
So i have noticed that nagios still send alerts for other services even when the host is down, take for example if the server is down meaning its powered off and cannot ping, nagios sends alerts for all the other services as well, is there a way to set it up to ignore other services if the host is down?

Re: set host not to get alerts frm other services when host

Posted: Tue Apr 16, 2019 11:47 am
by lmiltchev
...nagios sends alerts for all the other services as well...
When you say "other services", do you mean services on the other hosts or services on the same host, other than "Ping"?

Are you talking about "alerts" that you see in the log, or actual "notifications", that you receive via email, text, etc.?

Can you show us nagios.log with state changes/alerts for this particular host and its services?

Also, run the following command from the command line, and show the output:

Code: Select all

ps -ef | grep nagios.cfg | grep -v grep
It will show us if there are multiple nagios processes running, which can be causing the issue.

Re: set host not to get alerts frm other services when host

Posted: Tue Apr 16, 2019 2:02 pm
by rnjie
i am talking about other services on thesame host, if the host is down i shouldn't get separate email alert for each service like say /var, /tmp, /opt because if the host is down automatically everything else am monitoring would be down so can i set it up that if ping or icmp is down ignore other alerts for services.see command below

ps -ef | grep nagios.cfg | grep -v grep
nagios 5784 1 2 10:25 ? 00:04:45 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 5905 5784 0 10:25 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

Re: set host not to get alerts frm other services when host

Posted: Tue Apr 16, 2019 2:27 pm
by lmiltchev
Can you give us the name of the host that /var, /tmp, and /opt services are added to?

Also, PM me your latest profile:

Admin > System Config > System Profile > Download Profile

Re: set host not to get alerts frm other services when host

Posted: Tue Apr 16, 2019 3:38 pm
by rnjie
unfortunately i do not have any host that is down at the moment but if at all it happens again in the future is there a way to ignore those other alerts?

i was monitoring this host(test1) il use another name due to company policy. I am monitoring ping, cpu,/tmp,/var,/opt and memory. say i power off the host, is there a way for nagios to detect that the host is down and only send email alerts for "down" status and not send separate email alerts for each service like /var or /tmp that is being monitore?

And how do i pm u my profile?

Re: set host not to get alerts frm other services when host

Posted: Tue Apr 16, 2019 4:48 pm
by lmiltchev
say i power off the host, is there a way for nagios to detect that the host is down and only send email alerts for "down" status and not send separate email alerts for each service like /var or /tmp that is being monitore?
This is how it is supposed to work. If the host is down, you shouldn't be receiving notifications for services on that host.
And how do i pm u my profile?
Just attach it by clicking on the "Browse" button.
example01.PNG
I received a PM from you but the profile was not attached.

Note: The profile won't help much if you don't provide us with an actual hostname and service descriptions, so that we will know what to look for. You can PM me the info.