Alert on service I can't find in config

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ChathamDaleJ
Posts: 55
Joined: Tue Jul 02, 2013 10:44 am

Alert on service I can't find in config

Post by ChathamDaleJ »

I have a service on a host that i cannot find under Config -> Core Configuration Manager -> services

I have Applied Configuration a dozen times, but no luck.

TIA,

Dale
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Alert on service I can't find in config

Post by slansing »

Was this a service that had been previously in your configurations? Can you see the service's configuration file when you navigate to:

Code: Select all

/usr/local/nagios/etc/services/<hostname>.cfg
You may be experiencing a phenomena that we call "Ghost Hosts."
ChathamDaleJ
Posts: 55
Joined: Tue Jul 02, 2013 10:44 am

Re: Alert on service I can't find in config

Post by ChathamDaleJ »

The server is the nagios server, so it has two names (gbnagios01 and localhost). the service in question lwsmd, is in neither.

It is a ghost service.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Alert on service I can't find in config

Post by lmiltchev »

Run the following command and show the output:

Code: Select all

grep -R -i "lwsmd" /usr/local/nagios/etc/
Be sure to check out our Knowledgebase for helpful articles and solutions!
ChathamDaleJ
Posts: 55
Joined: Tue Jul 02, 2013 10:44 am

Re: Alert on service I can't find in config

Post by ChathamDaleJ »

I don't know what I did, but that instance cleared. Now, I deleted the host denver and all associated services. I applied the configuration, but all services show up one by one.

grep -Ri denver /usr/local/nagios/etc shows it in a single hostgroup, but no services. Do I need to delete it from the hostgroup?
ChathamDaleJ
Posts: 55
Joined: Tue Jul 02, 2013 10:44 am

Re: Alert on service I can't find in config

Post by ChathamDaleJ »

Disregard my last, denver is not in any hostgroup. It does not exist.
ChathamDaleJ
Posts: 55
Joined: Tue Jul 02, 2013 10:44 am

Re: Alert on service I can't find in config

Post by ChathamDaleJ »

Also, why do I not have the authority to browse this forum?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Alert on service I can't find in config

Post by rkennedy »

I will disregard your previous messages except the most recent one.

You should be fine to view the General Support as you are, I don't see any issues regarding it. What problem are you seeing? Are you trying to view the customer forums?
Former Nagios Employee
ChathamDaleJ
Posts: 55
Joined: Tue Jul 02, 2013 10:44 am

Re: Alert on service I can't find in config

Post by ChathamDaleJ »

Solved!

zombie process kept parent process alive. Parent process apparently had old config.

So, ps -eaf | grep defunct. All zombies had a common parent. killall nagios didn't work, though I suppose killall -9 would. kill -9 PPID took care of it, though.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Alert on service I can't find in config

Post by rkennedy »

Glad to see this fixed. Am I good to close this thread out then?
Former Nagios Employee
Locked