mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
Fix help mode
This commit is contained in:
parent
21adc9811e
commit
2aad44b5cd
@ -280,7 +280,7 @@ __END__
|
|||||||
=head1 MODE
|
=head1 MODE
|
||||||
|
|
||||||
Check usage on partitions (UCD-SNMP-MIB).
|
Check usage on partitions (UCD-SNMP-MIB).
|
||||||
Need to enable "includeAllDisk 10%" on snmpd.conf.
|
Need to enable "includeAllDisks 10%" on snmpd.conf.
|
||||||
|
|
||||||
=over 8
|
=over 8
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ sub run {
|
|||||||
|
|
||||||
if (defined($self->{option_results}->{average})) {
|
if (defined($self->{option_results}->{average})) {
|
||||||
my $result2 = $self->{snmp}->get_table(oid => $oid_CountCpu);
|
my $result2 = $self->{snmp}->get_table(oid => $oid_CountCpu);
|
||||||
if (scalar(keys %$result2)<=0){
|
if (scalar(keys %$result2) <= 0){
|
||||||
$self->{output}->output_add(severity => 'unknown',
|
$self->{output}->output_add(severity => 'unknown',
|
||||||
short_msg => 'Unable to get number of CPUs');
|
short_msg => 'Unable to get number of CPUs');
|
||||||
$self->{output}->display();
|
$self->{output}->display();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user