Deleted Hosts & Services Still Showing in Views
Deleted Hosts & Services Still Showing in Views
Hi,
I have several hosts that have been deleted and no longer show up in the configuration area, yet they're still present in the Views section along with their services. How do I get rid of them? I see there's a nagiosql_delete_host.php script, but i'm hesitant to use it without knowing what exactly it does.
Thanks,
Bryant
I have several hosts that have been deleted and no longer show up in the configuration area, yet they're still present in the Views section along with their services. How do I get rid of them? I see there's a nagiosql_delete_host.php script, but i'm hesitant to use it without knowing what exactly it does.
Thanks,
Bryant
Re: Deleted Hosts & Services Still Showing in Views
Try these solutions and see if one of them resolves your issue.
http://support.nagios.com/wiki/index.ph ... lete_Hosts
http://support.nagios.com/wiki/index.ph ... lete_Hosts
Re: Deleted Hosts & Services Still Showing in Views
Thank you kindly. Deleting the leftover cfg files from /usr/local/nagios/etc/hosts/ & /usr/local/nagios/etc/services/ did the trick.
Bryant
Bryant
Re: Deleted Hosts & Services Still Showing in Views
I have this issue. The host configuration files were not in either host or services directories. I tried all recommended solutions but the hosts continue to populate my service and host group views in XI.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Deleted Hosts & Services Still Showing in Views
RCIJoe,
We are going to have to look to see where these files are, can I have you run the following changing THE_HOST to the name of your host
We are going to have to look to see where these files are, can I have you run the following changing THE_HOST to the name of your host
Code: Select all
grep -lir "THE_HOST" /usr/local/nagios/etc/*Re: Deleted Hosts & Services Still Showing in Views
The only files returned werescottwilkerson wrote:RCIJoe,
We are going to have to look to see where these files are, can I have you run the following changing THE_HOST to the name of your hostCode: Select all
grep -lir "THE_HOST" /usr/local/nagios/etc/*
/usr/local/nagios/etc/pnp/config.php
/usr/local/nagios/etc/pnp/npcd.cfg
/usr/local/nagios/etc/cgi.cfg
/usr/local/nagios/etc/commands.cfg
Thanks
Re: Deleted Hosts & Services Still Showing in Views
I think I misinterpreted "THE_HOST" and typed the nagios host name the first time. When I use the host name for the one I deleted I get no returns.scottwilkerson wrote:RCIJoe,
We are going to have to look to see where these files are, can I have you run the following changing THE_HOST to the name of your hostCode: Select all
grep -lir "THE_HOST" /usr/local/nagios/etc/*
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Deleted Hosts & Services Still Showing in Views
Lets run
Then look to see if the host still shows up in the web GUI
Code: Select all
service nagios stop
killall -9 nagios
service nagios startRe: Deleted Hosts & Services Still Showing in Views
OK, had some other issues so I rebooted the XI server. Ghost hosts are gone. Thank you, JM