Home » Categories » Products » Nagios XI » Troubleshooting » Common Problems

Nagios XI - Unable to Delete Host

Problem Description

In Nagios XI when trying to delete or deactivate a host through the Core Configuration Manager, you may get the following error (or one similar to it) in a red box near the top of your screen:

 

 

Resolving The Problem

In order to delete or deactivate a host, you must first delete or deactivate all of the services and other objects that are attached to it. 

  • Using services as an example, click the Services link in the left-hand navigation pane of the Core Configuration Manager. 

  • Next, use the search bar to find the services that are attached to the host you wish to delete. 

  • Usually these will be named after the host, so you can simply search for the host name. 

  • However if they are not named after the host (possibly because they were created manually or the name was changed) then you will need to search for them directly using the names as they appeared in the red error box.

 

Searching for services in the CCM

 

  • Once you have found the attached services you can select which to delete or deactivate by checking their individual checkboxes, located to the left of their entries in the search results table. 

  • To select or deselect all of the displayed services, you may check or uncheck the box to the left of the words "Config Name" at the top of the table. 

  • Once you have the desired services selected, you can use the "With Checked" dropdown box located beneath the search results table to choose your desired action. 

  • Choosing Delete will remove the services from the Core Configuration Manager database, while Deactivate will leave them but not apply them to the active configuration - this is useful if you may need to reactivate the services later.

Once you have deleted or deactivated the services, you may go back to the host and delete or deactivate it as well.

 

Additional Information

In addition to services, there may also be service dependencies, host dependencies, service escalations, host escalations, service templates or hostgroups that are either attached to or otherwise reference the host you are attempting to delete.  These will similarly need to be deleted or deactivated and will be referenced in the error displayed when attempting to delete the host.

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

3.67 (3)
Article Rating (3 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Slack Notifications Stopped Working
Viewed 4118 times since Wed, Mar 18, 2020
Nagios XI - Display All Scheduled Reports
Viewed 4423 times since Wed, Oct 12, 2016
Nagios XI - ERROR: unable to open include file: /etc/mrtg/conf.d/xxxxxxx.cfg
Viewed 6919 times since Wed, Jun 1, 2016
NDOUtils - Message Queue Exceeded
Viewed 14328 times since Thu, Jan 21, 2016
Nagios XI - Resetting The nagiosadmin Password
Viewed 41225 times since Mon, Jan 25, 2016
Nagios XI - Problems Using Nagios XI With Proxies
Viewed 11817 times since Mon, Jan 25, 2016
Nagios XI - Some BPI Checks Show "Unknown BPI Group Index" After Upgrade
Viewed 3761 times since Wed, Sep 18, 2019
API changes in Nagios XI 5.7
Viewed 2934 times since Tue, Feb 23, 2021
Nagios XI - Scheduled Backup Log Level
Viewed 4878 times since Tue, Apr 18, 2017
Nagios XI - How To Delete A Data Source From An RRD File
Viewed 11507 times since Wed, Apr 27, 2016