From 101f3a13fd52fff509480849bfdb5c308e5cfdcb Mon Sep 17 00:00:00 2001 From: Simon BOMM Date: Fri, 3 Oct 2014 16:39:59 +0200 Subject: [PATCH] Few corrections thanks to Quentin bullseye --- network/checkpoint/mode/connections.pm | 6 +++--- network/checkpoint/mode/cpu.pm | 2 +- network/checkpoint/mode/hardware.pm | 6 ++---- network/checkpoint/mode/memory.pm | 2 +- network/checkpoint/plugin.pm | 5 +++-- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/network/checkpoint/mode/connections.pm b/network/checkpoint/mode/connections.pm index 7a115a77c..30cb3414a 100644 --- a/network/checkpoint/mode/connections.pm +++ b/network/checkpoint/mode/connections.pm @@ -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 diff --git a/network/checkpoint/mode/cpu.pm b/network/checkpoint/mode/cpu.pm index dc320bee4..d045b1822 100644 --- a/network/checkpoint/mode/cpu.pm +++ b/network/checkpoint/mode/cpu.pm @@ -118,7 +118,7 @@ __END__ =head1 MODE -Check system cpu usage (SW.mib). +Check firewall average cpu usage (system+user) (chkpnt.mib). =over 8 diff --git a/network/checkpoint/mode/hardware.pm b/network/checkpoint/mode/hardware.pm index 93b4359dd..e2e5f8cfa 100644 --- a/network/checkpoint/mode/hardware.pm +++ b/network/checkpoint/mode/hardware.pm @@ -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 diff --git a/network/checkpoint/mode/memory.pm b/network/checkpoint/mode/memory.pm index 71882c3cf..44225b5a6 100644 --- a/network/checkpoint/mode/memory.pm +++ b/network/checkpoint/mode/memory.pm @@ -105,7 +105,7 @@ __END__ =head1 MODE -Check system memory usage (SW.mib). +Check firewall real memory usage (chkpnt.mib). =over 8 diff --git a/network/checkpoint/plugin.pm b/network/checkpoint/plugin.pm index cce49066c..013a7801c 100644 --- a/network/checkpoint/plugin.pm +++ b/network/checkpoint/plugin.pm @@ -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