Page 1 of 1

Nagios XI - admin password lost

Posted: Thu Oct 27, 2022 10:33 am
by veeravamsi
Hi Team,

We have lost admin credentials for our Nagios Test instance ... We do have CLi root access , is it possible to reset or reclaim nagiosadmin credentials to get Administrator access to GUI to continue the XI Upgrade process.

--Vamsi

Re: Nagios XI - admin password lost

Posted: Thu Oct 27, 2022 6:39 pm
by lazzarinof
Whew! Good thing you have root access:

SSH in to the box, and use the reset admin password script:
/usr/local/nagiosxi/scripts/reset_nagiosadmin_password.php --password=newpassword

If you want to use special characters, you can escape with a backslash "\":
/usr/local/nagiosxi/scripts/reset_nagiosadmin_password.php --password=\$new\ password\#

But I tend to set an easy password in CLI, then change the password in the GUI, because I don't trust me. :P

Re: Nagios XI - admin password lost

Posted: Tue Nov 29, 2022 10:07 am
by veeravamsi
Thank you :)