nagios alrets for removed service.
nagios alrets for removed service.
still getting nagios alert though i deleted the service of one host from core configuration wizard service tab.
Last edited by prakasha on Thu Aug 23, 2018 1:37 am, edited 1 time in total.
- rexconsulting
- Posts: 60
- Joined: Fri May 04, 2012 4:27 pm
- Location: Oakland, CA
- Contact:
Re: nagios alrets for removed service.
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.)
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.)
CP
--
Chris Paul
Rex Consulting, Inc
5652 Florence Terrace, Oakland, CA 94611
email: [email protected]
web: http://www.rexconsulting.net
phone, toll-free: +1 (888) 403-8996 ext 1
--
Chris Paul
Rex Consulting, Inc
5652 Florence Terrace, Oakland, CA 94611
email: [email protected]
web: http://www.rexconsulting.net
phone, toll-free: +1 (888) 403-8996 ext 1
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nagios alrets for removed service.
Yes, the fix if this is the case would berexconsulting 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.)
Code: Select all
service nagios stop
killall -9 nagios
service nagios startRe: nagios alrets for removed service.
[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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nagios alrets for removed service.
Did the alerts for the service stop?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
If not, can you see the service in the UI?