1 /******************************************************************************
3 * Copyright (C) 2012-2014 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"
28 "-H" = "$snmp_address$"
30 set_if = "$snmp_nocrypt$"
31 value = "$snmp_community$"
39 value = "$snmp_login$"
43 value = "$snmp_password$"
46 set_if = "$snmp_v3_use_authprotocol$"
47 value = "$snmp_authprotocol$"
50 set_if = "$snmp_v3_use_privpass$"
51 value = "$snmp_privpass$"
58 vars.snmp_address = "$address$"
59 vars.snmp_nocrypt = true
60 vars.snmp_community = "public"
63 vars.snmp_login = "snmpuser"
64 vars.snmp_v3_use_privpass = false
65 vars.snmp_v3_use_authprotocol = false
66 vars.snmp_authprotocol = "md5,des"
72 * Url reference: http://nagios.manubulon.com/snmp_load.html
75 object CheckCommand "snmp-load" {
76 import "snmp-manubulon-command"
78 command = [ ManubulonPluginDir + "/check_snmp_load.pl" ]
81 "-T" = "$snmp_load_type$"
83 set_if = "$snmp_perf$"
87 vars.snmp_load_type = "stand"
95 * Memory and swap usage on Linux given by Net-snmp
96 * Memory usage on cisco routers or Pix
97 * For other systems use check_snmp_storage.pl
98 * Url reference: http://nagios.manubulon.com/snmp_mem.html
101 object CheckCommand "snmp-memory" {
102 import "snmp-manubulon-command"
104 command = [ ManubulonPluginDir + "/check_snmp_mem.pl" ]
108 set_if = "$snmp_perf$"
112 vars.snmp_warn = "94,50"
113 vars.snmp_crit = "98,80"
114 vars.snmp_perf = true
119 * snmp storage - Disk/Memory
120 * Url reference: http://nagios.manubulon.com/snmp_storage.html
122 object CheckCommand "snmp-storage" {
123 import "snmp-manubulon-command"
125 command = [ ManubulonPluginDir + "/check_snmp_storage.pl" ]
128 "-m" = "$snmp_storage_name$"
130 set_if = "$snmp_perf$"
134 vars.snmp_storage_name = "^/$$"
137 vars.snmp_perf = true
142 * snmp network interfaces
143 * Url reference: http://nagios.manubulon.com/snmp_int.html
146 object CheckCommand "snmp-interface" {
147 import "snmp-manubulon-command"
149 command = [ ManubulonPluginDir + "/check_snmp_int.pl" ]
152 "-n" = "$snmp_interface$"
154 set_if = "$snmp_interface_perf$"
157 set_if = "$snmp_interface_bits$"
160 set_if = "$snmp_interface_64bit$"
163 set_if = "$snmp_perf$"
167 vars.snmp_interface = "eth0"
168 vars.snmp_interface_perf = true
169 vars.snmp_interface_bits = true
170 vars.snmp_interface_64bit = false
171 vars.snmp_warn = "300,400"
172 vars.snmp_crit = "0,600"
173 vars.snmp_perf = true
179 * Url reference: http://nagios.manubulon.com/snmp_process.html
182 object CheckCommand "snmp-process" {
183 import "snmp-manubulon-command"
185 command = [ ManubulonPluginDir + "/check_snmp_process.pl" ]
189 description = "Regex service name eg. ^apache2$"
190 value = "$snmp_process_name$"
193 set_if = "$snmp_perf$"
197 vars.snmp_process_name = ".*"
200 vars.snmp_perf = true