Ghost alerts for deleted services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Koobal
Posts: 20
Joined: Mon Sep 03, 2012 7:26 am

Ghost alerts for deleted services

Post by Koobal »

Hello everyone,
I have a little problem with some services.
Some of them were in alert , for some reasons, I disactivated them.
Now, when I go in "open services problem" or in my "services status summary" they are still there.
So I decided to delete them, restart my nagios service, but they are still there !
When i check my .cfg files under ......./etc/services/ the services aren't in the config files.

Did I miss something ?
Thanks for your help.
Regards
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Ghost alerts for deleted services

Post by mguthrie »

Are these services still showing up in the web interface?

Do you have a lot of messages backed up in your mail queue? /var/spool/mqueue
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Ghost alerts for deleted services

Post by abrist »

Make sure you "write files" and then "verify configuration" before you restart the nagios service, if you get any errors, you must resolve them first. Can you "apply configuration" without any errors?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Koobal
Posts: 20
Joined: Mon Sep 03, 2012 7:26 am

Re: Ghost alerts for deleted services

Post by Koobal »

For abrist, yes i have no problem to apply configuration.
For Mguthrie, Yes I can still see them in my web interface.
But when i go in CCM, services and make a search with their name they aren't there.
How can I see how much message do I have in my mqueue ?
Thanks for your answers !
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Ghost alerts for deleted services

Post by lmiltchev »

If you can see these services in the web interface, they must be somewhere... If you can't see them in the configs in "/usr/local/nagios/etc/services/", they must be in the database. Try searching for these services again in the CCM. Maybe you used a different config name, etc. Make sure you don't have multiple nagios instances running - try running:

Code: Select all

service nagios stop
killall -9 nagios
service ndo2db stop
servce ndo2db start
service nagios start
You can also send us your latest configuration snapshot at [email protected], so that we can review it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Koobal
Posts: 20
Joined: Mon Sep 03, 2012 7:26 am

Re: Ghost alerts for deleted services

Post by Koobal »

Hi,
I try your commands to stop and restart services, but my ghost services are always there.
In CCM i search for those services by using their configuration name or service name but I didn't find them.
Even on the server, I try to find them, for exemple, one of my service is "MSSQL Log Growths", by using the command :

Code: Select all

grep -lR "Log Growths" *
in /usr/local/nagios/etc/services directory.
And still didn't find them...

I will send you my last configuration snapshot with the name of the ghost services (I didn't find them neither in it).
Koobal
Posts: 20
Joined: Mon Sep 03, 2012 7:26 am

Re: Ghost alerts for deleted services

Post by Koobal »

Ok I find it...
The users who create those services failed with create service for the host and for the HOST (one in maj , other in min).
That's why I didn't find them in CCM, but on my server it will create 2 .cfg files for the same host.
Hope this can help.

Thanks for your time,
regards
Locked