How to delete hosts

WAS THIS PAGE HELPFUL? Leave Feedback

CONTENTS

Overview

In GroundWork Monitor you may need to delete a host or multiple host configurations, delete Cloud Hub or Cacti associated hosts, remove hosts from the performance screen, or other types of monitored hosts.

Steps
How to delete a host configuration

Perform the steps below to remove a single host configuration.

  1. Go to Configuration > Hosts > Hosts.
  2. Locate the host you want to delete and select Detail.
  3. Scroll down to the bottom of the Manage Host screen and click Delete.
How to delete multiple host configurations

There is an easy way to delete one, many, or all hosts. The Delete hosts tool completely removes a host, its associated services, and any reference such a a membership in host groups, service groups, groups, and profiles.

  1. Go to Configuration > Hosts.
  2. Select Delete hosts.
  3. 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.
  4. Once a host abbreviation is chosen the matching hosts will be listed. Select the check box next to each host to be removed.
  5. Select Delete.
    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.
    Like all configuration changes, you will need to perform a Commit operation (Configuration > Control > Commit), to complete the task of removing a host.

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.

  1. Log in to GroundWork Monitor as an Administrator.
  2. Go to GroundWork Administration > GroundWork Cloud Hub, select STOP and DELETE for each connection to be deleted.
  3. Then, open a terminal session and enter the following command to completely remove your Cloud Hub hosts:
    /usr/local/groundwork/tools/devclean.pl -cleanup
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.

  1. Log in to GroundWork Monitor as an Administrator.
  2. Go to Advanced > Network Graphing and select the thold tab.
  3. 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.
  4. 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.
  5. In a few minutes the associated hosts should no longer be visible in the Status viewer.

    Figure: Disabling host Thresholds
    Disabling host thresholds
How to delete GDMA hosts
How to delete WMI NRPE_NT hosts
  1. Launch the Command Prompt and check if the NRPE_NT directory exists in the C: directory.
  2. If the directory exists stop the service:
    net stop nrpe_nt
  3. Then uninstall the service:
    \nrpe_nt\bin\nrpe_nt.exe -u
  4. Next, navigate to Computer > Local Disk (C:) > and delete the NRPE_NT directory.
How to delete hosts from the performance screen

Following is a simple procedure to remove hosts from the performance screen.

  1. From the command line set the environment to include the path to the tools:
    source /usr/local/groundwork/scripts/setenv.sh
  2. Log in to the postgres database:
    psql -U postgres
  3. You should see a prompt similar to postgres=#, select the configuration database:
    \c monarch
  4. Remove the entries you don't want from the host_service table.
    For example, to delete all entries for host foo:
    delete from host_service where host like 'foo'

    To delete all entries for service foo_service:

    delete from host_service where service like 'foo_service'

    To delete a specific service from a host and leave the others:

    delete from host_service where host like 'foo' and service like 'foo_service'

Labels

delete delete Delete
hosts hosts Delete
multiple multiple Delete
cloud cloud Delete
cacti cacti Delete
performance performance Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.