Page 1 of 1

nagios alrets for removed service.

Posted: Wed Aug 22, 2018 5:05 am
by prakasha
still getting nagios alert though i deleted the service of one host from core configuration wizard service tab.

Re: nagios alrets for removed service.

Posted: Wed Aug 22, 2018 5:48 am
by rexconsulting
Check to see if you have more than one nagios daemon running:

ps aux|grep 'nagios -d'|grep -v grep

If you see more than two, then you have more than one daemon running. (Two is normal, as nagios normally spawns one child process.)

Re: nagios alrets for removed service.

Posted: Wed Aug 22, 2018 2:19 pm
by scottwilkerson
rexconsulting wrote:Check to see if you have more than one nagios daemon running:

ps aux|grep 'nagios -d'|grep -v grep

If you see more than two, then you have more than one daemon running. (Two is normal, as nagios normally spawns one child process.)
Yes, the fix if this is the case would be

Code: Select all

service nagios stop
killall -9 nagios
service nagios start

Re: nagios alrets for removed service.

Posted: Thu Aug 23, 2018 1:37 am
by prakasha
[root@NAGIOS ~]# ps aux|grep 'nagios -d'|grep -v grep
nagios 1783 0.9 0.0 29208 4884 ? Ss Aug22 13:16 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 1842 0.0 0.0 29208 3564 ? S Aug22 0:32 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
[root@NAGIOS ~]# service nagios stop
Stopping nagios: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
done.
[root@NAGIOS ~]# killall -9 nagios
[root@NAGIOS ~]# service nagios start

Re: nagios alrets for removed service.

Posted: Thu Aug 23, 2018 6:59 am
by scottwilkerson
prakasha wrote:[root@NAGIOS ~]# ps aux|grep 'nagios -d'|grep -v grep
nagios 1783 0.9 0.0 29208 4884 ? Ss Aug22 13:16 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 1842 0.0 0.0 29208 3564 ? S Aug22 0:32 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
[root@NAGIOS ~]# service nagios stop
Stopping nagios: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
done.
[root@NAGIOS ~]# killall -9 nagios
[root@NAGIOS ~]# service nagios start
Did the alerts for the service stop?

If not, can you see the service in the UI?