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.
The Nagios Web UI is available on port 80 of the container<br />
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
On going work, maybe today i'll finish it.
Any update on the instruction?
Going to do that asap. I'll keep in touch.
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.
Oh i forgot to mention that when starting nagios image you need to import the nagios-conf container with
--volumes-from nagios-conf .
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.
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
The last line of launch script launches nagios:
Am a newbie on docker, I've pulled and ran the tpires/nagios then how do I configure nagios from the terminal?