Back to Opsview FAQ

Internal documentation only

This page has been marked as draft.

Changing Collector Cluster Hostname or IP

While it’s not a routine operation, there may be times when you need to reconfigure the Hostname and/or IP address of nodes within an Opsview Collector Cluster.

This process cannot be completed solely via opsview-deploy; several manual steps are required both on the collector(s) and the orchestrator.

Before you make any changes, place the affected host into Scheduled Downtime in the Opsview UI.

Make your Hostname or IP change Copied

Update the Collector Copied

  1. Stop Opsview services on the collector:
/opt/opsview/watchdog/bin/opsview-monit stop all
  1. Change the hostname
hostnamectl set-hostname <new_hostname>
  1. Ensure all opsview processes have actually stopped
ps -fu opsview

4a. Remove opsview-messagequeue (and opsview-datastore if the cluster contains more than one collector):

For RHEL/CentOS:

yum remove opsview-messagequeue
yum erase opsview-messagequeue

For Debian/Ubuntu:

apt remove opsview-messagequeue
yum purge opsview-messagequeue

4b. Remove the messagequeue directory

rm -rf /opt/opsview/messagequeue

IFthe collector cluster is larger than itself i.e. more than one collector in the cluster, the opsview-datastore is required to be removed also (repeating steps 4a and 4b, but for the opsview-datastore package and /opt/opsview/datastore directory)

  1. Repeat on all other collectors in the cluster to ensure there are no future issues with connectivity due to the clustered nature of the opsview-messagequeue and opsview-datastore

Update the Orchestrator Copied

Note: High Availability (HA) and Disaster Recovery (DR) steps are also pointed out below

  1. Update configuration files:
- /opt/opsview/deploy/etc/opsview_deploy.yml
- /opt/opsview/deploy/etc/user_vars.yml
- /etc/hosts
  1. Run the deployment playbooks:

Commands:

1. # rm -rf /opt/opsview/deploy/var/cache/facts/ /opt/opsview/deploy/var/fact_cache/
2. # /opt/opsview/deploy/bin/opsview-deploy /opt/opsview/deploy/lib/playbooks/gather-machine-refs.yml
3. # /opt/opsview/deploy/bin/opsview-deploy -l opsview_cluster_<collector_cluster_name> /opt/opsview/deploy/lib/playbooks/setup-hosts.yml
4. # /opt/opsview/deploy/bin/opsview-deploy -l opsview_cluster_<collector_cluster_name> /opt/opsview/deploy/lib/playbooks/setup-infrastructure.yml
5. # /opt/opsview/deploy/bin/opsview-deploy -l <orchestrator_hostname> /opt/opsview/deploy/lib/playbooks/messagequeue-install.yml
6. # /opt/opsview/deploy/bin/opsview-deploy -l opsview_cluster_<collector_cluster_name> /opt/opsview/deploy/lib/playbooks/setup-opsview.yml
7. # /opt/opsview/deploy/bin/opsview-deploy -l <orchestrator_host> /opt/opsview/deploy/lib/playbooks/ssh-tunnels-install.yml
8. # /opt/opsview/deploy/bin/opsview-deploy -l '< orchestrator_hostname>,opsview_cluster_<collector_cluster_name>' /opt/opsview/deploy/lib/playbooks/setup-monitoring.yml
  1. Apply Changes

  2. Post-Change Checks

["Geneos"] ["Opsview > System"] ["FAQ"]

Was this topic helpful?