Page 1 of 1
Removing a linux host
Posted: Wed Feb 05, 2014 12:42 pm
by alessfrei
hello!
I'm having trouble removing a linux host Nagios Core 3
how to solve this problem?
Thank you ... I'm waiting ...
Re: Removing a linux host
Posted: Wed Feb 05, 2014 12:45 pm
by tmcdonald
Gonna need you to be a little more specific. What have you done? What are you trying to remove? What commands are you running?
Re: Removing a linux host
Posted: Wed Feb 05, 2014 12:57 pm
by alessfrei
I have to remove a linux host that was deactivated.
However this server was set up by another network admin and when I comment the lines regarding the host that I want to remove is giving error in error in apache and reload Nagios.
Re: Removing a linux host
Posted: Wed Feb 05, 2014 12:59 pm
by tmcdonald
You will need to remove/comment the services that are attached to that host as well.
Re: Removing a linux host
Posted: Wed Feb 05, 2014 1:02 pm
by alessfrei
I'll check ...
Re: Removing a linux host
Posted: Wed Feb 05, 2014 1:49 pm
by slansing
Let us know, also run the configuration verification command to see where you might be running into issues:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Re: Removing a linux host
Posted: Thu Feb 06, 2014 4:47 am
by alessfrei
this command
Code: Select all
/usr/local/nagios/bin/nagios-v /usr/local/nagios/etc/nagios.cfg
the error ...
-bash: /usr/local/nagios/bin/nagios: File or directory not found
The directories do not match ...
The directories of Nagios installation are:
/var/lock/subsys/nagios
/var/nagios
/var/www/cacti/plugins/npc/images/nagios
/var/spool/mail/nagios
/var/log/nagios
/var/run/nagios
/usr/bin/nagios
/usr/lib/nagios
/usr/share/nagios
/etc/nagios
/etc/rc.d/init.d/nagios
It seems that I have mentioned all have relation with the host desire to remove and keeps giving error when I run the reload ...
Re: Removing a linux host
Posted: Thu Feb 06, 2014 11:05 am
by abrist
Try:
Code: Select all
/usr/bin/nagios -v /etc/nagios/nagios.cfg