Skip to content

Commit

Permalink
fix: bad status (critical instead of warning) (#4712)
Browse files Browse the repository at this point in the history
  • Loading branch information
omercier authored Oct 30, 2023
1 parent b0971fd commit 7d6b38d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/hardware/server/hp/ilo/xmlapi/mode/hardware.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ sub set_system {
['NOT APPLICABLE', 'OK'],
['n/a', 'OK'],
['Unknown', 'UNKNOWN'],
['Warning', 'WARNING'],
['.*', 'CRITICAL']
],
nic => [
Expand Down Expand Up @@ -86,19 +87,19 @@ Check hardware.
=item B<--component>
Which component to check (Default: '.*').
Define a regular expression to select which components to check (default: '.*').
Can be: 'fan', 'temperature', 'vrm', 'psu', 'cpu', 'memory', 'nic', 'battery', 'ctrl',
'driveencl', 'pdrive', 'ldrive', 'bios'.
=item B<--filter>
Exclude the items given as a comma-separated list (example: --filter=temperature --filter=fan).
Exclude the given items (example: --filter=temperature --filter=fan).
You can also exclude items from specific instances: --filter="fan,Fan Block 1"
=item B<--absent-problem>
Return an error if an entity is not 'present' (default is skipping)
Can be specific or global: --absent-problem="fan,Fan Block 1"
Return an error if an entity is not 'present' (default is skipping).
Can be specific or global (example: --absent-problem="fan,Fan Block 1").
=item B<--no-component>
Expand All @@ -111,12 +112,12 @@ Example: --threshold-overload='fan,OK,degraded'
=item B<--warning>
Set warning threshold for 'temperature', 'fan' (syntax: type,regexp,threshold)
Define the warning threshold for 'temperature', 'fan'. Syntax: type,regexp,threshold.
Example: --warning='temperature,.*,30'
=item B<--critical>
Set critical threshold for 'temperature', 'fan' (syntax: type,regexp,threshold)
Define the critical threshold for 'temperature', 'fan'. Syntax: type,regexp,threshold.
Example: --critical='temperature,.*,50'
=back
Expand Down

0 comments on commit 7d6b38d

Please sign in to comment.