1 /******************************************************************************
3 * Copyright (C) 2012-2015 Icinga Development Team (http://www.icinga.org) *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License *
7 * as published by the Free Software Foundation; either version 2 *
8 * of the License, or (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the Free Software Foundation *
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ******************************************************************************/
21 * main snmp-manubulon template
24 template CheckCommand "snmp-manubulon-command" {
25 import "plugin-check-command"
29 "-H" = "$snmp_address$"
31 set_if = "$snmp_nocrypt$"
32 value = "$snmp_community$"
40 value = "$snmp_login$"
44 value = "$snmp_password$"
47 set_if = "$snmp_v3_use_authprotocol$"
48 value = "$snmp_authprotocol$"
51 set_if = "$snmp_v3_use_privpass$"
52 value = "$snmp_privpass$"
57 "-t" = "$snmp_timeout$"
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_load.html
78 object CheckCommand "snmp-load" {
79 import "snmp-manubulon-command"
81 command = [ ManubulonPluginDir + "/check_snmp_load.pl" ]
84 "-T" = "$snmp_load_type$"
86 set_if = "$snmp_perf$"
90 vars.snmp_load_type = "stand"
98 * Memory and swap usage on Linux given by Net-snmp
99 * Memory usage on cisco routers or Pix
100 * For other systems use check_snmp_storage.pl
101 * Url reference: http://nagios.manubulon.com/snmp_mem.html
104 object CheckCommand "snmp-memory" {
105 import "snmp-manubulon-command"
107 command = [ ManubulonPluginDir + "/check_snmp_mem.pl" ]
111 set_if = "$snmp_perf$"
114 set_if = "$snmp_is_cisco$"
115 description = "check cisco memory (sum of all memory pools)"
119 vars.snmp_warn = "94,50"
120 vars.snmp_crit = "98,80"
121 vars.snmp_perf = true
122 vars.snmp_is_cisco = false
127 * snmp storage - Disk/Memory
128 * Url reference: http://nagios.manubulon.com/snmp_storage.html
130 object CheckCommand "snmp-storage" {
131 import "snmp-manubulon-command"
133 command = [ ManubulonPluginDir + "/check_snmp_storage.pl" ]
136 "-m" = "$snmp_storage_name$"
138 set_if = "$snmp_perf$"
142 vars.snmp_storage_name = "^/$$"
145 vars.snmp_perf = true
150 * snmp network interfaces
151 * Url reference: http://nagios.manubulon.com/snmp_int.html
154 object CheckCommand "snmp-interface" {
155 import "snmp-manubulon-command"
157 command = [ ManubulonPluginDir + "/check_snmp_int.pl" ]
160 "-n" = "$snmp_interface$"
162 set_if = "$snmp_interface_perf$"
164 "--label" = "$snmp_interface_label$"
166 set_if = "$snmp_interface_bits_bytes$"
169 set_if = "$snmp_interface_percent$"
172 set_if = "$snmp_interface_kbits$"
175 set_if = "$snmp_interface_megabytes$"
178 set_if = "$snmp_interface_64bit$"
181 set_if = "$snmp_interface_errors$"
184 set_if = "$snmp_interface_noregexp$"
186 "-d" = "$snmp_interface_delta$"
188 set_if = "$snmp_interface_warncrit_percent$"
191 set_if = "$snmp_perf$"
195 vars.snmp_interface = "eth0"
196 vars.snmp_interface_perf = true
197 vars.snmp_interface_bits_bytes = true
198 vars.snmp_interface_percent = false
199 vars.snmp_interface_kbits = true
200 vars.snmp_interface_megabytes = true
201 vars.snmp_interface_64bit = false
202 vars.snmp_interface_errors = true
203 vars.snmp_interface_noregexp = false
204 vars.snmp_interface_delta = 300
205 vars.snmp_interface_warncrit_percent = false
206 vars.snmp_warn = "300,400"
207 vars.snmp_crit = "0,600"
208 vars.snmp_perf = true
214 * Url reference: http://nagios.manubulon.com/snmp_process.html
217 object CheckCommand "snmp-process" {
218 import "snmp-manubulon-command"
220 command = [ ManubulonPluginDir + "/check_snmp_process.pl" ]
224 description = "Regex service name eg. ^apache2$"
225 value = "$snmp_process_name$"
228 set_if = "$snmp_perf$"
232 vars.snmp_process_name = ".*"
235 vars.snmp_perf = true