trouble deleting host
-
yescobar01
- Posts: 30
- Joined: Wed May 01, 2013 11:41 am
trouble deleting host
I have deleted my host before but this time i am having trouble deleting the hosts. I delete the host and services in the Nagios Core Config Manager and I apply configurations. Than went back to the Home tab and under details in host and services i still see them there? How can i delete them?
Re: trouble deleting host
Have you tried following the steps outlined on our wiki page:
http://support.nagios.com/wiki/index.ph ... lete_Hosts
http://support.nagios.com/wiki/index.ph ... lete_Hosts
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
yescobar01
- Posts: 30
- Joined: Wed May 01, 2013 11:41 am
Re: trouble deleting host
yes I tried it and did not work I am still seeing the host and services that i am trying to delete. I also follow the steps from this one "Host Still Visible In XI After Deletion From the CCM ". And delete the config files from both dir. and received an error "no lock file found in /usr/local/nagios/var/nagios.lock" but i manage to restore it back so I am back to the ghost host.
Re: trouble deleting host
"no lock" usually means nagios is not running in the background.
You need to go --> CCM --> Write Config Files --> click "write" and then "verify". DO NOT restart nagios or apply configuration yet.
Now open up a cli to the XI box. Remove the ghosted files. They are usually located in:
OR/AND
Now click "write" and "verify" once again. Resolve any errors through the CCM and repeat the "write, verify and resolve" process until your configs verify without error.
Only once the ghosted files are removed and the config verifies should you restart nagios or apply configuration. The reason this process is necessary is due to how XI handles the files. If you restart nagios or apply configuration, the config files are written out from the database. If the verify step in the apply configuration process fails, you configs will be rolled back to the most recent working version. This will result in your changes being overwritten.
You need to go --> CCM --> Write Config Files --> click "write" and then "verify". DO NOT restart nagios or apply configuration yet.
Now open up a cli to the XI box. Remove the ghosted files. They are usually located in:
Code: Select all
/usr/local/nagios/etc/hostsCode: Select all
/usr/local/nagios/etc/servicesOnly once the ghosted files are removed and the config verifies should you restart nagios or apply configuration. The reason this process is necessary is due to how XI handles the files. If you restart nagios or apply configuration, the config files are written out from the database. If the verify step in the apply configuration process fails, you configs will be rolled back to the most recent working version. This will result in your changes being overwritten.
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.
"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.
-
yescobar01
- Posts: 30
- Joined: Wed May 01, 2013 11:41 am
Re: trouble deleting host
Thank you abrist that solve my issue!! My host and services are delete with no errors
Re: trouble deleting host
Great!
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.
"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.