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

change Nagiosadmin password

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

Ravi Kumar Ankam

My Name is ARK. Expert in grasping any new technology, Interested in Sharing the knowledge. Learn more & Earn More

2 Responses

  1. Chen hao says:

    Sir I want to ask you how to secure linux server we have linux server with Live IP any one can easly hack our linux server i also use fail2ban when hacker come in linux server fail2ban not show ip i dont how he is come in our server i cant see hacker IP please tell me how i can secure our linux ser thanks

    • Securing Linux is not straight forward we have to restrict File permissions, Keep Strong Password Policy, Do not allow superuser to login from SSH. Disabling Internet on Linux Servers is highly recommended, Do not use default service ports customize them.

Leave a Reply

Your email address will not be published. Required fields are marked *