-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommands-cdot.conf
204 lines (177 loc) · 5.84 KB
/
commands-cdot.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
template CheckCommand "cdot" {
import "plugin-check-command"
import "ipv4-or-ipv6"
arguments = {
"--hostname" = {
description = "The host address of the NetApp to check."
value = "$cdot_address$"
}
"--username" = {
value = "$cdot_username$"
description = "The login username of the NetApp to check."
required = true
}
"--password" = {
value = "$cdot_password$"
description = "The login password of the NetApp to check."
required = true
}
}
vars.cdot_address = "$check_address$"
}
object CheckCommand "cdot-global" {
import "cdot"
command = [ PluginContribDir + "/check_cdot_global.pl" ]
arguments += {
"--plugin" = {
value = "$cdot_global_plugin$"
description = "possible Plugin Names are: power, fan, health (default), nvram, temp"
}
}
vars.cdot_global_plugin = "health"
}
object CheckCommand "cdot-clusterlinks" {
import "cdot"
command = [ PluginContribDir + "/check_cdot_clusterlinks.pl" ]
}
object CheckCommand "cdot-snapshots" {
import "cdot"
command = [ PluginContribDir + "/check_cdot_snapshots.pl" ]
arguments += {
"--age" = {
value = "$cdot_snapshots_age$"
description = "Snapshot age in Seconds. Default 90 days"
}
"--volume" = {
value = "$cdot_snapshots_volume$"
description = "Name of the single snapshot that has to be checked (useful for check that a snapshot retention works)."
}
"--numbersnapshot" = {
value = "$cdot_snapshots_number$"
description = "The number of snapshots that should be present in VOLUME volume (useful for check that a snapshot retention works)."
}
"--retentiondays" = {
value = "$cdot_snapshots_retentiondays$"
description = "Snapshot age in days of the newest snapshot in VOLUME volume (useful for check that a snapshot retention works)."
}
"--busy" = {
set_if = "$cdot_snapshots_busy$"
description = "Check whether there are snapshot in busy state."
}
}
}
object CheckCommand "cdot-volume" {
import "cdot"
command = [ PluginContribDir + "/check_cdot_volume.pl" ]
arguments += {
"--volume" = {
value = "$cdot_volume_volume$"
description = "Name of the single volume that has to be checked (useful for check that a snapshot retention works)."
}
"--size-warning" = {
value = "$cdot_volume_size_warning$"
description = "The warning threshold of size in percent, default to 80."
}
"--size-critical" = {
value = "$cdot_volume_size_critical$"
description = "The critical threshold of size in percent, default to 90."
}
"--inode-warning" = {
value = "$cdot_volume_inode_warning$"
description = "The warning threshold for inodes (files). Defaults to 65% if not given."
}
"--inode-critical" = {
value = "$cdot_volume_inode_critical$"
description = "The critical threshold for inodes (files). Defaults to 85% if not given."
}
"--snap-warning" = {
value = "$cdot_volume_snap_warning$"
description = "The warning threshold for snapshot space usage. Defaults to 75%."
}
"--snap-critical" = {
value = "$cdot_volume_snap_critical$"
description = "The critical threshold for snapshot space usage. Defaults to 90%."
}
"--perf" = {
set_if = "$cdot_volume_perfdata$"
description = "Flag for performance data output."
}
"--vserver" = {
value = "$cdot_volume_vserver$"
description = "Name of the destination vserver to be checked. If not specificed, search only the base server."
}
"--snap-ignore" = {
value = "$cdot_volume_snap_ignore_string$"
}
"--exclude" = {
value = "$cdot_volume_exclude$"
description = "Optional: The name of a volume that has to be excluded from the checks (multiple exclude item for multiple volumes)."
repeat_key = true
}
}
vars.cdot_volume_snap_ignore_string = {{
if (macro("$cdot_volume_ignore_snap$")) {
return "true"
} else {
return "false"
}
}}
vars.cdot_volume_size_warning = 80
vars.cdot_volume_size_critical = 90
}
object CheckCommand "cdot-snapmirror" {
import "cdot"
command = [ PluginContribDir + "/check_cdot_snapmirror.pl" ]
arguments += {
"--volume" = {
value = "$cdot_snapmirror_volume$"
description = "Name of the destination volume to be checked. If not specified, check all volumes."
}
"--vserver" = {
value = "$cdot_snapmirror_vserver$"
description = "Name of the destination vserver to be checked. If not specificed, search only the base server."
}
"--lag" = {
value = "$cdot_snapmirror_lag$"
description = "Snapmirror delay in Seconds. Default 28h."
}
}
}
object CheckCommand "cdot-disk" {
import "cdot"
command = [ PluginContribDir + "/check_cdot_disk.pl" ]
arguments += {
"--disks" = {
value = "$cdot_disk_disks$"
description = "Expected number of disks to find."
}
}
}
object CheckCommand "cdot-lun" {
import "cdot"
command = [ PluginContribDir + "/check_cdot_lun.pl" ]
arguments += {
"--volume" = {
value = "$cdot_lun_volume$"
description = "Name of the single lun that has to be checked (useful for check that a snapshot retention works)."
}
"--size-warning" = {
value = "$cdot_lun_size_warning$"
description = "The warning threshold in percent, default to 80."
}
"--size-critical" = {
value = "$cdot_lun_size_critical$"
description = "The critical threshold in percent, default to 90."
}
"--vserver" = {
value = "$cdot_lun_vserver$"
description = "Optional: The name of the Vserver where the Luns that need to be checked are located."
}
"--perf" = {
set_if = "$cdot_lun_perfdata$"
description = "Flag for performance data output."
}
}
vars.cdot_lun_size_warning = 80
vars.cdot_lun_size_critical = 90
}