Few corrections thanks to Quentin bullseye

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

View File

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

View File

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

View File

@ -39,6 +39,7 @@ use base qw(centreon::plugins::mode);
use strict; use strict;
use warnings; use warnings;
use lib '/usr/lib/nagios/plugins';
use network::checkpoint::mode::components::fan; use network::checkpoint::mode::components::fan;
use network::checkpoint::mode::components::psu; use network::checkpoint::mode::components::psu;
@ -65,8 +66,6 @@ sub check_options {
} }
}
sub global { sub global {
my ($self, %options) = @_; my ($self, %options) = @_;
@ -93,7 +92,6 @@ sub run {
$self->{output}->option_exit(); $self->{output}->option_exit();
} }
my $total_components = 0; my $total_components = 0;
my $display_by_component = ''; my $display_by_component = '';
my $display_by_component_append = ''; my $display_by_component_append = '';
@ -132,7 +130,7 @@ __END__
=head1 MODE =head1 MODE
Check hardware (fans, power supplies). Check hardware (fans, power supplies, temperatures).
=over 8 =over 8

View File

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

View File

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