Files
packages/net/nut/files/nut_monitor
T
Daniel F. Dickinson 79db1ee573 nut: enable configuring more SSL-related options
Expose the configuration knobs as UCI config for more SSL options.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
2026-08-19 23:00:56 +03:00

92 lines
3.0 KiB
Plaintext

# **NOTE**: Due to the presence of passwords in this file, restrictive file
# permissions on this file in actual use in /etc/config/nut_monitor should be
# used. For example:
# chown root:root /etc/config/nut_monitor
# chmod 0600 /etc/config/nut_monitor
# We only support one instance of upsmon, and its UCI
# section must be named 'upsmon'
# defaults for the upsmon section are compile time defaults
# except /path/to/dir values which have no default
# and defaultnotify which is an UCI specific setting
#config upsmon upsmon
# option runas nutmon
# option deadtime 15
# option finaldelay 5 # final delay
# option hostsync 15
# option minsupplies 1
# option nocommwarntime 300 # no communications warn time
# option pollfaillogthrottlemax -1
# option notifycmd '/path/to/cmd'
# option pollfreq 5
# option pollfreqalert 5
# option offduration 30
# option overduration -1
# option oblbduration 0
# option shutdowncmd '/usr/sbin/nutshutdown'
# option rbwarntime 43200 # replace battery warn time
# option alarmcritical 1
# option shutdownexit 0
# NB: certificates only apply to SSL-enabled version
# See https://github.com/networkupstools/nut/blob/master/docs/security.txt
# openssl client certificate chain and private key
# option certfile /usr/local/etc/upsmon.pem
# NSS or OpenSSL
# For NSS path the directory with certificate and key databases
# For OpenSSL path a file with one or more CA certificates
# option certpath /etc/nut/cert_db
# Client certificate name and password to unlock the key for the certificate
# option certident '"certificate name" "database password"'
# option certverify 0
# option forcessl 0
# option debugmin 0
# option defaultnotify SYSLOG
# option interface_reload_delay 3000 # in milliseconds
# option triggerlist all # not configured by default
#config monitor
# option type primary
# option upsname upsname
# option hostname localhost
# option port # optional port number
# option powervalue 1
# option username upsuser
# option password upspassword
#config monitor
# option type secondary
# option upsname upsname
# option hostname localhost
# option port # optional port number
# option powervalue 1
# option username upsuser
# option password upspassword
# notification config sections must be named with an uppercase valid
# NUT event type, from the list at
# https://networkupstools.org/docs/man/upsmon.conf.html
#
# Empty notifications sections will emit a default NOTIFYFLAG <event> SYSLOG
# line, as otherwise the NUT default of SYSLOG+WALL would be used, and the
# `wall` command is not present in OpenWrt by default
#config notifications 'COMMOK'
# option message "Communications with UPS %s established"
# option flag "SYSLOG"
#config notifications 'COMMBAD'
# option message "Communications with UPS %s lost"
# option flag "SYSLOG+EXEC"
#config notifications 'ONLINE'
# option flag "IGNORE"
#config notifications 'ONBATT'
# option message "UPS %s is on battery power"
# option flag "SYSLOG+EXEC"
#config notifications 'SHUTDOWN'
# option message "UPS %s shutting down"
# option flag "SYSLOG+EXEC"