1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
4 * main snmp-manubulon template
7 template CheckCommand "snmp-manubulon-command" {
12 value = "$snmp_address$"
13 description = "Name or IP address of host to check"
16 set_if = "$snmp_nocrypt$"
17 value = "$snmp_community$"
18 description = "Community name for the host's SNMP agent (implies v1 protocol)"
22 description = "SNMP port (Default 161)"
26 description = "Use snmp v2c"
30 value = "$snmp_login$"
31 description = "Login and auth password for snmpv3 authentication"
35 value = "$snmp_password$"
36 description = "Priv password"
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)>"
44 set_if = "$snmp_v3_use_privpass$"
45 value = "$snmp_privpass$"
46 description = "Priv password for snmpv3 (AuthPriv protocol)"
55 value = "$snmp_timeout$"
56 description = "Timeout for SNMP in seconds (Default: 5)"
60 vars.snmp_address = "$check_address$"
61 vars.snmp_nocrypt = true
62 vars.snmp_community = "public"
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"
75 * Url reference: http://nagios.manubulon.com/snmp_env.html
78 object CheckCommand "snmp-env" {
79 import "snmp-manubulon-command"
81 command = [ ManubulonPluginDir + "/check_snmp_env.pl" ]
85 value = "$snmp_env_type$"
86 description = "Environment Type [cisco|nokia|bc|iron|foundry|linux]"
89 value = "$snmp_env_fan$"
90 description = "Minimum fan rpm value (only needed for 'iron' & 'linux')"
93 value = "$snmp_env_celsius$"
94 description = "Maximum temp in degrees celsius (only needed for 'iron' & 'linux')"
97 set_if = "$snmp_perf$"
98 description = "Perfparse compatible output"
102 vars.snmp_env_type = "cisco"
103 vars.snmp_perf = true
109 * Url reference: http://nagios.manubulon.com/snmp_load.html
112 object CheckCommand "snmp-load" {
113 import "snmp-manubulon-command"
115 command = [ ManubulonPluginDir + "/check_snmp_load.pl" ]
119 value = "$snmp_load_type$"
120 description = "CPU check"
123 set_if = "$snmp_perf$"
124 description = "Perfparse compatible output"
128 vars.snmp_load_type = "stand"
131 vars.snmp_perf = true
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
142 object CheckCommand "snmp-memory" {
143 import "snmp-manubulon-command"
145 command = [ ManubulonPluginDir + "/check_snmp_mem.pl" ]
149 set_if = "$snmp_perf$"
150 description = "Performance data output"
153 set_if = "$snmp_is_cisco$"
154 description = "check cisco memory (sum of all memory pools)"
157 set_if = "$snmp_is_hp$"
158 description = "check HP / Procurve memory"
161 set_if = "$snmp_memcached$"
162 description = "Include cached memory in used memory"
165 set_if = "$snmp_membuffer$"
166 description = "Exclude buffered memory in used memory"
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
180 * snmp storage - Disk/Memory
181 * Url reference: http://nagios.manubulon.com/snmp_storage.html
183 object CheckCommand "snmp-storage" {
184 import "snmp-manubulon-command"
186 command = [ ManubulonPluginDir + "/check_snmp_storage.pl" ]
190 value = "$snmp_storage_name$"
191 description = "Name in description OID (can be mounpoints '/home' or 'Swap Space'...)"
194 set_if = "$snmp_perf$"
195 description = "Perfparse compatible output"
198 set_if = "$snmp_exclude$"
199 description = "Select all storages except the one(s) selected by -m. No action on storage type selection."
202 value = "$snmp_storage_olength$"
203 description = "Max-size of the SNMP message, usefull in case of Too Long responses."
206 value = "$snmp_storage_type$"
207 description = "Storage type: Other, Ram, VirtualMemory, FixedDisk, RemovableDisk, FloppyDisk, CompactDisk, RamDisk, FlashMemory, or NetworkDisk"
211 vars.snmp_storage_name = "^/$$"
214 vars.snmp_perf = true
215 vars.snmp_exclude = false
220 * snmp network interfaces
221 * Url reference: http://nagios.manubulon.com/snmp_int.html
224 object CheckCommand "snmp-interface" {
225 import "snmp-manubulon-command"
227 command = [ ManubulonPluginDir + "/check_snmp_int.pl" ]
231 value = "$snmp_interface$"
232 description = "Name in description OID (eth0, ppp0 ...). This is treated as a regexp : -n eth will match eth0,eth1,..."
235 set_if = "$snmp_interface_perf$"
236 description = "Check the input/ouput bandwidth of the interface"
239 value = "$snmp_interface_label$"
240 description = "Add label before speed in output : in=, out=, errors-out=, etc..."
243 set_if = "$snmp_interface_bits_bytes$"
244 description = "Output performance data in bits/s or Bytes/s"
247 set_if = "$snmp_interface_percent$"
248 description = "Output performance data in % of max speed"
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"
255 set_if = "$snmp_interface_megabytes$"
256 description = "Make the warning and critical levels in Mbps"
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"
263 set_if = "$snmp_interface_errors$"
264 description = "Add error & discard to Perfparse output"
267 set_if = "$snmp_interface_inverse$"
268 description = "Make critical when up"
271 set_if = "$snmp_interface_noregexp$"
272 description = "Do not use regexp to match NAME in description OID"
275 value = "$snmp_interface_delta$"
276 description = "Make an average of <delta> seconds (default 300=5min)"
279 set_if = "$snmp_interface_warncrit_percent$"
280 description = "Make the warning and critical levels in % of reported interface speed"
283 set_if = "$snmp_interface_ifname$"
286 set_if = "$snmp_interface_ifalias$"
289 set_if = "$snmp_perf$"
290 description = "Perfparse compatible output (no output when interface is down)"
293 set_if = "$snmp_interface_weathermap$"
294 description = "Include 'weathermap' data for NagVis in performance data"
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
319 * Url reference: http://nagios.manubulon.com/snmp_process.html
322 object CheckCommand "snmp-process" {
323 import "snmp-manubulon-command"
325 command = [ ManubulonPluginDir + "/check_snmp_process.pl" ]
329 value = "$snmp_process_name$"
330 description = "Regex service name eg. ^apache2$"
333 set_if = "$snmp_perf$"
334 description = "Add performance output (outputs : memory_usage, num_process, cpu_usage)"
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)"
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"
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"
352 vars.snmp_process_name = ".*"
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"
365 * Url reference: http://nagios.manubulon.com/snmp_windows.html
368 object CheckCommand "snmp-service" {
369 import "snmp-manubulon-command"
371 command = [ ManubulonPluginDir + "/check_snmp_win.pl" ]
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$"
379 value = "$snmp_service_count$"
380 description = "Compare matching services with <n> instead of the number of names provided."
383 set_if = "$snmp_service_showall$"
384 description = "Show all services in the output, instead of only the non-active ones."
387 set_if = "$snmp_service_noregexp$"
388 description = "Do not use regexp to match NAME in service description."
392 vars.snmp_service_name = ".*"