These docs are for v6.6. Click to read the latest docs for v6.7.

Changing Opsview Monitor Passwords

Learn how to change your Opsview Monitor admin and database passwords

Changing Database Passwords

Note: There will be a short outage to Opsview Monitor while the passwords are changed.

  1. 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

  1. 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

  1. 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
  1. 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

To change the "admin" user password (if the current one is known) via the Opsview Monitor Web Interface follow the steps noted below:

  1. Login as the admin user

  2. Click on the name in the top right, then choose My Profile

  3. 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

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!