]>
Commit | Line | Data |
---|---|---|
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 | ||
9 | check_openmanage.conf - Configuration file for check_openmanage | |
10 | ||
11 | =head1 FILE FORMAT | |
12 | ||
13 | The file has an ini-style syntax and consists of sections and | |
14 | parameters. A section begins with the name of the section in square | |
15 | brackets and continues until the next section begins. An example of | |
16 | section with two keywords and parameters: | |
17 | ||
18 | [section] | |
19 | key = boolean | |
20 | key2 = string | |
21 | ||
22 | The data types used are string (no quotes needed) and bool (with | |
23 | values of C<TRUE/FALSE>). For boolean values, C<1>, C<on> and C<true> | |
24 | are equivalent, likewise for C<0>, C<off> and C<false>. They are also | |
25 | case insensitive. | |
26 | ||
27 | The root section or global section has no section name in brackets, | |
28 | example: | |
29 | ||
30 | key = false | |
31 | key2 = foo | |
32 | ||
33 | [section] | |
34 | key = true | |
35 | key2 = bar | |
36 | ||
37 | The values set in a bracket section will override those set in the | |
38 | root section, in case of conflicts. | |
39 | ||
40 | Lines starting with C<#> or C<;> are considered comments and ignored, as | |
41 | are blank lines. | |
42 | ||
43 | The configuration file must be a regular file. Owner and group does | |
44 | not matter, but the Nagios user must have read access. | |
45 | ||
46 | =head1 SECTIONS AND ORDERING | |
47 | ||
48 | The section name should correspond to the hostname, i.e. the value | |
49 | passed to the C<-H> or C<--hostname> parameter. The section name | |
50 | itself can be either an exact match to the hostname, or a glob | |
51 | pattern, 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 | ||
63 | The sections are read in order of significance. The root section is | |
64 | read first. Then any sections with glob patterns that match the | |
65 | hostname are read (alphabetically). Any section whose name is an exact | |
66 | match to the hostname is read last. | |
67 | ||
68 | For boolean values, any conflicts are resolved by letting the section | |
69 | with the most significance (closest match to the hostname) override | |
70 | any previous definitions. For string values, they are simply added | |
71 | together. | |
72 | ||
73 | In the example above, for the host C<192.168.1.2> the value of C<key> | |
74 | will be C<true> and C<key2> will be C<bar>. Any other host that | |
75 | matches C<192.168.*> will have C<key = false> and C<key2 = bar>. All | |
76 | other 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 | |
84 | Any keyword to the C<--check> parameter are accepted in the | |
85 | configuration file, as C<check_KEYWORD>. These options take boolean | |
86 | values (C<true> or C<false>). The following keywords are accepted for | |
87 | check 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 | ||
104 | If used together with the C<--check> parameter to the plugin, the | |
105 | plugin parameter will override the configuration file, if there is a | |
106 | conflict. | |
107 | ||
aae8f5be | 108 | =item Blacklisting |
e177e737 | 109 | |
110 | For blacklisting the keyword C<blacklist> is used, and the value is a | |
111 | string that uses the same syntax as the C<-b> or C<--blacklist> | |
112 | parameter. Example: | |
113 | ||
114 | blacklist = ctrl_fw=all/pdisk=0:0:1 | |
115 | ||
116 | If used together with the C<-b> or C<--blacklist> parameter, the two | |
117 | blacklists from the config file and parameter are added together. | |
118 | ||
119 | =back | |
120 | ||
121 | =head1 SEE ALSO | |
122 | ||
03f30077 | 123 | L<check_openmanage(8)> |
e177e737 | 124 | L<http://folk.uio.no/trondham/software/check_openmanage.html> |
125 | ||
126 | =cut |