Nagios 4 in docker
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
dave dab406281a use my new debs 1 year ago
conf use my new debs 1 year ago
Dockerfile use my new debs 1 year ago
Makefile update base os, cleanup 2 years ago
README.md fixes 9 years ago
run.sh fixes 9 years ago
sendmail.py use my new debs 1 year ago

README.md

Nagios

Contains:

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

Processes are managed by supervisor, including cronjobs

Exports

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

Variables

  • NAGIOS_USER=nagiosadmin: Web UI username
  • NAGIOS_PASS=nagiosadmin: 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
  • NAGIOS_NSCA_TARBALL: Nagios NSCA 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! :)