Page 1 of 1
Ghost alerts for deleted services
Posted: Tue Dec 04, 2012 10:54 am
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
Re: Ghost alerts for deleted services
Posted: Tue Dec 04, 2012 11:28 am
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
Re: Ghost alerts for deleted services
Posted: Tue Dec 04, 2012 11:30 am
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?
Re: Ghost alerts for deleted services
Posted: Tue Dec 04, 2012 11:35 am
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 !
Re: Ghost alerts for deleted services
Posted: Tue Dec 04, 2012 12:14 pm
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.
Re: Ghost alerts for deleted services
Posted: Wed Dec 05, 2012 3:24 am
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 :
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).
Re: Ghost alerts for deleted services
Posted: Wed Dec 05, 2012 8:10 am
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