Docker container for Nagios 4.3.2
"Nagios Is The Industry Standard In IT Infrastructure Monitoring. Achieve instant awareness of IT infrastructure problems, so downtime doesn't adversely affect your business.Nagios offers complete monitoring and alerting for servers, switches, applications, and services."
To install docker in Ubuntu 16.04 use the commands:
$ sudo apt-get update $ wget -qO- https://get.docker.com/ | sh
To install docker in other operating systems check docker online documentation
To run container use the command below:
$ docker run -d -p 25 -p 80 quantumobject/docker-nagios
login : nagiosadmin password: admin please replace it after install.
to access the container please use :
$ docker exec -it container_id /bin/bash
to replace password :
$ htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
note: to access site is http://server_ip:external_container_port/nagios/
update to nrpe-3.1.1
update to nagios-plugins-2.2.1
About Nagios www.nagios.org
To help improve this container quantumobject/docker-nagios
For additional info about us and our projects check our site www.quantumobject.org
How might I set up the notifications to work? I modified the contacts.cfg
email nagios@localhost ; <<* CHANGE THIS TO YOUR EMAIL ADDRESS **
with my email but I am not getting any emails from any services that have a crittical event.
Thanks for the info!
@bluehorseshoe1 Its because the ports were not explicitly mapped. Should really look something like this: docker run -d -p 25:25 -p 80:80 quantumobject/docker-nagios
The port mapping works like this:
I did run into one slowdown. I am still learning so must people probably already know this however I thought I would offer feedback for anyone starting out like me.
I had thought the port was just going to be port 80. I ended up figuring out the correct port to access the web UI by using the command "docker port <containerID>.
docker port 9dfbbfba3583
25/tcp -> 0.0.0.0:32769
80/tcp -> 0.0.0.0:32768
using port 32768 to connect to the nagios web ui worked.
Might be a good idea to mention the location of the config files: /usr/local/nagios/etc
Many thanks ... It works !
Thanks. 4.2 works fine.