Public | Automated Build

Last pushed: 2 years ago
Short Description
Nagios Is The Industry Standard In IT Infrastructure Monitoring (3.5.1) Forked from cpuguy83/nagios
Full Description

Docker-Nagios

Basic Docker image for running Nagios.<br />
This is running Nagios 3.5.1

You should either link a mail container in as "mail" or set MAIL_SERVER, otherwise
mail will not work.

Knobs

  • NAGIOSADMIN_USER=nagiosadmin
  • NAGIOSAMDIN_PASS=nagios

Web UI

The Nagios Web UI is available on port 80 of the container<br />

Docker Pull Command
Owner
tpires
Source Repository

Comments (9)
supportsfp
3 years ago

When I do : docker run -d –name nagios-conf myrepo/nagios-conf /dev
I get : Unable to find image ‘myrepo/nagios-conf’ locally
Pulling repository myrepo/nagios-conf
2014/08/15 12:10:46 HTTP code: 404

tpires
3 years ago

@supportsfp I've finished it, have a look and give feedback http://wp.me/p2DwLV-4n

tpires
3 years ago

On going work, maybe today i'll finish it.

supportsfp
3 years ago

Any update on the instruction?

tpires
3 years ago

Going to do that asap. I'll keep in touch.

supportsfp
3 years ago

Am a bit confused here - Do I import --volumes-from nagios-conf . after the pull nagios image from the bash cmd?

Please step by step instruction - I need to get this installed.

tpires
3 years ago

Oh i forgot to mention that when starting nagios image you need to import the nagios-conf container with --volumes-from nagios-conf .

tpires
3 years ago

Hi!

This is my base image to run nagios on docker. I've set a new container with configuration files to nagios, called nagios-conf. All configurations are on /conf.

On this nagios image, i've add a launch script and an environment variable CONF_PATH. If latter is set, then it copies all *.cfg to $NAGIOS_HOME/etc/servers and uncomments $NAGIOS_HOME/etc/servers at $NAGIOS_HOME/etc/nagios.cfg.

Configuration directory

if [ ! -z $CONF_PATH ]; then
cp -f $CONF_PATH/*.cfg $NAGIOS_HOME/etc/servers/
sed -i "s|#cfg_dir=$NAGIOS_HOME/etc/servers|cfg_dir=$NAGIOS_HOME/etc/servers|g" $NAGIOS_HOME/etc/nagios.cfg
fi

The last line of launch script launches nagios:

/usr/local/bin/start_nagios

supportsfp
3 years ago

Hi ,
Am a newbie on docker, I've pulled and ran the tpires/nagios then how do I configure nagios from the terminal?