Updating External Service Passwords
This article describes how to change the default passwords for the following included external services:
Nagios
To change the Nagios password:
-
On the Controller host, execute the command
docker psto view the Nagios container.This command returns a table with a list of the containers running on the Controller host.
-
Look in the
NAMEScolumn for an entry similar to the following:epic-nagios-10.32.1.112This is the Nagios container running on the Controller.
-
Execute the following commands to view the current password:
# docker exec -it epic-nagios-10.32.1.112 bash # cat /etc/nagios/passwdThe system will return the current administrator password:
nagiosadmin:nagiosadmin -
To update the password, execute the following command:
# htpasswd -c /etc/nagios/passwd nagiosadmin -
You will be prompted to
Enter the New passwordand then toRe-type new password for confirmation.The system confirms that the password is being changed.
Adding password for user nagiosadmin -
Execute the following command to verify that the password was changed:
# cat /etc/nagios/passwdThe system displays the new administrator password:
nagiosadmin:$apr1$/5sis9Al$3ncyFom6EUXRnfymJf9Yo -
Validate that the system has changed the password by accessing the Nagios interface and then typing
<controller_ip>:8443 (e.g. 10.32.1.112:8443).The system asks for a username and password.
- Enter
nagiosadminas the username, and then enter the new password. - Verify successful login.
HAProxy
To change the HAProxy password, use the following procedure on each Gateway host:
- Open the file
/opt/bluedata/common-install/scripts/haproxy/haproxy_globals.cfgfor editing. -
In the
listen stats : 8081section, find the following line:stats auth haproxy:haproxy - Change this line to reflect the new password. For example, to change the
password from
haproxytohaproxy1, edit the line to readhaproxy:haproxy1. - Execute the command
bds-controller restarton the Gateway host. - After few minutes, access the HAProxy service on the Gateway host by navigating
to
<gateway_ip>:8081, and then attempt to log in as userhaproxywith the new password.
HACluster
If you have forgotten the current HACluster password or you want to change the HACluster password, reset the HACluster password and re-authenticate the cluster nodes:
- On the primary Controller, execute the following
command:
passwd hacluster - If the controller host is running RHEL, on the Shadow Controller, execute the following command:
passwd hacluster - On the primary Controller, re-authenticate the HACluster nodes by executing the
following
command:
pcs cluster auth <node1> <node2> --forcewhere
<node1>and<node2>are the hostnames or IP addresses of the nodes being re-authenticated.