Few corrections thanks to Quentin bullseye

This commit is contained in:
Simon BOMM 2014-10-03 16:39:59 +02:00
parent f07aa3e415
commit 101f3a13fd
5 changed files with 10 additions and 11 deletions

View File

@ -98,17 +98,17 @@ __END__
=head1 MODE
Check system cpu usage (SW.mib).
Check firewall number of connections (chkpnt.mib).
=over 8
=item B<--warning>
Threshold warning in percent.
Number of connections trigerring a warning state
=item B<--critical>
Threshold critical in percent.
Number of connections trigerring a criticalstate
=back

View File

@ -118,7 +118,7 @@ __END__
=head1 MODE
Check system cpu usage (SW.mib).
Check firewall average cpu usage (system+user) (chkpnt.mib).
=over 8

View File

@ -39,6 +39,7 @@ use base qw(centreon::plugins::mode);
use strict;
use warnings;
use lib '/usr/lib/nagios/plugins';
use network::checkpoint::mode::components::fan;
use network::checkpoint::mode::components::psu;
@ -63,8 +64,6 @@ sub check_options {
my ($self, %options) = @_;
$self->SUPER::init(%options);
}
}
sub global {
@ -92,7 +91,6 @@ sub run {
$self->{output}->add_option_msg(short_msg => "Wrong option. Cannot find component '" . $self->{option_results}->{component} . "'.");
$self->{output}->option_exit();
}
my $total_components = 0;
my $display_by_component = '';
@ -132,7 +130,7 @@ __END__
=head1 MODE
Check hardware (fans, power supplies).
Check hardware (fans, power supplies, temperatures).
=over 8

View File

@ -105,7 +105,7 @@ __END__
=head1 MODE
Check system memory usage (SW.mib).
Check firewall real memory usage (chkpnt.mib).
=over 8

View File

@ -49,7 +49,8 @@ sub new {
%{$self->{modes}} = (
'cpu' => 'network::checkpoint::mode::cpu',
'memory' => 'network::checkpoint::mode::memory',
'connections' => 'snmp_standard::mode::connections'
'connections' => 'network::checkpoint::mode::connections',
'hardware' => 'network::checkpoint::mode::hardware',
);
return $self;
@ -61,6 +62,6 @@ __END__
=head1 PLUGIN DESCRIPTION
Check CheckPoint in SNMP.
Check CheckPoint FW in SNMP.
=cut