Page 1 of 1

Can't remove Ghost Services Hosts

Posted: Wed Feb 18, 2015 2:58 am
by litsupport.box
Hello, i thought i had posted this before but for some reason my post didn't come through.

I have problems with ghost/phantom hosts and services:
Image
Image
Image

My Hosts and Services both look empty: the same goes for nagios core they are not visible in core.
Also something i've noticed is that somehow it tried to resolve to server 352 instead of 354? Both hostname and alias were sr0354.

Core:
Image

What have i tried to resolve this problem with no result:

1: Terminal -> killall -9 nagios -> service nagios stop/start
2: ps -e | grep nagios -> kill $(pgrep nagios) -> service nagios stop/start
3: Removed all files that could have something to do with this in \usr\local\nagios\etc (only localhost was in there) same goes for hostgroups servicegroups none were there)
4: Listed all config files with timestamps to see if there are any other .cfg host/services files. (only localhost, which i deleted and restored)
5: Basically scanned through this: http://support.nagios.com/wiki/index.ph ... t_Hosts.29
6: Verified that the hosts do not exist in the rewritten config files.
7: CCM -> Delete hosts/services -> Write configs to file -> Verify configs (if it gave me errors i fixed them)
8: Rebooted Nagios XI server multiple times, also no result
9: No errors in tail -f /var/log/messages
10: service ndo2db stop -> killall -9 ndo2db -> service ndo2db start -> service ndo2db status
11: checked if broker was commented out: (broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg) nope
12: Still troubleshooting..


Please advise, should i just reinstall again -.-'?

Re: Can't remove Ghost Services Hosts

Posted: Wed Feb 18, 2015 3:51 am
by litsupport.box
Ok, something i encountered: if i want to add a new host to be monitored it doesnt show up in Nagios XI - but it DOES show in Nagios Core..

Re: Can't remove Ghost Services Hosts

Posted: Wed Feb 18, 2015 10:17 am
by cmerchant
Could you run the the following commands and show us the output:

Code: Select all

grep ndo /var/log/messages
tail /var/log/mysqld.log
and could you post a copy of your /usr/local/nagios/etc/nagios.cfg.

Re: Can't remove Ghost Services Hosts

Posted: Wed Feb 18, 2015 10:18 am
by abrist
litsupport.box wrote:Ok, something i encountered: if i want to add a new host to be monitored it doesn't show up in Nagios XI - but it DOES show in Nagios Core..
I bet the issue is with ndo. Any crashed table errors in the mysqld log?

Code: Select all

tail -25 /var/log/mysqld.log
Or query errors in the the system messages?

Code: Select all

grep query /var/log/messages

Re: Can't remove Ghost Services Hosts

Posted: Thu Feb 19, 2015 4:31 am
by litsupport.box
I'm sorry guys, i've reinstalled the Nagios XI completely by deploying an OVF template from: http://library.nagios.com/library/produ ... loads/main - installing mod gearman and reconfiguring the xi to my needs. Now everything works like a charm. This topic can close for now i will continue with my progress in: http://support.nagios.com/forum/viewtop ... 16&t=31370 thank you for your help ;)

Re: Can't remove Ghost Services Hosts

Posted: Thu Feb 19, 2015 10:14 am
by ssax
Ok, thanks for the update. Marking the thread as resolved and locking.