-
Notifications
You must be signed in to change notification settings - Fork 6
/
common_ups.conf
121 lines (118 loc) · 4.5 KB
/
common_ups.conf
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/****************************************************************************
* this file: /usr/share/icinga2/include/plugins-contrib.d/common_ups.conf *
* Common UPS type checks - check_common_ups *
* - currently supports ups types: "apc" "cyber" *
* Mel - 2016-09-20 *
* Mel - 2017-04-11 - added ups_noreplaceck option *
****************************************************************************/
object CheckCommand "check_common_ups" {
import "plugin-check-command"
command = [ PluginContribDir + "/check_common_ups" ]
arguments = {
"-H" = {
value = "$ups_address$"
description = "Address of the UPS"
required = true
}
"-C" = {
value = "$ups_community$"
description = "SNMP community string. Default: public"
required = false
}
"-d" = {
value = "$ups_degrees$"
description = "Selects celsius or fahrenheit. One of: C,c,F,f. Default: f"
required = false
}
"-b" = {
set_if = "$ups_onbattiscrit$"
description = "Set this if you wish any on battery status to be shown as critical instead of warning"
required = false
}
"-B" = {
set_if = "$ups_noreplaceck$"
description = "Set this to not check battery replace status"
required = false
}
"-i" = {
value = "$ups_inlow$"
description = "Integer value of desired low input voltage WARNING threshold. Default: 106"
required = false
}
"-I" = {
value = "$ups_inhigh$"
description = "Integer value of desired high input voltage WARNING threshold. Default: 133"
required = false
}
"-l" = {
value = "$ups_warnload$"
description = "Integer value of desired load WARNING threshold. Default: 70"
required = false
}
"-L" = {
value = "$ups_critload$"
description = "Integer value of desired load CRITICAL threshold. Default: 80"
required = false
}
"-r" = {
value = "$ups_warnrun$"
description = "Integer value of desired run time WARNING threshold. Default: 10 Minimum: 2"
required = false
}
"-R" = {
value = "$ups_critrun$"
description = "Integer value of desired run time CRITICAL threshold. Default: 8 Minimum: 1"
required = false
}
"-t" = {
value = "$ups_warntemp$"
description = "Integer value of desired temperature WARNING threshold. Default: 113f/45c"
required = false
}
"-T" = {
value = "$ups_crittemp$"
description = "Integer value of desired temperature CRITICAL threshold. Default: 122f/50c"
required = false
}
"-v" = {
set_if = "$ups_voltcrit$"
description = "Set this if you wish CRITICAL instead of default WARNING for input voltage low or high results."
}
"-w" = {
value = "$ups_diagwarn$"
description = "Integer value number of days since last diagnostic for WARNING. Default: 15"
required = false
}
"-W" = {
value = "$ups_diagcrit$"
description = "Integer value number of days since last diagnostic for CRITICAL. Default: 20"
required = false
}
"-x" = {
set_if = "$ups_nodiagck$"
description = "Disables diagnostic check and diagnostic data"
}
"-X" = {
set_if = "$ups_nocalibck$"
description = "Disables calibration check and calibration data"
}
"-y" = {
value = "$ups_calibwarn$"
description = "Integer value number of days since last calibration for WARNING. Default: 365"
required = false
}
"-Y" = {
value = "$ups_calibcrit$"
description = "Integer value number of days since last calibration for CRITICAL. Default: 400"
required = false
}
"-z" = {
set_if = "$ups_nodiagdata$"
description = "Disables diagnostic data"
}
"-Z" = {
set_if = "$ups_nocalibdata$"
description = "Disables calibration data"
}
}
}