hello!
I'm having trouble removing a linux host Nagios Core 3
how to solve this problem?
Thank you ... I'm waiting ...
Removing a linux host
Re: Removing a linux host
Gonna need you to be a little more specific. What have you done? What are you trying to remove? What commands are you running?
Former Nagios employee
Re: Removing a linux host
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.
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
You will need to remove/comment the services that are attached to that host as well.
Former Nagios employee
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Removing a linux host
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.cfgRe: Removing a linux host
this command the error ...
-bash: /usr/local/nagios/bin/nagios: File or directory not found
The directories do not match ...
The directories of Nagios installation are:
It seems that I have mentioned all have relation with the host desire to remove and keeps giving error when I run the reload ...
Code: Select all
/usr/local/nagios/bin/nagios-v /usr/local/nagios/etc/nagios.cfg-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
Try:
Code: Select all
/usr/bin/nagios -v /etc/nagios/nagios.cfgFormer 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.
"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.