This file is indexed.

/usr/share/icinga2/include/command-plugins-manubulon.conf is in icinga2-common 2.6.0-2+deb9u1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
/******************************************************************************
 * Icinga 2                                                                   *
 * Copyright (C) 2012-2016 Icinga Development Team (https://www.icinga.org/)  *
 *                                                                            *
 * This program is free software; you can redistribute it and/or              *
 * modify it under the terms of the GNU General Public License                *
 * as published by the Free Software Foundation; either version 2             *
 * of the License, or (at your option) any later version.                     *
 *                                                                            *
 * This program is distributed in the hope that it will be useful,            *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
 * GNU General Public License for more details.                               *
 *                                                                            *
 * You should have received a copy of the GNU General Public License          *
 * along with this program; if not, write to the Free Software Foundation     *
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.             *
 ******************************************************************************/

/**
 * main snmp-manubulon template
 */

template CheckCommand "snmp-manubulon-command" {
	import "ipv4-or-ipv6"

	arguments = {
		"-H" = "$snmp_address$"
		"-C" = {
			set_if = "$snmp_nocrypt$"
			value = "$snmp_community$"
		}
		"-p" = "$snmp_port$"
		"-2" = {
			set_if = "$snmp_v2$"
		}
		"-l" = {
			set_if = "$snmp_v3$"
			value = "$snmp_login$"
		}
		"-x" = {
			set_if = "$snmp_v3$"
			value = "$snmp_password$"
		}
		"-L" = {
			set_if = "$snmp_v3_use_authprotocol$"
			value = "$snmp_authprotocol$"
		}
		"-X" = {
			set_if = "$snmp_v3_use_privpass$"
			value = "$snmp_privpass$"
		}

		"-w" = "$snmp_warn$"
		"-c" = "$snmp_crit$"
		"-t" = "$snmp_timeout$"
	}

	vars.snmp_address = "$check_address$"
	vars.snmp_nocrypt = true
	vars.snmp_community = "public"
	vars.snmp_v2 = false
	vars.snmp_v3 = false
	vars.snmp_login = "snmpuser"
	vars.snmp_v3_use_privpass = false
	vars.snmp_v3_use_authprotocol = false
	vars.snmp_authprotocol = "md5,des"
	vars.snmp_timeout = "5"
}


/**
 * snmp load
 *   Url reference: http://nagios.manubulon.com/snmp_load.html
 */

object CheckCommand "snmp-load" {
	import "snmp-manubulon-command"

	command = [ ManubulonPluginDir + "/check_snmp_load.pl" ]

	arguments += {
		"-T" = "$snmp_load_type$"
		"-f" = {
			set_if = "$snmp_perf$"
		}
	}

	vars.snmp_load_type = "stand"
	vars.snmp_warn = 85
	vars.snmp_crit = 95
	vars.snmp_perf = true
}


/** 
 * Memory and swap usage on Linux given by Net-snmp
 *   Memory usage on cisco routers or Pix
 *   For other systems use check_snmp_storage.pl
 *   Url reference: http://nagios.manubulon.com/snmp_mem.html
 */

object CheckCommand "snmp-memory" {
	import "snmp-manubulon-command"

	command = [ ManubulonPluginDir + "/check_snmp_mem.pl" ]

	arguments += {
		"-f" = {
			set_if = "$snmp_perf$"
		}
		"-I" = {
			set_if = "$snmp_is_cisco$"
			description = "check cisco memory (sum of all memory pools)"
		}
		"-E" = {
			set_if = "$snmp_is_hp$"
			description = "check HP / Procurve memory"
		}
	}

	vars.snmp_warn = "94,50"
	vars.snmp_crit = "98,80"
	vars.snmp_perf = true
	vars.snmp_is_cisco = false
}


/**
 * snmp storage - Disk/Memory
 *   Url reference: http://nagios.manubulon.com/snmp_storage.html
 */
object CheckCommand "snmp-storage" {
	import "snmp-manubulon-command"

	command = [ ManubulonPluginDir + "/check_snmp_storage.pl" ]

	arguments += {
		"-m" = "$snmp_storage_name$"
		"-f" = {
			set_if = "$snmp_perf$"
		}
	}

	vars.snmp_storage_name = "^/$$"
	vars.snmp_warn = 80
	vars.snmp_crit = 90
	vars.snmp_perf = true
}


/** 
 * snmp network interfaces
 *   Url reference: http://nagios.manubulon.com/snmp_int.html
 */

object CheckCommand "snmp-interface" {
	import "snmp-manubulon-command"

	command = [ ManubulonPluginDir + "/check_snmp_int.pl" ]

	arguments += {
		"-n" = "$snmp_interface$"
		"-k" = {
			set_if = "$snmp_interface_perf$"
		}
		"--label" = "$snmp_interface_label$"
		"-Y" = {
			set_if = "$snmp_interface_bits_bytes$"
		}
		"-y" = {
			set_if = "$snmp_interface_percent$"
		}
		"-B" = {
			set_if = "$snmp_interface_kbits$"
		}
		"-M" = {
			set_if = "$snmp_interface_megabytes$"
		}
		"--64bits" = {
			set_if = "$snmp_interface_64bit$"
		}
		"-e" = {
			set_if = "$snmp_interface_errors$"
		}
		"-r" = {
			set_if = "$snmp_interface_noregexp$"
		}
		"-d" = "$snmp_interface_delta$"
		"-u" = {
			set_if = "$snmp_interface_warncrit_percent$"
		}
		"-N" = {
			set_if = "$snmp_interface_ifname$"
		}
		"-f" = {
			set_if = "$snmp_perf$"
		}
	}

	vars.snmp_interface = "eth0"
	vars.snmp_interface_perf = true
	vars.snmp_interface_bits_bytes = true
	vars.snmp_interface_percent = false
	vars.snmp_interface_kbits = true
	vars.snmp_interface_megabytes = true
	vars.snmp_interface_64bit = false
	vars.snmp_interface_errors = true
	vars.snmp_interface_noregexp = false
	vars.snmp_interface_delta = 300
	vars.snmp_interface_warncrit_percent = false
	vars.snmp_interface_ifname = false
	vars.snmp_warn = "300,400"
	vars.snmp_crit = "0,600"
	vars.snmp_perf = true
}


/** 
 * snmp process
 *   Url reference: http://nagios.manubulon.com/snmp_process.html
 */

object CheckCommand "snmp-process" {
	import "snmp-manubulon-command"

	command = [ ManubulonPluginDir + "/check_snmp_process.pl" ]

	arguments += {
		"-n" = {
			description = "Regex service name eg. ^apache2$"
			value = "$snmp_process_name$"
		}
		"-F" = {
			set_if = "$snmp_perf$"
		}
		"-A" = {
			set_if = "$snmp_process_use_params$"
		}
	}

	vars.snmp_process_name = ".*"
	vars.snmp_warn = 0
	vars.snmp_crit = 0
	vars.snmp_perf = true
	vars.snmp_process_use_params = false
}