HUB
Sign inSign up

razzle/docker-nagios-core

By razzle

•Updated over 9 years ago

Image to run nagios core on a synology nas.

Image
1

565

razzle/docker-nagios-core repository overview

⁠docker-nagios-core

Docker container to run a nagios core based on ubuntu. Tested plattform is a synology nas (RS815+). Should run in a regular docker. But not tested.

⁠Prerequisites

  • Docker Syno App installed

⁠Installing

  1. Download docker image
  2. Start Image and use assistant
  3. Advanced Button
    1. Mount volumes
      • nagios config files: /usr/local/nagios/etc
      • log files: /var/lib/log/supervisor
    2. Choose specific port or use automatic
    3. Click OK
  4. Finish and autorun container

⁠First start

The start script checks volume /usr/local/nagios/etc if a file nagios.cfg exists. If not found then the folder /usr/local/nagios/etc-ori (a copy of /usr/local/nagios/etc created during docker build) is copied back to /usr/local/nagios/etc and the default webuser is created. Remeber to change the password.

From this point you can adjust the default config to your needs.

** Attention: ** Deleting nagios.cfg reruns the copy process and recreates the default web user, changing the password to the default.

⁠Test

⁠nagios url

Open webbrowser and browse tohttp://<localhost>:<port>/nagios

⁠Default credentitials
  • login: nagiosadmin
  • password: nagios

⁠Steps after first start

⁠Change password for nagios webadmin user
  • Open terminal and run the command htpasswd -bc /usr/local/nagios/etc/htpasswd.users ${NAGIOS_WEBADMIN_USER} <password>

⁠Know issues & todos

  • Supress a2enmode warning to set servername directive
  • Enable mail
  • Solve permissions issues with file exchange via volume (nagios config, objetc etc.)
Tag summary
Recent tags
Content type
Image
Digest
Size
170.8 MB
Last updated
over 9 years ago
docker pull razzle/docker-nagios-core:latest