Can't remove Ghost Services Hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Can't remove Ghost Services Hosts

Post 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 -.-'?
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Re: Can't remove Ghost Services Hosts

Post 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..
Nagios XI Version : 2014R2.6
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Can't remove Ghost Services Hosts

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't remove Ghost Services Hosts

Post 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
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.
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Re: Can't remove Ghost Services Hosts

Post 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 ;)
Nagios XI Version : 2014R2.6
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Can't remove Ghost Services Hosts

Post by ssax »

Ok, thanks for the update. Marking the thread as resolved and locking.
Locked