Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authorized question #11

Closed
yifa-n opened this issue Dec 18, 2016 · 2 comments
Closed

authorized question #11

yifa-n opened this issue Dec 18, 2016 · 2 comments

Comments

@yifa-n
Copy link

yifa-n commented Dec 18, 2016

hi
when i run docker image with follow command
docker run --name nagios4 -p 0.0.0.0:8080:80 jasonrivers/nagios:latest
i notice log that " Adding password for user nagiosadmin "
when i put mu linux ip:port(1.2.3.4:8080) on website user/password required
assuming that my linux user/password like <bk/123456>
both failed when i try user/password (bk/123456 or nagiosadmin/ )
what can i do is correct?
thank you a lot ~

@JasonRivers
Copy link
Owner

The default user/pass on the image is nagiosadmin/nagios.
If you mount a volume for the nagios etc directory :

-v /path-to-nagios/etc/:/opt/nagios/etc/

and you have a htpasswd.users in the etc directory then it will use that, if the file doesn't exist it creates one at start-up otherwise nagios won't work as you must authenticate to it by default.

If you start nagios without the htpasswd.users, once nagios has created it you can change the password for the nagiosadmin user using htpasswd from the command line of your system.

I hope this helps

Jason

@yifa-n
Copy link
Author

yifa-n commented Dec 22, 2016

well, it works~thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants