Skip to content
Docker image for Nagios
Dockerfile Shell
Branch: master
Clone or download
Latest commit 656fe71 Sep 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
overlay chown for nagios files not working as expected Aug 21, 2018
.dockerignore Add Travis build Feb 17, 2016
.travis.yml Add Travis build Feb 17, 2016
Dockerfile Update Nagios to 4.4.5 Aug 23, 2019
LICENCE Add LICENCE file for #15 Jan 18, 2017
README.md Update Nagios to 4.4.5 Aug 23, 2019
_config.yml Set theme jekyll-theme-hacker Dec 16, 2016
build.sh Update to Nagios 4.4.4 Jul 31, 2019
docker-compose.yml Fix typos Mar 15, 2018

README.md

Docker-Nagios

Docker image for Nagios

Build Status: Build Status

Nagios Core 4.4.5 running on Ubuntu 16.04 LTS with NagiosGraph & NRPE

Configurations

Nagios Configuration lives in /opt/nagios/etc NagiosGraph configuration lives in /opt/nagiosgraph/etc

Install

docker pull jasonrivers/nagios:latest

Running

Run with the example configuration with the following:

docker run --name nagios4 -p 0.0.0.0:8080:80 jasonrivers/nagios:latest

alternatively you can use external Nagios configuration & log data with the following:

docker run --name nagios4  \
  -v /path-to-nagios/etc/:/opt/nagios/etc/ \
  -v /path-to-nagios/var:/opt/nagios/var/ \
  -v /path-to-custom-plugins:/opt/Custom-Nagios-Plugins \
  -v /path-to-nagiosgraph-var:/opt/nagiosgraph/var \
  -v /path-to-nagiosgraph-etc:/opt/nagiosgraph/etc \
  -p 0.0.0.0:8080:80 jasonrivers/nagios:latest

Note: The path for the custom plugins will be /opt/Custom-Nagios-Plugins, you will need to reference this directory in your configuration scripts.

There are a number of environment variables that you can use to adjust the behaviour of the container:

Environamne Variable Description
MAIL_RELAY_HOST Set Postfix relayhost
MAIL_INET_PROTOCOLS set the inet_protocols in postfix
NAGIOS_FQDN set the server Fully Qualified Domain Name in postfix
NAGIOS_TIMEZONE set the timezone of the server

For best results your Nagios image should have access to both IPv4 & IPv6 networks

Credentials

The default credentials for the web interface is nagiosadmin / nagios

Extra Plugins

You can’t perform that action at this time.