mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-26 23:24:27 +02:00
fix(cisco-ucs): fix wrong count when using threshold overload option (#5467)
Refs: CTOR-1294
This commit is contained in:
commit
4669ded30a
@ -77,8 +77,10 @@ sub check {
|
|||||||
);
|
);
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
$self->{components}->{memory}->{total}++;
|
if($result->{cucsMemoryUnitPresence} eq "equipped") {
|
||||||
|
$self->{components}->{memory}->{total}++;
|
||||||
|
}
|
||||||
|
|
||||||
$exit = $self->get_severity(section => 'memory.operability', label => 'default.operability', value => $result2->{cucsMemoryUnitOperState});
|
$exit = $self->get_severity(section => 'memory.operability', label => 'default.operability', value => $result2->{cucsMemoryUnitOperState});
|
||||||
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
|
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
|
||||||
|
@ -60,14 +60,14 @@ __END__
|
|||||||
|
|
||||||
=head1 MODE
|
=head1 MODE
|
||||||
|
|
||||||
Check Hardware (Fans, Power supplies, chassis, io cards, blades, fabric extenders).
|
Check Hardware (Fans, Power supplies, chassis, I/O cards, blades, fabric extenders).
|
||||||
|
|
||||||
=over 8
|
=over 8
|
||||||
|
|
||||||
=item B<--component>
|
=item B<--component>
|
||||||
|
|
||||||
Which component to check (default: '.*').
|
Which component to check (default: '.*').
|
||||||
Can be: 'fan', 'psu', 'chassis', 'iocard', 'blade', 'fex', 'cpu', 'memory', 'localdisk'.
|
Can be: C<fan>, C<psu>, C<chassis>, C<iocard>, C<blade>, C<fex>, C<cpu>, C<memory>, C<localdisk>.
|
||||||
|
|
||||||
=item B<--filter>
|
=item B<--filter>
|
||||||
|
|
||||||
@ -89,6 +89,9 @@ Use this option to override the status returned by the plugin when the status la
|
|||||||
Example: --threshold-overload='fan.operability,OK,poweredOff|removed'
|
Example: --threshold-overload='fan.operability,OK,poweredOff|removed'
|
||||||
--threshold-overload='presence,OK,missing'
|
--threshold-overload='presence,OK,missing'
|
||||||
--threshold-overload='operability,OK,removed'
|
--threshold-overload='operability,OK,removed'
|
||||||
|
NB: For the memory component you may need to set this option twice if presence status doesn't
|
||||||
|
return OK state and you want to override the operability status. Example when memories are missing because of removing.
|
||||||
|
--threshold-overload='presence,OK,missing' --threshold-overload='operability,OK,removed'
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
|
@ -109,6 +109,7 @@ in-mcast
|
|||||||
interface-dsl-name
|
interface-dsl-name
|
||||||
InterrupibleSleep
|
InterrupibleSleep
|
||||||
in-ucast
|
in-ucast
|
||||||
|
io-cards
|
||||||
iops
|
iops
|
||||||
IpAddr
|
IpAddr
|
||||||
ip-label
|
ip-label
|
||||||
|
Loading…
x
Reference in New Issue
Block a user