Page 1 of 1

Nagios XI Admin Login Reset

Posted: Mon Nov 28, 2016 4:03 pm
by GacoAdmin110
Good Afternoon,

One of my site admins has reset the Admin account to log into the command line/Centos OS for my Nagios XI server.

The web portal works just fine, but I need to log into the command line to do some cleanup & adjust disk size.

Is there anyway to log into the command line to reset the password? I have tried root, nagiosxi, and nagiosadmin accounts with the defaults & our own known passwords...no luck.

Thnx much

Mike

Re: Nagios XI Admin Login Reset

Posted: Mon Nov 28, 2016 4:22 pm
by dwhitfield
If I understand the situation correctly, you are going to need to talk to the site admin that changed the password.

Just to clarify though, everything in Nagios works fine, correct?

Re: Nagios XI Admin Login Reset

Posted: Mon Nov 28, 2016 4:41 pm
by GacoAdmin110
Yes, everything is working correctly through the web console.

Unfortunately that particular site admin is no longer with us so I have to find another way. Or I will have to do a full backup & redo the server entirely...ugh.

Thnx

Re: Nagios XI Admin Login Reset

Posted: Mon Nov 28, 2016 4:44 pm
by tmcdonald
You can try something like this:

https://access.redhat.com/documentation ... asswd.html

But I need to stress that this is out of scope of our support and is not guaranteed/recommended/suggested/etc.

Re: Nagios XI Admin Login Reset

Posted: Wed Nov 30, 2016 12:58 pm
by chadw
I would like to add to this discussion:

We just terminated an employee who had only setup himself as administrator, no one else has ANY access. We cannot login to the web portal, is there a way around this? We may have the root password to the CentOS box.

Thanks!!

Re: Nagios XI Admin Login Reset

Posted: Wed Nov 30, 2016 1:30 pm
by tmcdonald
If you do have access, there is a reset script located at /usr/local/nagiosxi/scripts/reset_nagiosadmin_password.php:

Code: Select all

[root@localhost scripts]# ./reset_nagiosadmin_password.php
Nagios XI Admin Password Reset Tool
Copyright (c) 2016 Nagios Enterprises, LLC

Usage: ./reset_nagiosadmin_password.php --password=<newpassword>

Resets password used to login to the Nagios XI interface as the nagiosadmin user.

Re: Nagios XI Admin Login Reset

Posted: Wed Nov 30, 2016 1:34 pm
by chadw
You ROCK!!!

Re: Nagios XI Admin Login Reset

Posted: Wed Nov 30, 2016 1:39 pm
by tmcdonald
I do what I can :)

Going to lock this up now though since the web account reset script has been shared, and we can't much help with a locked-out root account.