OSDN Git Service

12acc1c2834baf098ea3365655d99ca8b0aad40b
[metasearch/grid-chef-repo.git] / cookbooks / nagios-grid / templates / default / etc / nagios3 / base / checkcommands-generic.cfg
1 # This file was generated by Chef.
2
3 define command {
4         command_name    check_all_disks_alt
5         # Note: `check_all_disks` workaround command
6         # see https://bugs.launchpad.net/ubuntu/+source/nagios-plugins/+bug/1516451
7         command_line    $USER1$/check_disk -w '$ARG1$' -c '$ARG2$' -e --exclude-type=tracefs --exclude-type=fuse.gvfsd-fuse
8 }
9
10 define command {
11         command_name    check_disk_smb_alt
12         command_line    $USER1$/check_disk_smb -H $HOSTADDRESS$ -s '$ARG1$'
13 }
14
15 define command {
16         command_name    check_file_age
17         command_line    $USER1$/check_file_age -f $ARG1$ -w $ARG2$ -c $ARG3$
18 }
19
20 define command {
21         command_name    check_ntp_time
22         command_line    $USER1$/check_ntp_time -H $HOSTADDRESS$
23 }
24
25 define command {
26         command_name    check_tcp_port_cert
27         command_line    $USER1$/check_tcp --ssl -H $HOSTADDRESS$ -p $ARG1$ -D $ARG2$
28 }
29
30 define command {
31         command_name    check_http_port
32         command_line    $USER1$/check_http -H $HOSTADDRESS$ -I $HOSTADDRESS$ -p $ARG1$
33 }
34
35 define command {
36         command_name    check_http_port_url
37         command_line    $USER1$/check_http -H $HOSTADDRESS$ -I $HOSTADDRESS$ -p $ARG1$ -u $ARG2$
38 }
39
40 define command {
41         command_name    check_https_port
42         command_line    $USER1$/check_http --ssl -H $HOSTADDRESS$ -I $HOSTADDRESS$ -p $ARG1$
43 }
44
45 define command {
46         command_name    check_https_port_url
47         command_line    $USER1$/check_http --ssl -H $HOSTADDRESS$ -I $HOSTADDRESS$ -p $ARG1$ -u $ARG2$
48 }
49
50 define command {
51         command_name    check_https_port_cert
52         command_line    $USER1$/check_http --ssl -H $HOSTADDRESS$ -I $HOSTADDRESS$ -p $ARG1$ -C $ARG2$
53 }
54
55 define command {
56         command_name    check_ldap3
57         command_line    $USER1$/check_ldap -H $HOSTADDRESS$ -b $ARG1$ -3
58 }
59
60 # this object already exists on the Debian wheezy.
61 #define command {
62 #       command_name    check_mysql_slave
63 #       command_line    $USER1$/check_mysql -H $HOSTADDRESS$ -S
64 #}
65
66 # 'check_jbossjmx' command definition 
67 define command {
68         command_name    check_jbossjmx 
69         command_line    $USER1$/check_jbossjmx $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ 
70 }
71
72 define command {
73         command_name    check_ups
74         command_line    $USER1$/check_ups -H $HOSTADDRESS$ -u $ARG1$ -T
75 }
76
77 # NRPE
78 define command {
79         command_name    check_remote_apt
80         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_apt
81 }
82
83 define command {
84         command_name    check_remote_apc_status
85         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_apc_status
86 }
87
88 define command {
89         command_name    check_remote_apc_load
90         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_apc_load
91 }
92
93 define command {
94         command_name    check_remote_apc_bcharge
95         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_apc_bcharge
96 }
97
98 define command {
99         command_name    check_remote_apc_time
100         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_apc_time
101 }
102
103 define command {
104         command_name    check_remote_dig
105         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_dig
106 }
107
108 define command {
109         command_name    check_remote_dig_in
110         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_dig_in
111 }
112
113 define command {
114         command_name    check_remote_dig_ex
115         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_dig_ex
116 }
117
118 define command {
119         command_name    check_remote_logs
120         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_logs
121 }
122
123 define command {
124         command_name    check_remote_command
125         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
126 }
127
128 define command {
129         command_name    check_remote_users
130         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_users
131 }
132
133 define command {
134         command_name    check_remote_load
135         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_load
136 }
137
138 define command {
139         command_name    check_remote_memory
140         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_memory
141 }
142
143 define command {
144         command_name    check_remote_mem
145         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_mem
146 }
147
148 <%
149 (0..3).each {|num|
150 -%>
151 define command {
152         command_name    check_remote_disk<%= num %>
153         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_disk<%= num %>
154 }
155
156 <%
157 }
158 -%>
159 <%
160 (0..3).each {|num|
161 -%>
162 define command {
163         command_name    check_remote_smart<%= num %>
164         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_smart<%= num %>
165 }
166
167 <%
168 }
169 -%>
170 define command {
171         command_name    check_remote_smart_devs
172         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_smart_devs
173 }
174
175 define command {
176         command_name    check_remote_zombie_procs
177         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_zombie_procs
178 }
179
180 define command {
181         command_name    check_remote_total_procs
182         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_total_procs
183 }
184
185 define command {
186         command_name    check_remote_mailq_exim
187         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_mailq_exim
188 }
189
190 define command {
191         command_name    check_remote_mailq_postfix
192         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_mailq_postfix
193 }
194
195 define command {
196         command_name    check_remote_mysql_heartbeat
197         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_mysql_heartbeat
198 }
199
200 define command {
201         command_name    check_remote_jboss_freemem
202         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_jboss_freemem
203 }
204
205 define command {
206         command_name    check_remote_jboss_jk_curthread
207         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_jboss_jk_curthread
208 }
209
210 define command {
211         command_name    check_remote_jboss_ds_conn1
212         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_jboss_ds_conn1
213 }
214
215 define command {
216         command_name    check_remote_jboss_ds_conn2
217         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_jboss_ds_conn2
218 }
219
220 define command {
221         command_name    check_remote_jboss_logs
222         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_jboss_logs
223 }
224
225 define command {
226         command_name    check_remote_xen_dom0 
227         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_xen_dom0
228 }
229
230 define command {
231         command_name    check_remote_xen_domU1 
232         command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_xen_domU1
233 }
234