Page 1 of 1

Not able to delete a host

Posted: Tue Aug 28, 2012 10:05 am
by fao
I need to delete one host from Nagios monitoring but the search in CCM does'nt return anything while the host cfg file exists.
How should I proceed in order to delete the host?

find / -name *LPRAPP02*
/usr/local/nagios/etc/hosts/LPRAPP02.cfg

Re: Not able to delete a host

Posted: Tue Aug 28, 2012 10:59 am
by scottwilkerson
Have you clicked Apply Configuration since deleting the host?

Re: Not able to delete a host

Posted: Tue Aug 28, 2012 2:56 pm
by slansing
If you have done what swilkerson suggested, all the services have been deleted for the host and it still exists, you can remove the .cfg file from the /hosts directory safely, then restart Nagios.

Re: Not able to delete a host

Posted: Wed Aug 29, 2012 1:48 am
by fao
Thanks, I've manually deleted the cfg file and restarted Nagios.