blob: 192dca720cb687a9a2a10110c3dbef8e256aa939 (
plain)
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
|
define hostgroup {
hostgroup_name ipmi-nodes
alias IPMI Nodes
register 0
}
define hostgroup {
hostgroup_name ipmi-tested
alias IPMI Nodes
register 0
}
define host {
name ipmi-server
use unix-server
hostgroups +ipmi-nodes
_IPMI_IP _none_
_IPMI_USER nagios
_IPMI_PASS _iosnag_
register 0
}
define host {
name ipmi-ondemand-server
use ipmi-server
# Switch off later, as I prefer to see which nodes are off
check_command check_ip!$_HOSTIPMI_IP$
}
define service {
name ipmi-service
use remote-service
}
define service {
use ping-service
hostgroup_name ipmi-nodes
service_description IPMI
check_command check_ip!$_HOSTIPMI_IP$
}
define service {
use ipmi-service
hostgroup_name ipmi-tested
service_description IPMI/TEMPERATURES
check_command check_ipmi!temperature!$_HOSTIPMI_TEMP_EXCLUDES$
}
define service {
use ipmi-service
hostgroup_name ipmi-tested
service_description IPMI/VOLTAGES
check_command check_ipmi!voltage!$_HOSTIPMI_VOLTAGE_EXCLUDES$
}
define service {
use ipmi-service
hostgroup_name ipmi-tested
service_description IPMI/FANS
check_command check_ipmi!fan!$_HOSTIPMI_FAN_EXCLUDES$
}
define command {
command_name check_ipmi
command_line $USER1$/check_ipmi_sensor1 -H $_HOSTIPMI_IP$ -U $_HOSTIPMI_USER$ -P $_HOSTIPMI_PASS$ -T $ARG1$ $ARG2$
}
|