blob: ce9302dbb515caca9a045d403d0068b765ca94c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# **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
# option certpath /path/to/ca/dir
# option certverify 0
# option forcessl 0
# option debugmin 0
# option defaultnotify SYSLOG
# option interface_reload_delay 3000 # in milliseconds
#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"
|