packages/net/nut/files/nut_monitor
Pascal Coudurier 0f91594e2a nut: refactor nut-monitor uci config file
Convert notifyflags options to lists as supported by the init script, so multiple options can be chosen.
Add SYSLOG default option to individuals notifyflags instead of deprecated flag 1|0.
Add comment for defaultnotify and individuals notifyflags about possible values.

Signed-off-by: Pascal Coudurier <coudu@wanadoo.fr>
2022-01-11 16:27:19 -08:00

52 lines
1.9 KiB
Text

#config upsmon 'upsmon'
# option runas nutmon
# option minsupplies 1
# option shutdowncmd '/usr/sbin/nutshutdown'
# option notifycmd /path/to/cmd
# list defaultnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# option pollfreq 5
# option pollfreqalert 5
# option hostsync 15
# option deadtime 15
# option onlinemsg "online message"
# option onbattmsg "on battery message"
# option lowbattmsg "low battery message"
# option fsdmsg "forced shutdown message"
# option comokmsg "communications restored message"
# option combadmsg "communications bad message"
# option shutdowmsg "shutdown message"
# option replbattmsg "replace battery message"
# option nocommmsg "no communications message"
# option noparentmsg "no parent message"
# list onlinenotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# list onbattnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# list lowbattnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# list fsdnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# list comoknotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# list combadnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# list shutdownotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# list replbattnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# list nocommnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# list noparentnotify SYSLOG # can be SYSLOG or EXEC or IGNORE
# option rbwarntime 4200 # replace battery warn time
# option nocommwarntime 300 # no communications warn time
# option finaldelay 5 # final delay
# option certpath /path/to/ca/dir
# option certverify 0
# option forcessl 0
#config master
# option upsname upsname
# option hostname localhost
# option port # optional port number
# option powervalue 1
# option username upsuser
# option password upspassword
#config slave
# option upsname upsname
# option hostname localhost
# option port # optional port number
# option powervalue 1
# option username upsuser
# option password upspassword