]> git.uio.no Git - check_openmanage.git/blame - check_openmanage.conf.pod
support other temperature units
[check_openmanage.git] / check_openmanage.conf.pod
CommitLineData
e177e737 1# Man page created with:
2#
3# pod2man -s 5 -r "`./check_openmanage -V | head -n 1`" -c 'Nagios plugin' check_openmanage.conf.pod check_openmanage.conf.5
4#
5# $Id: check_openmanage.pod 20039 2011-04-26 09:56:56Z trondham $
6
7=head1 NAME
8
763e1084 9F<check_openmanage.conf> - Configuration file for check_openmanage
e177e737 10
11=head1 FILE FORMAT
12
13The file has an ini-style syntax and consists of sections and
14parameters. A section begins with the name of the section in square
15brackets and continues until the next section begins. An example of
16section with two keywords and parameters:
17
763e1084 18=over 8
19
20I<[section]>
21 I<key1> = I<boolean>
22 I<key2> = I<string>
23
24=back
e177e737 25
26The data types used are string (no quotes needed) and bool (with
27values of C<TRUE/FALSE>). For boolean values, C<1>, C<on> and C<true>
28are equivalent, likewise for C<0>, C<off> and C<false>. They are also
29case insensitive.
30
31The root section or global section has no section name in brackets,
32example:
33
763e1084 34 key1 = false
35 key2 = foo
36
37 [section]
38 key1 = true
39 key2 = bar
e177e737 40
41The values set in a bracket section will override those set in the
42root section, in case of conflicts.
43
44Lines starting with C<#> or C<;> are considered comments and ignored, as
45are blank lines.
46
47The configuration file must be a regular file. Owner and group does
48not matter, but the Nagios user must have read access.
49
50=head1 SECTIONS AND ORDERING
51
52The section name should correspond to the hostname, i.e. the value
53passed to the C<-H> or C<--hostname> parameter. The section name
54itself can be either an exact match to the hostname, or a glob
55pattern, as this example shows:
56
763e1084 57 key1 = true
58 key2 = foo
59
60 [192.168.1.2]
61 key1 = true
62
63 [192.168.*]
64 key1 = false
65 key2 = bar
e177e737 66
67The sections are read in order of significance. The root section is
68read first. Then any sections with glob patterns that match the
69hostname are read (alphabetically). Any section whose name is an exact
70match to the hostname is read last.
71
72For boolean values, any conflicts are resolved by letting the section
73with the most significance (closest match to the hostname) override
74any previous definitions. For string values, they are simply added
75together.
76
763e1084 77In the example above, for the host C<192.168.1.2> the value of I<key1>
78will be I<true> and I<key2> will be I<bar>. Any other host that
79matches C<192.168.*> will have I<key1 = false> and I<key2 = bar>. All
80other hosts will have I<key1 = true> and I<key2 = foo>.
81
82Normal shell globbing may be used for the section names. This is
83limited to C<*>, C<?> and C<[]>. Some examples:
84
85 [192.168.*]
86 # matches e.g. 192.168.10.20
87
88 [192.168.10[34].1]
89 # matches 192.168.103.1 and 192.168.104.1
90
91 [login?.example.com]
92 # mathces e.g. login1.example.com
93
94CAUTION! Be careful not to have more than one glob pattern section
95match any single host. This may lead to unpredictable results.
e177e737 96
ec685059 97=head1 COMMAND LINE OPTIONS
98
99Unless otherwise noted, options given in the configuration file will
100override any corresponding command line options.
101
102In general, avoid using the same options on command line and in the
103configuration file.
104
e177e737 105=head1 CONFIGURATION
106
115d35eb 107=head2 GENERAL
763e1084 108
aae8f5be 109=over 4
e177e737 110
aae8f5be 111=item Check control
e177e737 112
113Any keyword to the C<--check> parameter are accepted in the
763e1084 114configuration file, as C<check_I<KEYWORD>>. These options take boolean
e177e737 115values (C<true> or C<false>). The following keywords are accepted for
116check control, listed here with their default values:
117
763e1084 118 check_storage = true
119 check_memory = true
120 check_fans = true
121 check_power = true
122 check_temp = true
123 check_cpu = true
124 check_voltage = true
125 check_batteries = true
126 check_amperage = true
127 check_intrusion = true
128 check_sdcard = true
129 check_esmhealth = true
130 check_esmlog = false
131 check_alertlog = false
132 check_everything = false
133
134If used together with the C<--check> command line option, the command
135line option will override the configuration file, if there is a
e177e737 136conflict.
137
763e1084 138The option C<check_everything> is special and turns on all
139checks. Setting this option to "true" will effectively negate any
140other check options. This option corresponds to the C<-a> or C<--all>
141command line option.
142
143For more information about check control, see
144L<check_openmanage(8)/CHECK CONTROL>.
145
aae8f5be 146=item Blacklisting
e177e737 147
148For blacklisting the keyword C<blacklist> is used, and the value is a
149string that uses the same syntax as the C<-b> or C<--blacklist>
150parameter. Example:
151
152 blacklist = ctrl_fw=all/pdisk=0:0:1
153
763e1084 154If used together with the C<-b> or C<--blacklist> command line option,
ec685059 155the two blacklists from the config file and command line are merged
763e1084 156together.
157
158For more information about blacklisting, including syntax, see
159L<check_openmanage(8)/BLACKLISTING>.
160
161=item Timeout
162
163The plugin timeout can be configured with the C<timeout> keyword. The
164argument is number of seconds and should be a positive
165integer. Example:
166
167 timeout = 60
168
ec685059 169The corresponding command line option is C<-t> or C<--timeout>.
e177e737 170
c8323c71 171=item Performance data
172
173Performance data can be turned on in the configuration file with
174C<performance_data>. Accepted values are boolean (TRUE/FALSE) or
175either of the keywords "minimal" and "multiline". Example:
176
177 performance_data = true
178
179The corresponding command line option is C<-p> or <--perfdata>.
180
115d35eb 181=item Temperature unit
182
183The temperature unit used for reporting, performance data etc. can be
184set with the C<temperature_unit> option. Allowed values are C<F> for
185Fahrenheit, C<C> for Celsius, C<K> for Kelvin and C<R> for
186Rankine. Example:
187
188 temperature_unit = F
189
ec685059 190The corresponding command line option is C<--tempunit>. Note that the
191command line option C<-F> or C<--fahrenheit> will override both the
192command line option and the configuration file option.
115d35eb 193
194=item Temperature limits
195
196Custom temperature limits may be configured with the options
197C<temp_threshold_warning> and C<temp_threshold_critical>. These
198options corresponds to the command line options C<-w> or C<--warning>
199and C<-c> or C<--critical>, respectively. They take the same arguments
ec685059 200as the command line options. Examples:
115d35eb 201
202 temp_threshold_warning = 0=30/10
203 temp_threshold_critical = 0=35/8
204
e177e737 205=back
206
115d35eb 207=head2 SNMP OPTIONS
763e1084 208
ec685059 209Several SNMP related options may be set in the configuration file. The
210configuration file may contain the following SNMP options:
763e1084 211
212=over 4
213
214=item SNMP community string
215
216The SNMP community string can be set with C<snmp_community>. Example:
217
218 snmp_community = mycommunity
219
220Corresponding command line option: C<-C> or C<--community>
221
222=item SNMP protocol version
223
224The SNMP protocol version can be set with C<snmp_version>. Example:
225
226 snmp_version = 2
227
228Corresponding command line option: C<-P> or C<--protocol>
229
230=item SNMP port number
231
232The remote port number used with SNMP can be set with
233C<snmp_port>. Example:
234
235 snmp_port = 161
236
237Corresponding command line option: C<--port>
238
239=item Use IPv6 instead of IPv4
240
241The option C<snmp_use_ipv6> instructs the plugin to use IPv6 instead
242of IPv4. This option takes a boolean value. Example:
243
244 snmp_use_ipv6 = true
245
246Corresponding command line option: C<-6> or C<--ipv6>
247
248=item Use TCP instead of UDP
249
250The option C<snmp_use_ipv6> instructs the plugin to use IPv6 instead
251of IPv4. This option takes a boolean value. Example:
252
253 snmp_use_tcp = true
254
255Corresponding command line option: C<--tcp>
256
257=back
258
115d35eb 259=head2 OUTPUT CONTROL
763e1084 260
ec685059 261These options gives some control over the output given by the plugin.
763e1084 262
263=over 4
264
265=item Include servicetag in alerts
266
267The option C<output_servicetag> will make the plugin include the
268servers servicetag (serial number) in every alert. This option takes a
269boolean value. Example:
270
271 output_servicetag = true
272
273Corresponding command line option: C<-i> or C<--info>
274
275=item Include service state in alerts
276
277The option C<output_servicestate> will make the plugin include the
278service state in any alerts. This option takes a boolean
279value. Example:
280
281 output_servicestate = true
282
283Corresponding command line option: C<-s> or C<--state>
284
285=item Include abbreviated service state in alerts
286
287The option C<output_servicestate_abbr> will make the plugin include
288the abbreviated service state in any alerts. This option takes a
289boolean value. Example:
290
291 output_servicestate_abbr = true
292
293Corresponding command line option: C<-S> or C<--short-state>
294
295=item Show system info with alerts
296
297The option C<output_sysinfo> will make the plugin output some system
298information with alerts. This option takes a boolean value. Example:
299
300 output_sysinfo = true
301
302Corresponding command line option: C<-e> or C<--extinfo>
303
304=item Show blacklistings in OK output
305
306The option C<output_blacklist> will make the plugin show any
307blacklistings in the OK output. This option takes a boolean
308value. Example:
309
310 output_blacklist = true
311
312Corresponding command line option: C<-B> or C<--show-blacklist>
313
314=item Verbosity of OK output
315
316The option C<output_ok_verbosity> lets you adjust how much information
317is shown in the OK output. This option takes a positive integer as
318parameter. Example:
319
320 output_ok_verbosity = 3
321
322Corresponding command line option: C<-o> or C<--ok-info>
323
324=item HTML output
325
326The output C<output_html> makes the plugin produce HTML output. This
327option takes either a boolean value, or a country or area
328code. Example:
329
330 output_html = de
331
332Corresponding command line option: C<-I> or C<--htmlinfo>
333
334=back
335
e177e737 336=head1 SEE ALSO
337
03f30077 338L<check_openmanage(8)>
e177e737 339L<http://folk.uio.no/trondham/software/check_openmanage.html>
340
341=cut