Removing Host from Nagios Core

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
User avatar
tomay
Posts: 1
Joined: Wed Nov 04, 2020 8:29 am

Removing Host from Nagios Core

Post by tomay »

I am decommissioning a server and that server is no longer needed to be monitored.
I am trying to remove it from the Nagios configuration.
Nagios has it's own server.
I have found the configuration files in opt/nagios/hosts
If I remove the cfg hosts tile in this location and run:

./nagios -v ..etc/nagios.cfg
service nagios restart

Are there other steps I need to consider before attempting to restart
Last edited by tomay on Tue Dec 01, 2020 9:29 am, edited 1 time in total.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Removing Host from Nagios Core

Post by gormank »

You may want to grep the hostname from your services files to make sure it isn't defined there.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Removing Host from Nagios Core

Post by benjaminsmith »

HI @tomay

Did you get worked out? Let us know how it's going.

Benjamin
Nagios Support Team
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked