If you forgot Change Nagiosadmin password then no need worry, because of Nagiosadmin Nagios application monitoring will not stop. The thin here is we can’t disable/enable alerts, submit commands, putting downtime is not possible without admin user. How to change Nagiosamin password – Nagios Core.
You have an admin access to Nagios server via SSH, then you can reset Nagiosadmin Password by running few commands.
How to Change Nagiosadmin password – Nagios Core
Login to Nagios Server Using SSH (Via Putty Or any CLI tools) then go to /usr/local/nagios/etc/ path then see the content of htpasswd.users file. If you have multiple users in your htpasswd file then copy the content dump to notepad or any text file editor.
Take backup your htpasswd.users file in case of any mistakes we can revert back the settings
[root@TechTutorials ~]# cp /usr/local/nagios/etc/htpasswd.users /usr/local/nagios/etc/htpasswd.bak
[root@TechTutorials ~]# htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
Re-type new password:
Adding password for user nagiosadmin
After Generating New password for nagiosadmin user edit the file then add line which are saved in text file.
[root@TechTutorials ~]# vi /usr/local/nagios/etc/htpasswd.users
That’s it, Now go ahead and login with changed password.