Removing a linux host

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
alessfrei
Posts: 4
Joined: Wed Feb 05, 2014 12:30 pm

Removing a linux host

Post by alessfrei »

hello!
I'm having trouble removing a linux host Nagios Core 3
how to solve this problem?
Thank you ... I'm waiting ...
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Removing a linux host

Post 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?
Former Nagios employee
alessfrei
Posts: 4
Joined: Wed Feb 05, 2014 12:30 pm

Re: Removing a linux host

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Removing a linux host

Post by tmcdonald »

You will need to remove/comment the services that are attached to that host as well.
Former Nagios employee
alessfrei
Posts: 4
Joined: Wed Feb 05, 2014 12:30 pm

Re: Removing a linux host

Post by alessfrei »

I'll check ...
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Removing a linux host

Post 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
alessfrei
Posts: 4
Joined: Wed Feb 05, 2014 12:30 pm

Re: Removing a linux host

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

Re: Removing a linux host

Post by abrist »

Try:

Code: Select all

/usr/bin/nagios -v /etc/nagios/nagios.cfg
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.
Locked