Nagios/Adagios Container Build
Built from appcontainers/centos66
Build container using default values.
docker build -t appcontainers/nagios .
Running the container
The container is built to allow several configurable variables to be passed in at runtime. The values are as follows:
- APP_NAME - This is the fully qualified domain name such as example.com. This should be passed without any prefix such as www.
- APP_USER - The username that the Application will use.
- APP_PASS - The password of the user that the Application uses.
Run the container using default values
docker run -d -it --name nagios -h nagios -p 80:80 appcontainers/nagios
This will assume the following
- APP_NAME = nagios.local
- APP_USER = admin
- APP_PASS = P@ssw0rd
Run the container substituting the $varables with your own custom values
docker run -d -it \ --name nagios \ -h nagios \ -p 80:80 \ -e APP_NAME='testapp.com' \ -e APP_USER='admin' \ -e APP_PASS='P@ssw0rd' \ appcontainers/nagios
Container does not require persistent storage as long as nagios configs are stored in git
configs stored in /etc/nagios/ git init already set, Add remote, and commit configs
Navigate to the IP address of the server on the port specified (80 default) to access the nagios instance. (http://18.104.22.168/adagios)
Manually add user via:
htpasswd -c -b /etc/nagios/passwd username password