]> git.uio.no Git - check_openmanage.git/blame - check_openmanage.conf.pod
* version 3.7.0-beta3
[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
9check_openmanage.conf - Configuration file for check_openmanage
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
18 [section]
19 key = boolean
20 key2 = string
21
22The data types used are string (no quotes needed) and bool (with
23values of C<TRUE/FALSE>). For boolean values, C<1>, C<on> and C<true>
24are equivalent, likewise for C<0>, C<off> and C<false>. They are also
25case insensitive.
26
27The root section or global section has no section name in brackets,
28example:
29
30 key = false
31 key2 = foo
32
33 [section]
34 key = true
35 key2 = bar
36
37The values set in a bracket section will override those set in the
38root section, in case of conflicts.
39
40Lines starting with C<#> or C<;> are considered comments and ignored, as
41are blank lines.
42
43The configuration file must be a regular file. Owner and group does
44not matter, but the Nagios user must have read access.
45
46=head1 SECTIONS AND ORDERING
47
48The section name should correspond to the hostname, i.e. the value
49passed to the C<-H> or C<--hostname> parameter. The section name
50itself can be either an exact match to the hostname, or a glob
51pattern, as this example shows:
52
53 key = true
54 key2 = foo
55
56 [192.168.1.2]
57 key = true
58
59 [192.168.*]
60 key = false
61 key2 = bar
62
63The sections are read in order of significance. The root section is
64read first. Then any sections with glob patterns that match the
65hostname are read (alphabetically). Any section whose name is an exact
66match to the hostname is read last.
67
68For boolean values, any conflicts are resolved by letting the section
69with the most significance (closest match to the hostname) override
70any previous definitions. For string values, they are simply added
71together.
72
73In the example above, for the host C<192.168.1.2> the value of C<key>
74will be C<true> and C<key2> will be C<bar>. Any other host that
75matches C<192.168.*> will have C<key = false> and C<key2 = bar>. All
76other hosts will have C<key = true> and C<key2 = foo>.
77
78=head1 CONFIGURATION
79
aae8f5be 80=over 4
e177e737 81
aae8f5be 82=item Check control
e177e737 83
84Any keyword to the C<--check> parameter are accepted in the
85configuration file, as C<check_KEYWORD>. These options take boolean
86values (C<true> or C<false>). The following keywords are accepted for
87check control, listed here with their default values:
88
89 check_storage = true
90 check_memory = true
91 check_fans = true
92 check_power = true
93 check_temp = true
94 check_cpu = true
95 check_voltage = true
96 check_batteries = true
97 check_amperage = true
98 check_intrusion = true
99 check_sdcard = true
100 check_esmhealth = true
101 check_esmlog = false
102 check_alertlog = false
103
104If used together with the C<--check> parameter to the plugin, the
105plugin parameter will override the configuration file, if there is a
106conflict.
107
aae8f5be 108=item Blacklisting
e177e737 109
110For blacklisting the keyword C<blacklist> is used, and the value is a
111string that uses the same syntax as the C<-b> or C<--blacklist>
112parameter. Example:
113
114 blacklist = ctrl_fw=all/pdisk=0:0:1
115
116If used together with the C<-b> or C<--blacklist> parameter, the two
117blacklists from the config file and parameter are added together.
118
119=back
120
121=head1 SEE ALSO
122
03f30077 123L<check_openmanage(8)>
e177e737 124L<http://folk.uio.no/trondham/software/check_openmanage.html>
125
126=cut