The default user ID used to log in to the Nagios Core web interface is nagiosadmin and the password is PASSW0RD (with a zero). More accounts can be created, or the password can be updated by using the command line.
To create a new user ID or update a password using htpasswd, complete the following steps:
- To create the joe_user user ID, complete the following steps:
-
- Type the following command and press Enter:
[root@puremgr ~]# htpasswd /usr/local/nagios/etc/htpasswd.users joe_user
- When prompted, type a password and press Enter.
- When prompted, retype the password and press Enter.
- Type the following command and press Enter:
The following message is displayed
Adding password for user joe_user
-
- To update the password for the user ID for joe_user, follow these steps:
-
- Type the following command and press Enter:
[root@puremgr ~]# htpasswd /usr/local/nagios/etc/htpasswd.users joe_user
- When prompted, type the new password and press Enter.
- When prompted, retype the new password and press Enter.
- Type the following command and press Enter:
The following message is displayed
Updating password for user joe_user
-
- To delete the joe_user user ID, type the following command and press Enter:
[root@puremgr ~]# htpasswd -D /usr/local/nagios/etc/htpasswd.users joe_user
The following message is displayedÂ
Deleting password for user joe_user
- To specify a password by using the -b flag, type the following command and press Enter:
[root@puresecurity ~]# htpasswd -b /usr/local/nagios/etc/htpasswd.users new_userid my_password
The following message is displayed
Adding password for user new_userid