Public | Automated Build

Last pushed: 3 months ago
Short Description
Docker container for Nagios
Full Description

docker-nagios

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."

Install dependencies

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

Usage

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

More Info

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

Docker Pull Command
Owner
quantumobject
Source Repository

Comments (9)
sixpac009
6 days ago

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.

bluehorseshoe1
8 months ago

Thanks for the info!

oelzarad
10 months ago

@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:
-p <host-port>:<container-port>

bluehorseshoe1
a year ago

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.

gigante
a year ago

Might be a good idea to mention the location of the config files: /usr/local/nagios/etc

tessra
a year ago

Many thanks ... It works !

clarencecheung
a year ago

Thanks. 4.2 works fine.

angelrr7702
a year ago

Update to 4.2.0
Ready to be use … let me know of any problem with it at

https://github.com/QuantumObject/docker-nagios

angelrr7702
2 years ago

Update to 4.1.1
Ready to be use … let me know of any problem with it at

https://github.com/QuantumObject/docker-nagios