Skip to content

Commit 7d6b38d

Browse files
authored
fix: bad status (critical instead of warning) (centreon#4712)
1 parent b0971fd commit 7d6b38d

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/hardware/server/hp/ilo/xmlapi/mode/hardware.pm

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ sub set_system {
4141
['NOT APPLICABLE', 'OK'],
4242
['n/a', 'OK'],
4343
['Unknown', 'UNKNOWN'],
44+
['Warning', 'WARNING'],
4445
['.*', 'CRITICAL']
4546
],
4647
nic => [
@@ -86,19 +87,19 @@ Check hardware.
8687
8788
=item B<--component>
8889
89-
Which component to check (Default: '.*').
90+
Define a regular expression to select which components to check (default: '.*').
9091
Can be: 'fan', 'temperature', 'vrm', 'psu', 'cpu', 'memory', 'nic', 'battery', 'ctrl',
9192
'driveencl', 'pdrive', 'ldrive', 'bios'.
9293
9394
=item B<--filter>
9495
95-
Exclude the items given as a comma-separated list (example: --filter=temperature --filter=fan).
96+
Exclude the given items (example: --filter=temperature --filter=fan).
9697
You can also exclude items from specific instances: --filter="fan,Fan Block 1"
9798
9899
=item B<--absent-problem>
99100
100-
Return an error if an entity is not 'present' (default is skipping)
101-
Can be specific or global: --absent-problem="fan,Fan Block 1"
101+
Return an error if an entity is not 'present' (default is skipping).
102+
Can be specific or global (example: --absent-problem="fan,Fan Block 1").
102103
103104
=item B<--no-component>
104105
@@ -111,12 +112,12 @@ Example: --threshold-overload='fan,OK,degraded'
111112
112113
=item B<--warning>
113114
114-
Set warning threshold for 'temperature', 'fan' (syntax: type,regexp,threshold)
115+
Define the warning threshold for 'temperature', 'fan'. Syntax: type,regexp,threshold.
115116
Example: --warning='temperature,.*,30'
116117
117118
=item B<--critical>
118119
119-
Set critical threshold for 'temperature', 'fan' (syntax: type,regexp,threshold)
120+
Define the critical threshold for 'temperature', 'fan'. Syntax: type,regexp,threshold.
120121
Example: --critical='temperature,.*,50'
121122
122123
=back

0 commit comments

Comments
 (0)