1 /* main snmp-manubulon template */
2 template CheckCommand "snmp-manubulon-command" {
3 import "plugin-check-command",
6 "-H" = "$snmp_address$"
8 set_if = "$snmp_nocrypt$"
9 value = "$snmp_community$"
17 value = "$snmp_login$"
21 value = "$snmp_password$"
24 set_if = "$snmp_v3_use_authprotocol$"
25 value = "$snmp_authprotocol$"
28 set_if = "$snmp_v3_use_privpass$"
29 value = "$snmp_privpass$"
36 vars.snmp_address = "$address$"
37 vars.snmp_nocrypt = true
38 vars.snmp_community = "public"
41 vars.snmp_login = "snmpuser"
42 vars.snmp_v3_use_privpass = false
43 vars.snmp_v3_use_authprotocol = false
44 vars.snmp_authprotocol = "md5,des"
49 * Url reference: http://nagios.manubulon.com/snmp_load.html
51 object CheckCommand "snmp-load" {
52 import "snmp-manubulon-command",
54 command = [ ManubulonPluginDir + "/check_snmp_load.pl" ]
57 "-T" = "$snmp_load_type$"
59 set_if = "$snmp_perf$"
63 vars.snmp_load_type = "stand"
70 /** Memory and swap usage on Linux given by Net-snmp
71 * Memory usage on cisco routers or Pix
72 * For other systems use check_snmp_storage.pl
73 * Url reference: http://nagios.manubulon.com/snmp_mem.html
76 object CheckCommand "snmp-memory" {
77 import "snmp-manubulon-command",
79 command = [ ManubulonPluginDir + "/check_snmp_mem.pl" ]
83 set_if = "$snmp_perf$"
87 vars.snmp_warn = "94,50"
88 vars.snmp_crit = "98,80"
93 /** snmp storage - Disk/Memory
94 * Url reference: http://nagios.manubulon.com/snmp_storage.html
96 object CheckCommand "snmp-storage" {
97 import "snmp-manubulon-command",
99 command = [ ManubulonPluginDir + "/check_snmp_storage.pl" ]
102 "-m" = "$snmp_storage_name$"
104 set_if = "$snmp_perf$"
108 vars.snmp_storage_name = "^/$$"
111 vars.snmp_perf = true
115 /** snmp network interfaces
116 * Url reference: http://nagios.manubulon.com/snmp_int.html
118 object CheckCommand "snmp-interface" {
119 import "snmp-manubulon-command",
121 command = [ ManubulonPluginDir + "/check_snmp_int.pl" ]
124 "-n" = "$snmp_interface$"
126 set_if = "$snmp_interface_perf$"
129 set_if = "$snmp_interface_bits$"
132 set_if = "$snmp_interface_64bit$"
135 set_if = "$snmp_perf$"
139 vars.snmp_interface = "eth0"
140 vars.snmp_interface_perf = true
141 vars.snmp_interface_bits = true
142 vars.snmp_interface_64bit = false
143 vars.snmp_warn = "300,400"
144 vars.snmp_crit = "0,600"
145 vars.snmp_perf = true
150 * Url reference: http://nagios.manubulon.com/snmp_process.html
152 object CheckCommand "snmp-process" {
153 import "snmp-manubulon-command",
155 command = [ ManubulonPluginDir + "/check_snmp_process.pl" ]
159 description = "Regex service name eg. ^apache2$"
160 value = "$snmp_process_name$"
163 set_if = "$snmp_perf$"
167 vars.snmp_process_name = ".*"
170 vars.snmp_perf = true