How to Change Nagiosadmin password – Nagios Core

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.

In below example i have two users in my Nagios.

[root@TechTutorials ~]# cat /usr/local/nagios/etc/htpasswd.users
nagiosadmin:DFhwTcJ0S0Qg.
ravi:AGiopuyer90Ruiqld
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
New password:
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
nagiosadmin:XL8.O6CtdiLSQ
ravi:AGiopuyer90Ruiqld

:wq

That’s it, Now go ahead and login with changed password.

Related Posts

Nagios Installation and configuration in RHEL 7/ Centos 7

Installing and configurating NRPE agent in RHEL 7 / Centos 7

Nagios Administrator Interview Questions and Answers

Preparing Linux Server for Nagios Monitoring Tool Installation

Thanks for your wonderful Support and Encouragement