Changing Opsview Monitor passwords
Overview Copied
Warning
There will be a short outage to Opsview Monitor while the passwords are changed.
-
As root on the orchestrator and all collectors, stop all Opsview Monitor daemons:
/opt/opsview/watchdog/bin/opsview-monit stop all
Note
If you use SSH tunnels initiated by the collector, this command will close them all so ensure you have access to your collectors without using the tunnel first
- Edit passwords on the deploy server (usually the orchestrator) in
/opt/opsview/deploy/etc/user_secrets.yml
Note
Passwords should avoid characters such as@
,!
and$
due to handling by Perl or by the shell
-
As root on the deploy server, run Opsview Deploy to reconfigure all configuration files. This will restart the Opsview Monitor daemons automatically on the orchestrator and all collectors:
/opt/opsview/deploy/bin/opsview-deploy /opt/opsview/deploy/lib/playbooks/setup-everything.yml
-
As root on the orchestrator and all collectors, validate that all of the Opsview Monitor daemons are running correctly:
/opt/opsview/watchdog/bin/opsview-monit summary
Changing the “admin” User Interface password Copied
To change the “admin” user password (if the current one is known) via the Opsview Monitor Web Interface follow the steps noted below:
-
Login as the admin user
-
Click on the name in the top right, then choose My Profile
-
Enter the new password in the fields provided, and click Submit Changes
Note
Your current UI session will continue, but you will need to use the new password for the next login.
Recovering the “admin” Web User Interface password Copied
In the event that the “admin” password has been lost, the following commands will reset it to the installation default.
mysql -u root -p
Password:
mysql> use opsview;
mysql> UPDATE contacts SET encrypted_password='$2a$10$Jjfhbw7SZVDhLx/0ci3xYOMSpOkhCz7jfSlVKTWK0t4oopg.axcyu' WHERE name="admin";
You should now be able to access the Opsview Monitor Web User Interface once again using the username “admin” and the password “initial”.
Note
Be sure to change the password to something other than the default.