How to delete 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.
Post Reply
jcook
Posts: 1
Joined: Tue Jan 09, 2024 5:59 pm

How to delete host from Nagios Core?

Post by jcook »

Hi,

We retired a server in early 2023 and did not remove Nagios from it before decommissioning the server.

It's still showing up in Nagios Core as a host, with lots of associated services - we want to fully delete the server and all associated services to clean up our Nagios page.

How do we remove all the associated services and delete the host from Nagios Core?

We access Nagios Core through a web browser, but Nagios itself is installed on a Linux server.
Nowhere on the web portal/page can we locate where to delete hosts.
If this must be done on the Linux application, what are the commands or steps to delete a host?

Thank you in advance - Peace.
gwesterman
Posts: 97
Joined: Wed Aug 23, 2023 11:29 am

Re: How to delete host from Nagios Core?

Post by gwesterman »

Hi @jcook,

I would recommend snapshotting your core server then deleting the host and its services from:

Code: Select all

/usr/local/nagios/etc/hosts
/usr/local/nagios/etc/services
You probably want to grep your other core config files in /etc/ as well for any mentions of the host/services and remove them accordingly. Then restart nagios. Nagios XI has the Core Config Manager which lets you manage your core configuration files via the web browser.

Let us know if you need anything else.

Thank you!
Post Reply