/upsmon-docker

Contains upsmon.

Primary LanguageShellApache License 2.0Apache-2.0

upsmon

version) image size linting license

Overview

This docker image contains NUT.

Example Configuration

This is an example dynamic configuration connecting to upsd as a slave.

---
version: "3.9"

services:
  upsd:
    ...
    environment:
      UPSMON_UPS_UPSMONSLAVE: |
        MONITOR ups0@myupsdhost 1 upsmonslave $${UPSMONSLAVE_PASSWORD} slave
    ...

Entrypoint Scripts

upsmon

The embedded entrypoint script is located at /etc/entrypoint.d/upsmon and performs the following actions:

  1. A new upsmon configuration is generated using the following environment variables:
Variable Default Value Description
UPSMON_NSS_PATH <nut_confpath>/nss The path to the NSS database.
UPSMON_UPS_* The contents to be appended to <nut_confpath>/upsmon.conf.
  1. Volume permissions are normalized.

Standard Configuration

Container Layout

/
├─ etc/
│  ├─ entrypoint.d/
│  │  └─ upsmon
│  ├─ healthcheck.d/
│  │  └─ upsmon
│  └─ supervisor/
│     └─ config.d/
│        └─ upsmon.conf
└─ run/
   └─ secrets/
      ├─ nss_password
      ├─ upsmon.crt
      ├─ upsmon.key
      ├─ upsmonca.crt
      └─ upsmon_<user>_password

Exposed Ports

None.

Volumes

  • /etc/nut - The upsmon configuration directory.

Development

Source Control