Unable to fully delete service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tomdchi
Posts: 13
Joined: Mon Apr 16, 2012 3:05 pm

Unable to fully delete service

Post by tomdchi »

I keep getting notifications of a disk usage warning even though I have reconfigured the service.

Originally is was set to send a warning at 10%.
I changed it to 8% and the status went back to OK.
After a while the notifications start being sent again saying that disk usage is at 10%. I log in and force an immediate check and it goes back to OK.
The next hour it happens again. So I am getting a warning every hour but should not be. So, I made a copy of the service in CCM, deleted the original service hoping that would fix things but it did not.

Now in CCM there is only the one service (the copy I made) but in the Service Status page I see both original and copy. The copied service is working fine but the original is still sending alerts.

When I click on this service the overview just says Service check is pending. If I click force immediate check nothing happens. When I go to the Configure tab and try to delete it nothing happens.

How do I make this stop? It is driving me crazy with all of these emails. My assumption is that something is messed up in the database.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to fully delete service

Post by scottwilkerson »

What is the output of the following

Code: Select all

ps -ef|grep nagios.cfg
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tomdchi
Posts: 13
Joined: Mon Apr 16, 2012 3:05 pm

Re: Unable to fully delete service

Post by tomdchi »

The output is:

Code: Select all

[root@nagios ~]# ps -ef|grep nagios.cfg
root     27228 26887  0 14:30 pts/0    00:00:00 grep nagios.cfg
nagios   55739     1  0 Jul11 ?        00:06:49 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   55757 55739  0 Jul11 ?        00:00:41 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   63230     1  0 11:20 ?        00:00:09 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   63340 63230  0 11:20 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
[root@nagios ~]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to fully delete service

Post by scottwilkerson »

you have multiple parent processes which is likely causing the problem

Please run the following

Code: Select all

service nagios stop
killall -9 nagios
service nagios start
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tomdchi
Posts: 13
Joined: Mon Apr 16, 2012 3:05 pm

Re: Unable to fully delete service

Post by tomdchi »

Thanks! That worked.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to fully delete service

Post by scottwilkerson »

tomdchi wrote:Thanks! That worked.
Excellent. Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked