Page 1 of 1
nagios password expiration - no processing of perf data
Posted: Wed Mar 14, 2018 2:10 pm
by jhalbert
In our installation of Nagios XI, performance data has stopped processing because it appears that the nagios account password has expired. Trouble is, the web interface under account management only shows a nagiosadmin account and not a nagios account. How can I reset the password to the nagios account?
Re: nagios password expiration - no processing of perf data
Posted: Thu Mar 15, 2018 7:35 am
by jhalbert
I have found that using the chage command as shown below re-enables a password that has expired and resolves the performance data processing issue:
chage -M 99999 nagios
I do have further questions, when does the nagios account get created? How do you determine what the password for the nagios account is? Further, if I change the password with the passwd command, will it break anything? Hopefully, a default password is not embedded in any code.
Thanks for answering this.
Re: nagios password expiration - no processing of perf data
Posted: Thu Mar 15, 2018 10:20 am
by cdienger
This is covered in
https://support.nagios.com/kb/article/n ... ems-9.html where it is recommended to run the following to re-enable the account:
chage -I -1 -m 0 -M 99999 -E -1 nagios
The account is created during the install with the command:
useradd nagios
There shouldn't be a password set. You can make there isn't by checking/changing
/etc/shadow: where you'll find a line like:
nagios:!!
0:99999:7:::
Note the
!! . If a password was set you would see this replaced with a long random string.