Docker Community Forums

Share and learn in the Docker community.

Unable to login to Dockerised Nagios application / Nagios UI


(Bluemind2005) #1

Hi Guys,

I did docker pull of nagios from docker hub and ran it as per arguments from command line but I cannot see webpage loaded, anything I’m doing wrong?

docker pull jasonrivers/nagios:latest
[jim@centos7 ~]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
19bec128b848 jasonrivers/nagios:latest “/usr/local/bin/star…” 8 minutes ago Up 8 minutes 0.0.0.0:8080->80/tcp nagios4
[jim@centos7 ~]$

Docker logs below:

[jim@centos7 ~]$ docker logs 19
Adding password for user nagiosadmin
Started runsvdir, PID is 9

Nagios Core 4.3.4
Copyright © 2009-present Nagios Core Development Team and Community Contributors
Copyright © 1999-2009 Ethan Galstad
Last Modified: 2017-08-24
License: GPL

Website: https://www.nagios.org
Nagios 4.3.4 starting… (PID=15)
Local time is Wed May 16 06:12:32 UTC 2018
nerd: Channel hostchecks registered successfully
nerd: Channel servicechecks registered successfully
nerd: Channel opathchecks registered successfully
nerd: Fully initialized and ready to rock!
wproc: Successfully registered manager as @wproc with query handler
rsyslogd: [origin software=“rsyslogd” swVersion=“8.16.0” x-pid=“17” x-info=“http://www.rsyslog.com”] start
nagios: Nagios 4.3.4 starting… (PID=15)
nagios: Local time is Wed May 16 06:12:32 UTC 2018
nagios: LOG VERSION: 2.0
nagios: qh: Socket ‘/opt/nagios/var/rw/nagios.qh’ successfully initialized
nagios: qh: core query handler registered
nagios: nerd: Channel hostchecks registered successfully
nagios: nerd: Channel servicechecks registered successfully
nagios: nerd: Channel opathchecks registered successfully
nagios: nerd: Fully initialized and ready to rock!
nagios: wproc: Successfully registered manager as @wproc with query handler
wproc: Registry request: name=Core Worker 21;pid=21
nagios: wproc: Registry request: name=Core Worker 21;pid=21
wproc: Registry request: name=Core Worker 22;pid=22
nagios: wproc: Registry request: name=Core Worker 22;pid=22
wproc: Registry request: name=Core Worker 23;pid=23
nagios: wproc: Registry request: name=Core Worker 23;pid=23
wproc: Registry request: name=Core Worker 24;pid=24
nagios: wproc: Registry request: name=Core Worker 24;pid=24
Successfully launched command file worker with pid 35
nagios: Successfully launched command file worker with pid 35
postfix/master[16]: daemon started – version 3.1.0, configuration /etc/postfix
nagios: SERVICE ALERT: localhost;HTTP;WARNING;SOFT;1;HTTP WARNING: HTTP/1.1 401 Unauthorized - 695 bytes in 0.002 second response time
nagios: SERVICE ALERT: localhost;HTTP;WARNING;SOFT;2;HTTP WARNING: HTTP/1.1 401 Unauthorized - 695 bytes in 0.001 second response time
nagios: SERVICE ALERT: localhost;HTTP;WARNING;SOFT;3;HTTP WARNING: HTTP/1.1 401 Unauthorized - 695 bytes in 0.001 second response time
nagios: SERVICE ALERT: localhost;HTTP;WARNING;HARD;4;HTTP WARNING: HTTP/1.1 401 Unauthorized - 695 bytes in 0.002 second response time
[jim@centos7 ~]$

Cannot access it via
http://localhost:8080 OR
http://0.0.0.0:8080
http://172.17.0.2:8080/

Output of docker inspect

[jim@centos7 ~]$ docker inspect 19|grep IP
“LinkLocalIPv6Address”: “”,
“LinkLocalIPv6PrefixLen”: 0,
“SecondaryIPAddresses”: null,
“SecondaryIPv6Addresses”: null,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“IPAddress”: “172.17.0.2”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“IPAMConfig”: null,
“IPAddress”: “172.17.0.2”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
[jim@centos7 ~]$

Any assistance would be much appreciated.

Thank you
Jim