This explains how to configure username and password during initial configuration:
How can I change that using config files on server if I've lost the username and password?
This explains how to configure username and password during initial configuration:
How can I change that using config files on server if I've lost the username and password?
$ find / -name nagios*.conf
###/etc/httpd/conf.d/nagios.conf
$ cat /etc/httpd/conf.d/nagios.conf | grep AuthUserFile
###AuthUserFile /etc/nagios/passwd
$ sudo htpasswd -c /etc/nagios/passwd nagiosadmin
I found the answer
sudo htpasswd -c /etc/nagios3/htpasswd.users nagiosadmin
Enter a strong password when prompted.
Note the -c replaces all existing passwords. To simply update an existing one (without affecting others):
sudo htpasswd /etc/nagios3/htpasswd.users nagiosadmin
sudo htpasswd /etc/nagios3/htpasswd.users nagiosadmin
Use this command:
htpasswd /usr/local/nagios/etc/htpasswd.users nagiosadmin
It will ask for new password.