Nagios 4 in docker
Go to file
Mark Vartanyan 3f16e88bab Works, yeehaw! :) 2014-06-27 13:22:43 +02:00
conf Works, yeehaw! :) 2014-06-27 13:22:43 +02:00
Dockerfile Works, yeehaw! :) 2014-06-27 13:22:43 +02:00
README.md Works, yeehaw! :) 2014-06-27 13:22:43 +02:00
run.sh Works, yeehaw! :) 2014-06-27 13:22:43 +02:00

README.md

Nagios

Contains:

  • Nagios Core
  • Nagios Plugins
  • Nagios NPRE (Remote Plugin Execution)
  • Apache
  • PHP

Processes are managed by supervisor, including cronjobs

Exports

  • Nginx on 80
  • Nagios NRPE on 5666
  • /etc/nagios: configuration
  • /usr/local/nagios/var/: nagios runtime

Variables

  • NAGIOS_USER=nagios: Web UI username
  • NAGIOS_PASS=nagios: Web UI password

Constants in Dockerfile

  • NAGIOS_PHP_TIMEZONE=UTC: Timezone to use with PHP
  • NAGIOS_TARBALL: Nagios tarball URL
  • NAGIOS_PLUGINS_TARBALL: Nagios Plugins tarball URL
  • NAGIOS_NRPE_TARBALL: Nagios NRPE tarball URL

Example

Launch Nagios container:

$ docker start nagios || docker run --rm -p 80:80 -p 5666:5666 -e NAGIOS_USER=nagios -e NAGIOS_PASS=nagios -ti kolypto/nagios

Enjoy! :)