nagios alrets for removed service.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
prakasha
Posts: 10
Joined: Mon May 08, 2017 8:25 am

nagios alrets for removed service.

Post by prakasha »

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.
User avatar
rexconsulting
Posts: 60
Joined: Fri May 04, 2012 4:27 pm
Location: Oakland, CA
Contact:

Re: nagios alrets for removed service.

Post 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.)
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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nagios alrets for removed service.

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
prakasha
Posts: 10
Joined: Mon May 08, 2017 8:25 am

Re: nagios alrets for removed service.

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nagios alrets for removed service.

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked