]> granicus.if.org Git - icinga2/blob - itl/command-plugins-manubulon.conf
Remove duplicate severity type in the documentation
[icinga2] / itl / command-plugins-manubulon.conf
1 /******************************************************************************
2  * Icinga 2                                                                   *
3  * Copyright (C) 2012-2015 Icinga Development Team (http://www.icinga.org)    *
4  *                                                                            *
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.                     *
9  *                                                                            *
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.                               *
14  *                                                                            *
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  ******************************************************************************/
19
20 /**
21  * main snmp-manubulon template
22  */
23
24 template CheckCommand "snmp-manubulon-command" {
25         import "plugin-check-command"
26         import "ipv4-or-ipv6"
27
28         arguments = {
29                 "-H" = "$snmp_address$"
30                 "-C" = {
31                         set_if = "$snmp_nocrypt$"
32                         value = "$snmp_community$"
33                 }
34                 "-p" = "$snmp_port$"
35                 "-2" = {
36                         set_if = "$snmp_v2$"
37                 }
38                 "-l" = {
39                         set_if = "$snmp_v3$"
40                         value = "$snmp_login$"
41                 }
42                 "-x" = {
43                         set_if = "$snmp_v3$"
44                         value = "$snmp_password$"
45                 }
46                 "-L" = {
47                         set_if = "$snmp_v3_use_authprotocol$"
48                         value = "$snmp_authprotocol$"
49                 }
50                 "-X" = {
51                         set_if = "$snmp_v3_use_privpass$"
52                         value = "$snmp_privpass$"
53                 }
54
55                 "-w" = "$snmp_warn$"
56                 "-c" = "$snmp_crit$"
57                 "-t" = "$snmp_timeout$"
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 load
75  *   Url reference: http://nagios.manubulon.com/snmp_load.html
76  */
77
78 object CheckCommand "snmp-load" {
79         import "snmp-manubulon-command"
80
81         command = [ ManubulonPluginDir + "/check_snmp_load.pl" ]
82
83         arguments += {
84                 "-T" = "$snmp_load_type$"
85                 "-f" = {
86                         set_if = "$snmp_perf$"
87                 }
88         }
89
90         vars.snmp_load_type = "stand"
91         vars.snmp_warn = 85
92         vars.snmp_crit = 95
93         vars.snmp_perf = true
94 }
95
96
97 /** 
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
102  */
103
104 object CheckCommand "snmp-memory" {
105         import "snmp-manubulon-command"
106
107         command = [ ManubulonPluginDir + "/check_snmp_mem.pl" ]
108
109         arguments += {
110                 "-f" = {
111                         set_if = "$snmp_perf$"
112                 }
113                 "-I" = {
114                         set_if = "$snmp_is_cisco$"
115                         description = "check cisco memory (sum of all memory pools)"
116                 }
117         }
118
119         vars.snmp_warn = "94,50"
120         vars.snmp_crit = "98,80"
121         vars.snmp_perf = true
122         vars.snmp_is_cisco = false
123 }
124
125
126 /**
127  * snmp storage - Disk/Memory
128  *   Url reference: http://nagios.manubulon.com/snmp_storage.html
129  */
130 object CheckCommand "snmp-storage" {
131         import "snmp-manubulon-command"
132
133         command = [ ManubulonPluginDir + "/check_snmp_storage.pl" ]
134
135         arguments += {
136                 "-m" = "$snmp_storage_name$"
137                 "-f" = {
138                         set_if = "$snmp_perf$"
139                 }
140         }
141
142         vars.snmp_storage_name = "^/$$"
143         vars.snmp_warn = 80
144         vars.snmp_crit = 90
145         vars.snmp_perf = true
146 }
147
148
149 /** 
150  * snmp network interfaces
151  *   Url reference: http://nagios.manubulon.com/snmp_int.html
152  */
153
154 object CheckCommand "snmp-interface" {
155         import "snmp-manubulon-command"
156
157         command = [ ManubulonPluginDir + "/check_snmp_int.pl" ]
158
159         arguments += {
160                 "-n" = "$snmp_interface$"
161                 "-k" = {
162                         set_if = "$snmp_interface_perf$"
163                 }
164                 "--label" = "$snmp_interface_label$"
165                 "-Y" = {
166                         set_if = "$snmp_interface_bits_bytes$"
167                 }
168                 "-y" = {
169                         set_if = "$snmp_interface_percent$"
170                 }
171                 "-B" = {
172                         set_if = "$snmp_interface_kbits$"
173                 }
174                 "-M" = {
175                         set_if = "$snmp_interface_megabytes$"
176                 }
177                 "--64bits" = {
178                         set_if = "$snmp_interface_64bit$"
179                 }
180                 "-e" = {
181                         set_if = "$snmp_interface_errors$"
182                 }
183                 "-r" = {
184                         set_if = "$snmp_interface_noregexp$"
185                 }
186                 "-d" = "$snmp_interface_delta$"
187                 "-u" = {
188                         set_if = "$snmp_interface_warncrit_percent$"
189                 }
190                 "-f" = {
191                         set_if = "$snmp_perf$"
192                 }
193         }
194
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
209 }
210
211
212 /** 
213  * snmp process
214  *   Url reference: http://nagios.manubulon.com/snmp_process.html
215  */
216
217 object CheckCommand "snmp-process" {
218         import "snmp-manubulon-command"
219
220         command = [ ManubulonPluginDir + "/check_snmp_process.pl" ]
221
222         arguments += {
223                 "-n" = {
224                         description = "Regex service name eg. ^apache2$"
225                         value = "$snmp_process_name$"
226                 }
227                 "-F" = {
228                         set_if = "$snmp_perf$"
229                 }
230         }
231
232         vars.snmp_process_name = ".*"
233         vars.snmp_warn = 0
234         vars.snmp_crit = 0
235         vars.snmp_perf = true
236 }
237