How to delete or remove hosts

Version 9 by Bren Eckles
on Sep 04, 2018 09:12.

compared with
Current by Bren Eckles
on Sep 04, 2018 10:04.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (30)

View Page History
{toc:minLevel=4|maxLevel=4|printable=false}

h4. 1.0 How to delete a host configuration

Perform the steps below to remove a single host configuration. You may also use the multiple hosts procedure to remove a single host.
# Select Go to *Configuration* > *Hosts* > *Hosts*.
# Choose Locate the host you want to delete and select *Detail*.
# Scroll down to the bottom of the *Manage Host* screen and click *Delete*.

h4. 2.0 How to delete multiple hosts
h4. How to delete multiple host configurations

There is an easy way to delete one, many, or all hosts. The *Delete Hosts* _Delete hosts_ tool completely removes the a host, it's associated services, and any reference such a a membership in host groups, service groups, groups, and profiles.

# Select *Hosts* from the *Configuration* page.
# Go to *Configuration* > *Hosts*.
# Select *Delete hosts*.
# Next, in the *Delete Hosts* screen, select from the list of abbreviated host names and host addresses. For example, selecting "" lists all hosts, and 1\* will list all hosts with an IP address that starts with the number 1. Example: If you used _Discover_ to import hosts and learned that you imported a number of hosts beginning with "lab", you can select "lab" to list the specific hosts to be removed.
# Next, in the _Delete Hosts_ screen, using the drop-down box, *select from the list* of abbreviated host names and host addresses. For example, selecting " * " lists all hosts, and " 1\* " will list all hosts with an IP address that starts with the number 1.
# Once a host abbreviation is chosen the available matching hosts will be displayed. listed. Select the *check box* next to each host to be removed.
# Select *Delete*. Choose *Check All* and *Delete* to remove all hosts.
{Note}If you select "*" to list all hosts and you select \*Check All* to remove all hosts, the system will consider this action as an invalid configuration with no hosts and services. This should be avoided.{Note}
{Note}You will need to select *Control>Commit*, to complete the task of removing a host.{Note}
{Note}Also, you can use the *Configuration* option *Hosts* in the *Detail* screen to accomplish the same task one host at a time.{Note}Figure: Delete multiple hosts
!managing_hosts_7.jpg|border=1!
# Select *Delete*.
{note}If you select the " * " filter to list all hosts and select _Check All_ to remove all hosts, the system will consider this action as an invalid configuration with no hosts and services. This should be avoided.{note}
{note}Like all configuration changes, you will need to perform a _Commit_ operation (*Configuration* > *Control* > *Commit*), to complete the task of removing a host.{note}

h4. 3.0 How to remove Cloud Hub hosts
{anchor:deletecloudhubhosts}

Cloud Hub hosts are those hosts that have been setup using the GroundWork Cloud Hub monitoring subsystem. Cloud Hub hosts are auto-discovered and configured using hypervisors and or virtualization manager(s). Cloud Hub performs various functions including auto discovery, creation of host and host groups, applied profiles and more. Completely removing previously set environments in Cloud Hub requires a command line entry outlined below.
h4. How to delete GroundWork Hub hosts

GroundWork Hub instances are the hosts that have been setup using the GroundWork Cloud Hub monitoring subsystem. Cloud Hub configuration, using hypervisors and or virtualization manager(s), performs various functions including auto discovery, creating of hosts and host groups, and applying of profiles. Completely removing previously set environments in Cloud Hub includes a command line entry, which is outlined below.

If you decide you do not want to monitor a particular region but you want to keep the configuration, simply navigate to *GroundWork Administration* > *GroundWork Cloud Hub* and select *STOP* for the corresponding connection. The connection, as previously configured, can be started again by selecting *START*.

To completely DELETE a specific region's monitored hosts follow the steps below. All of the created host groups and the discovered and monitored instances for that region will be deleted from the Foundation database within a few minutes and monitoring access to the region endpoint will cease.

# Log in to *GroundWork Monitor* as an Administrator.
# Go to *GroundWork Administration* > *GroundWork Cloud Hub* and select the *Stop* option next to each existing connection.
# Then open a PuTTY session and at the command line enter the following command to completely remove your Cloud Hub hosts:
# Go to *GroundWork Administration* > *GroundWork Cloud Hub*, select *STOP* and *DELETE* for each connection to be deleted.
# Then, open a terminal session and enter the following command to completely remove your Cloud Hub hosts:
{noformat}/usr/local/groundwork/tools/devclean.pl -cleanup{noformat}

h4. 4.0 How to remove Cacti hosts
h4. How to delete Cacti hosts

For most SNMP monitoring, Cacti provides a simpler way to discover and configure monitoring of network devices. The data collected by Cacti is displayed through the Cacti UI as graphs and the graph data is also displayed in the GroundWork Status application. If Thresholds are set in Cacti for a device being monitored, that device and any checks performed on it will be automatically added to GroundWork Monitor. The addition is made to the Foundation database bypassing Nagios, additionally the triggering of the threshold will create an alarm message to be sent via the NoMa application. To properly remove Cacti associated hosts you must remove the Threshold first as outline below.
# Log in to *GroundWork Monitor* as an Administrator.
# Go to *Advanced* > *Network Graphing* and select the *thold* tab.
# Then under the *Thresholds* tab you will see a listing of all Cacti associated hosts, (you may need to change the filter at the top to Status: All), and next to each you have the options to *Edit Threshold*, *Disable Threshold*, and *View Graph*.
# For each of the hosts, you want to delete, select the *Disable Threshold* icon (second icon) and you will see the status change to *Disabled* for that host. In a couple minutes these host should no longer be visible in the *Status* viewer and you can then safely remove the host using *Configuration* > *Hosts* > *Delete hosts*.
# For each of the hosts you want to delete select the *Disable Threshold* icon (second icon), you will see the status on the right change to *Disabled*.
# In a few minutes the associated hosts should no longer be visible in the *Status* viewer.
\\
\\
Figure: Disabling host Thresholds
\\ !how_to_remove_cacti_hosts_01.png|border=1! !how_to_remove_cacti_hosts_01.png|thumbnail!

h4. 5.0 How to remove hosts from the performance screen
h4. How to delete WMI NRPE_NT hosts

# Launch the *Command Prompt* and check if the *NRPE_NT* directory exists in the *C:* directory.
# If the directory exists stop the service:
{noformat}net stop nrpe_nt{noformat}
# Then uninstall the service:
{noformat}\nrpe_nt\bin\nrpe_nt.exe -u{noformat}
# Next, navigate to *Computer* > *Local Disk (C\:) >* and delete the *NRPE_NT* directory.

h4. How to delete hosts from the performance screen

Following is a simple procedure to remove hosts from the performance screen.
# From the command line set the environment to include the path to the tools: