-
Notifications
You must be signed in to change notification settings - Fork 5
/
3par.cfg
133 lines (123 loc) · 3 KB
/
3par.cfg
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
###########################################################################
#
# Sample configuration for monitoring 3par
#
# check by SSH
# you need to import ssh key of user `nagios` (or whatever user you run Nagios on) to 3PAR
#
#
define command {
command_name check_3par
command_line $USER1$check_3par -H $HOSTADDRESS$ -w 80 -c 90 -u admin $ARG1$ $ARG2$ $ARG3$
}
### # check by 3PAR CLI tools
### define command {
### command_name check_3par
### command_line $USER1$check_3par -H $HOSTADDRESS$ -w 80 -c 90 -i /usr/local/inform/bin/cli -p/var/lib/nagios3/3par.pwf $ARG1$ $ARG2$ $ARG3$ $ARG4$
### }
# Template
define host {
name 3par
use unix
register 0
icon_image hp.png
statusmap_image hp.gd2
}
define service {
name 3par-service
use service
contact_groups nagios
}
######################################################
define host {
host_name 3par1.example.net
use 3par
parents switch.example.net
}
define host {
host_name 3par1.example.net
use 3par
parents switch.example.net
}
define host {
host_name 3par-qw.example.net
use linux
parents switch.example.net
}
######################################################
define hostgroup {
hostgroup_name 3par
members 3par1.example.net, 3par1.example.net
}
define service {
hostgroup_name 3par
service_description physical disks status
check_command check_3par!check_pd!!
use 3par-service
}
define service {
hostgroup_name 3par
service_description controller status
check_command check_3par!check_node!!
use 3par-service
}
define service {
hostgroup_name 3par
service_description logical disks status
check_command check_3par!check_ld!!
use 3par-service
}
define service {
hostgroup_name 3par
service_description virtual volumes status
check_command check_3par!check_vv!!
use 3par-service
}
define service {
hostgroup_name 3par
service_description FC port status
check_command check_3par!check_port_fc!!
use 3par-service
}
define service {
hostgroup_name 3par
service_description SSD used capacity
check_command check_3par!check_cap_ssd!!
use 3par-service
}
define service {
hostgroup_name 3par
service_description FC used capacity
check_command check_3par!check_cap_fc!!
use 3par-service
}
define service {
hostgroup_name 3par
service_description NL used capacity
check_command check_3par!check_cap_nl!!
use 3par-service
}
define service {
hostgroup_name 3par
service_description node power supply
check_command check_3par!check_ps_node!!
use 3par-service
}
define service {
hostgroup_name 3par
service_description cage power supply
check_command check_3par!check_ps_cage!!
use 3par-service
}
define service {
hostgroup_name 3par
service_description volume status
check_command check_3par!check_volume!VOLUME_NAME!
use 3par-service
}
define service {
hostgroup_name 3par
service_description quorum witnes
check_command check_3par!check_qw!QUORUM_WITNESS!
use 3par-service
}