Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/JasonRivers/Docker-Nagios

Docker image for Nagios
https://github.com/JasonRivers/Docker-Nagios

Last synced: 3 months ago
JSON representation

Docker image for Nagios

Awesome Lists containing this project

README

        

# Docker-Nagios

Docker image for Nagios

Build Status: [![Build Status](https://travis-ci.org/JasonRivers/Docker-Nagios.svg?branch=master)](https://travis-ci.org/JasonRivers/Docker-Nagios)

Nagios Core 4.5.2 running on Ubuntu 22.04 LTS with NagiosGraph & NRPE

| Product | Version |
| ------- | ------- |
| Nagios Core | 4.5.2 |
| Nagios Plugins | 2.4.10 |
| NRPE | 4.1.0 |
| NCPA | 3.1.0 |
| NSCA | 2.10.2 |

### Configurations
Nagios Configuration lives in /opt/nagios/etc
NagiosGraph configuration lives in /opt/nagiosgraph/etc

### Install

```sh
docker pull jasonrivers/nagios:latest
```

### Running

Run with the example configuration with the following:

```sh
docker run --name nagios4 -p 0.0.0.0:8080:80 jasonrivers/nagios:latest
```

alternatively you can use external Nagios configuration & log data with the following:

```sh
docker run --name nagios4 \
-v /path-to-nagios/etc/:/opt/nagios/etc/ \
-v /path-to-nagios/var:/opt/nagios/var/ \
-v /path-to-custom-plugins:/opt/Custom-Nagios-Plugins \
-v /path-to-nagiosgraph-var:/opt/nagiosgraph/var \
-v /path-to-nagiosgraph-etc:/opt/nagiosgraph/etc \
-p 0.0.0.0:8080:80 jasonrivers/nagios:latest
```

Note: The path for the custom plugins will be /opt/Custom-Nagios-Plugins, you will need to reference this directory in your configuration scripts.

There are a number of environment variables that you can use to adjust the behaviour of the container:

| Environamne Variable | Description |
|--------|--------|
| MAIL_RELAY_HOST | Set Postfix relayhost |
| MAIL_INET_PROTOCOLS | set the inet_protocols in postfix |
| NAGIOS_FQDN | set the server Fully Qualified Domain Name in postfix |
| NAGIOS_TIMEZONE | set the timezone of the server |

For best results your Nagios image should have access to both IPv4 & IPv6 networks

#### Credentials

The default credentials for the web interface is `nagiosadmin` / `nagios`

### Extra Plugins

* Nagios nrpe []
* Nagiosgraph []
* JR-Nagios-Plugins - custom plugins I've created []
* WL-Nagios-Plugins - custom plugins from William Leibzon []
* JE-Nagios-Plugins - custom plugins from Justin Ellison []
* DF-Nagios-Plugins - custom pluging for MSSQL monitoring from Dan Fruehauf []
* check-mqtt - custom plugin for mqtt monitoring from Jan-Piet Mens []