]> granicus.if.org Git - icinga2/blob - itl/command-plugins-manubulon.conf
Adjust all HTTP handlers (ex. /v1/events)
[icinga2] / itl / command-plugins-manubulon.conf
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 /**
4  * main snmp-manubulon template
5  */
6
7 template CheckCommand "snmp-manubulon-command" {
8         import "ipv4-or-ipv6"
9
10         arguments = {
11                 "-H" = {
12                         value = "$snmp_address$"
13                         description = "Name or IP address of host to check"
14                 }
15                 "-C" = {
16                         set_if = "$snmp_nocrypt$"
17                         value = "$snmp_community$"
18                         description = "Community name for the host's SNMP agent (implies v1 protocol)"
19                 }
20                 "-p" = {
21                         value = "$snmp_port$"
22                         description = "SNMP port (Default 161)"
23                 }
24                 "-2" = {
25                         set_if = "$snmp_v2$"
26                         description = "Use snmp v2c"
27                 }
28                 "-l" = {
29                         set_if = "$snmp_v3$"
30                         value = "$snmp_login$"
31                         description = "Login and auth password for snmpv3 authentication"
32                 }
33                 "-x" = {
34                         set_if = "$snmp_v3$"
35                         value = "$snmp_password$"
36                         description = "Priv password"
37                 }
38                 "-L" = {
39                         set_if = "$snmp_v3_use_authprotocol$"
40                         value = "$snmp_authprotocol$"
41                         description = "<authproto>,<privproto> - <Authentication protocol (md5|sha : default md5)>,<Priv protocole (des|aes : default des)>"
42                 }
43                 "-X" = {
44                         set_if = "$snmp_v3_use_privpass$"
45                         value = "$snmp_privpass$"
46                         description = "Priv password for snmpv3 (AuthPriv protocol)"
47                 }
48                 "-w" = {
49                         value = "$snmp_warn$"
50                 }
51                 "-c" = {
52                         value = "$snmp_crit$"
53                 }
54                 "-t" = {
55                         value = "$snmp_timeout$"
56                         description = "Timeout for SNMP in seconds (Default: 5)"
57                 }
58         }
59
60         vars.snmp_address = "$check_address$"
61         vars.snmp_nocrypt = true
62         vars.snmp_community = "public"
63         vars.snmp_v2 = false
64         vars.snmp_v3 = false
65         vars.snmp_login = "snmpuser"
66         vars.snmp_v3_use_privpass = false
67         vars.snmp_v3_use_authprotocol = false
68         vars.snmp_authprotocol = "md5,des"
69         vars.snmp_timeout = "5"
70 }
71
72
73 /**
74  * snmp env
75  *   Url reference: http://nagios.manubulon.com/snmp_env.html
76  */
77
78 object CheckCommand "snmp-env" {
79         import "snmp-manubulon-command"
80
81         command = [ ManubulonPluginDir + "/check_snmp_env.pl" ]
82
83         arguments += {
84                 "-T" = {
85                         value = "$snmp_env_type$"
86                         description = "Environment Type [cisco|nokia|bc|iron|foundry|linux]"
87                 }
88                 "-F" = {
89                         value = "$snmp_env_fan$"
90                         description = "Minimum fan rpm value (only needed for 'iron' & 'linux')"
91                 }
92                 "-c" = {
93                         value = "$snmp_env_celsius$"
94                         description = "Maximum temp in degrees celsius (only needed for 'iron' & 'linux')"
95                 }
96                 "-f" = {
97                         set_if = "$snmp_perf$"
98                         description = "Perfparse compatible output"
99                 }
100         }
101
102         vars.snmp_env_type = "cisco"
103         vars.snmp_perf = true
104 }
105
106
107 /**
108  * snmp load
109  *   Url reference: http://nagios.manubulon.com/snmp_load.html
110  */
111
112 object CheckCommand "snmp-load" {
113         import "snmp-manubulon-command"
114
115         command = [ ManubulonPluginDir + "/check_snmp_load.pl" ]
116
117         arguments += {
118                 "-T" = {
119                         value = "$snmp_load_type$"
120                         description = "CPU check"
121                 }
122                 "-f" = {
123                         set_if = "$snmp_perf$"
124                         description = "Perfparse compatible output"
125                 }
126         }
127
128         vars.snmp_load_type = "stand"
129         vars.snmp_warn = 85
130         vars.snmp_crit = 95
131         vars.snmp_perf = true
132 }
133
134
135 /**
136  * Memory and swap usage on Linux given by Net-snmp
137  *   Memory usage on cisco routers or Pix
138  *   For other systems use check_snmp_storage.pl
139  *   Url reference: http://nagios.manubulon.com/snmp_mem.html
140  */
141
142 object CheckCommand "snmp-memory" {
143         import "snmp-manubulon-command"
144
145         command = [ ManubulonPluginDir + "/check_snmp_mem.pl" ]
146
147         arguments += {
148                 "-f" = {
149                         set_if = "$snmp_perf$"
150                         description = "Performance data output"
151                 }
152                 "-I" = {
153                         set_if = "$snmp_is_cisco$"
154                         description = "check cisco memory (sum of all memory pools)"
155                 }
156                 "-E" = {
157                         set_if = "$snmp_is_hp$"
158                         description = "check HP / Procurve memory"
159                 }
160                 "-m" = {
161                         set_if = "$snmp_memcached$"
162                         description = "Include cached memory in used memory"
163                 }
164                 "-b" = {
165                         set_if = "$snmp_membuffer$"
166                         description = "Exclude buffered memory in used memory"
167                 }
168         }
169
170         vars.snmp_warn = "94,50"
171         vars.snmp_crit = "98,80"
172         vars.snmp_perf = true
173         vars.snmp_is_cisco = false
174         vars.snmp_memcached = false
175         vars.snmp_membuffer = false
176 }
177
178
179 /**
180  * snmp storage - Disk/Memory
181  *   Url reference: http://nagios.manubulon.com/snmp_storage.html
182  */
183 object CheckCommand "snmp-storage" {
184         import "snmp-manubulon-command"
185
186         command = [ ManubulonPluginDir + "/check_snmp_storage.pl" ]
187
188         arguments += {
189                 "-m" = {
190                         value = "$snmp_storage_name$"
191                         description = "Name in description OID (can be mounpoints '/home' or 'Swap Space'...)"
192                 }
193                 "-f" = {
194                         set_if = "$snmp_perf$"
195                         description = "Perfparse compatible output"
196                 }
197                 "-e" = {
198                         set_if = "$snmp_exclude$"
199                         description = "Select all storages except the one(s) selected by -m. No action on storage type selection."
200                 }
201                 "-o" = {
202                         value = "$snmp_storage_olength$"
203                         description = "Max-size of the SNMP message, usefull in case of Too Long responses."
204                 }
205                 "-q" = {
206                         value = "$snmp_storage_type$"
207                         description = "Storage type: Other, Ram, VirtualMemory, FixedDisk, RemovableDisk, FloppyDisk, CompactDisk, RamDisk, FlashMemory, or NetworkDisk"
208                 }
209         }
210
211         vars.snmp_storage_name = "^/$$"
212         vars.snmp_warn = 80
213         vars.snmp_crit = 90
214         vars.snmp_perf = true
215         vars.snmp_exclude = false
216 }
217
218
219 /**
220  * snmp network interfaces
221  *   Url reference: http://nagios.manubulon.com/snmp_int.html
222  */
223
224 object CheckCommand "snmp-interface" {
225         import "snmp-manubulon-command"
226
227         command = [ ManubulonPluginDir + "/check_snmp_int.pl" ]
228
229         arguments += {
230                 "-n" = {
231                         value = "$snmp_interface$"
232                         description = "Name in description OID (eth0, ppp0 ...). This is treated as a regexp : -n eth will match eth0,eth1,..."
233                 }
234                 "-k" = {
235                         set_if = "$snmp_interface_perf$"
236                         description = "Check the input/ouput bandwidth of the interface"
237                 }
238                 "--label" = {
239                         value = "$snmp_interface_label$"
240                         description = "Add label before speed in output : in=, out=, errors-out=, etc..."
241                 }
242                 "-Y" = {
243                         set_if = "$snmp_interface_bits_bytes$"
244                         description = "Output performance data in bits/s or Bytes/s"
245                 }
246                 "-y" = {
247                         set_if = "$snmp_interface_percent$"
248                         description = "Output performance data in % of max speed"
249                 }
250                 "-B" = {
251                         set_if = "$snmp_interface_kbits$"
252                         description = "Make the warning and critical levels in K|M|G Bits/s instead of K|M|G Bytes/s"
253                 }
254                 "-M" = {
255                         set_if = "$snmp_interface_megabytes$"
256                         description = "Make the warning and critical levels in Mbps"
257                 }
258                 "--64bits" = {
259                         set_if = "$snmp_interface_64bit$"
260                         description = "Use 64 bits counters instead of the standard counters when checking bandwidth & performance data for interface >= 1Gbps"
261                 }
262                 "-e" = {
263                         set_if = "$snmp_interface_errors$"
264                         description = "Add error & discard to Perfparse output"
265                 }
266                 "-i" = {
267                         set_if = "$snmp_interface_inverse$"
268                         description = "Make critical when up"
269                 }
270                 "-r" = {
271                         set_if = "$snmp_interface_noregexp$"
272                         description = "Do not use regexp to match NAME in description OID"
273                 }
274                 "-d" = {
275                         value = "$snmp_interface_delta$"
276                         description = "Make an average of <delta> seconds (default 300=5min)"
277                 }
278                 "-u" = {
279                         set_if = "$snmp_interface_warncrit_percent$"
280                         description = "Make the warning and critical levels in % of reported interface speed"
281                 }
282                 "-N" = {
283                         set_if = "$snmp_interface_ifname$"
284                 }
285                 "-A" = {
286                         set_if = "$snmp_interface_ifalias$"
287                 }
288                 "-f" = {
289                         set_if = "$snmp_perf$"
290                         description = "Perfparse compatible output (no output when interface is down)"
291                 }
292                 "-W" = {
293                         set_if = "$snmp_interface_weathermap$"
294                         description = "Include 'weathermap' data for NagVis in performance data"
295                 }
296         }
297
298         vars.snmp_interface = "eth0"
299         vars.snmp_interface_perf = true
300         vars.snmp_interface_bits_bytes = true
301         vars.snmp_interface_percent = false
302         vars.snmp_interface_kbits = true
303         vars.snmp_interface_megabytes = true
304         vars.snmp_interface_64bit = false
305         vars.snmp_interface_errors = true
306         vars.snmp_interface_noregexp = false
307         vars.snmp_interface_delta = 300
308         vars.snmp_interface_warncrit_percent = false
309         vars.snmp_interface_ifname = false
310         vars.snmp_interface_ifalias = false
311         vars.snmp_warn = "300,400"
312         vars.snmp_crit = "0,600"
313         vars.snmp_perf = true
314 }
315
316
317 /**
318  * snmp process
319  *   Url reference: http://nagios.manubulon.com/snmp_process.html
320  */
321
322 object CheckCommand "snmp-process" {
323         import "snmp-manubulon-command"
324
325         command = [ ManubulonPluginDir + "/check_snmp_process.pl" ]
326
327         arguments += {
328                 "-n" = {
329                         value = "$snmp_process_name$"
330                         description = "Regex service name eg. ^apache2$"
331                 }
332                 "-F" = {
333                         set_if = "$snmp_perf$"
334                         description = "Add performance output (outputs : memory_usage, num_process, cpu_usage)"
335                 }
336                 "-A" = {
337                         set_if = "$snmp_process_use_params$"
338                         description = "Add parameters to select processes (ex : 'named.*-t /var/named/chroot' will only select named process with this parameter)"
339                 }
340                 "-m" = {
341                         set_if = "$snmp_process_mem_usage$"
342                         value = "$snmp_process_mem_threshold$"
343                         description = "Checks memory usage. Values warning and critical in Mb eg. 512,1024"
344                 }
345                 "-u" = {
346                         set_if = "$snmp_process_cpu_usage$"
347                         value = "$snmp_process_cpu_threshold$"
348                         description = "Checks CPU usage. Values warning and critical in % (value can be > 100% : 100%=1 CPU) eg. 15,50"
349                 }
350         }
351
352         vars.snmp_process_name = ".*"
353         vars.snmp_warn = 0
354         vars.snmp_crit = 0
355         vars.snmp_perf = true
356         vars.snmp_process_use_params = false
357         vars.snmp_process_mem_usage = false
358         vars.snmp_process_mem_threshold = "0,0"
359         vars.snmp_process_cpu_usage = false
360         vars.snmp_process_cpu_threshold = "0,0"
361 }
362
363 /**
364  * snmp service
365  *   Url reference: http://nagios.manubulon.com/snmp_windows.html
366  */
367
368 object CheckCommand "snmp-service" {
369         import "snmp-manubulon-command"
370
371         command = [ ManubulonPluginDir + "/check_snmp_win.pl" ]
372
373         arguments += {
374                 "-n" = {
375                         value = "$snmp_service_name$"
376                         description = "Comma separated names of services (perl regular expressions can be used for every one). By default, it is not case sensitive. eg. ^dns$"
377                 }
378                 "-N" = {
379                         value = "$snmp_service_count$"
380                         description = "Compare matching services with <n> instead of the number of names provided."
381                 }
382                 "-s" = {
383                         set_if = "$snmp_service_showall$"
384                         description = "Show all services in the output, instead of only the non-active ones."
385                 }
386                 "-r" = {
387                         set_if = "$snmp_service_noregexp$"
388                         description = "Do not use regexp to match NAME in service description."
389                 }
390         }
391
392         vars.snmp_service_name = ".*"
393 }