This file is indexed.

/usr/share/icinga2/include/plugins-contrib.d/hardware.conf is in icinga2-common 2.8.1-0ubuntu2.

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
/******************************************************************************
 * Icinga 2                                                                   *
 * Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/)  *
 *                                                                            *
 * 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.             *
 ******************************************************************************/

object CheckCommand "hpasm" {
	import "ipv4-or-ipv6"

	command = [ PluginContribDir + "/check_hpasm" ]

	arguments = {
		"--hostname" = {
			value = "$hpasm_hostname$"
			set_if = "$hpasm_remote$"
			description = "Hostname or IP-address of the server (SNMP mode only)"
		}
		"--community" = {
			value = "$hpasm_community$"
			description = "SNMP community of the server (SNMP v1/2 only)"
		}
		"--protocol" = {
			value = "$hpasm_protocol$"
			description = "The SNMP protocol to use (default: 2c, other possibilities: 1,3)"
		}
		"--port" = {
			value = "$hpasm_port$"
			description = "The SNMP port to use (default: 161)"
		}
		"--blacklist" = {
			value = "$hpasm_blacklist$"
			description = "Blacklist some (missing/failed) components"
		}
		"--ignore-dimms" = {
			set_if = "$hpasm_ignore-dimms$"
			description = "Ignore \"N/A\"-DIMM status on misc. servers (e.g. older DL320)"
		}
		"--ignore-fan-redundancy" = {
			set_if = "$hpasm_ignore-fan-redundancy$"
			description = "Ignore missing redundancy partners"
		}
		"--customthresholds" = {
			value = "$hpasm_customthresholds$"
			description = "Use custom thresholds for certain temperatures"
		}
		"--eventrange" = {
			value = "$hpasm_eventrange$"
			description = "Period of time before critical IML events respecively become warnings or vanish. A range is descibed as a number and a unit (s, m, h, d), e.g. --eventrange 1h/20m."
		}
		"--perfdata" = {
			value = "$hpasm_perfdata$"
			description = "Output performance data. If your performance data string becomes too long and is truncated by Nagios, then you can use --perfdata=short instead. This will output temperature tags without location information"
		}
		"--username" = {
			value = "$hpasm_username$"
			description = "The securityName for the USM security model (SNMPv3 only)"
		}
		"--authpassword" = {
			value = "$hpasm_authpassword$"
			description = "The authentication password for SNMPv3"
		}
		"--authprotocol" = {
			value = "$hpasm_authprotocol$"
			description = "The authentication protocol for SNMPv3 (md5|sha)"
		}
		"--privpassword" = {
			value = "$hpasm_privpassword$"
			description = "The password for authPriv security level"
		}
		"--privprotocol" = {
			value = "$hpasm_privprotocol$"
			description = "The private protocol for SNMPv3 (des|aes|aes128|3des|3desde)"
		}
		"--servertype" = {
			value = "$hpasm_servertype$"
			description = "The type of the server: proliant (default) or bladesystem"
		}
		"--eval-nics" = {
			set_if = "$hpasm_eval-nics$"
			description = "Check network interfaces (and groups). Try it and report me whyt you think about it. I need to build up some know how on this subject. If get an error and you think, it is not justified for your configuration, please tell me about it. (alwasy send the output of \"snmpwalk -On .... 1.3.6.1.4.1.232\" and a description how you setup your nics and why it is correct opposed to the plugins error message"
		}
	}
	vars.hpasm_remote = true
	vars.hpasm_hostname = "$check_address$"
}