HUB
Sign inSign up
upsmon logo

crashvb/upsmon

By crashvb

•Updated over 3 years ago

Contains upsmon / nut-client.

Image
0

1.7K

crashvb/upsmon repository overview

⁠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:
VariableDefault ValueDescription
UPSMON_NSS_PATH<nut_confpath>/nssThe 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
│  └─ 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⁠

Tag summary

Content type

Image

Digest

sha256:0085faf8e…

Size

59.1 MB

Last updated

over 3 years ago

docker pull crashvb/upsmon