From 7ed4de4d15dbaa62c6226ba167e8867d2bd2bb2c Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 12 Aug 2015 15:11:24 +0200 Subject: [PATCH] + move directory for bluecoat --- .../{ => snmp}/mode/clientconnections.pm | 2 +- .../bluecoat/{ => snmp}/mode/clientrequests.pm | 2 +- .../bluecoat/{ => snmp}/mode/clienttraffic.pm | 2 +- .../{ => snmp}/mode/components/disk.pm | 2 +- .../{ => snmp}/mode/components/sensor.pm | 2 +- network/bluecoat/{ => snmp}/mode/cpu.pm | 2 +- network/bluecoat/{ => snmp}/mode/disk.pm | 2 +- network/bluecoat/{ => snmp}/mode/hardware.pm | 6 +++--- network/bluecoat/{ => snmp}/mode/memory.pm | 2 +- .../{ => snmp}/mode/serverconnections.pm | 2 +- network/bluecoat/{ => snmp}/plugin.pm | 18 +++++++++--------- 11 files changed, 21 insertions(+), 21 deletions(-) rename network/bluecoat/{ => snmp}/mode/clientconnections.pm (98%) rename network/bluecoat/{ => snmp}/mode/clientrequests.pm (99%) rename network/bluecoat/{ => snmp}/mode/clienttraffic.pm (99%) rename network/bluecoat/{ => snmp}/mode/components/disk.pm (98%) rename network/bluecoat/{ => snmp}/mode/components/sensor.pm (98%) rename network/bluecoat/{ => snmp}/mode/cpu.pm (99%) rename network/bluecoat/{ => snmp}/mode/disk.pm (98%) rename network/bluecoat/{ => snmp}/mode/hardware.pm (98%) rename network/bluecoat/{ => snmp}/mode/memory.pm (98%) rename network/bluecoat/{ => snmp}/mode/serverconnections.pm (98%) rename network/bluecoat/{ => snmp}/plugin.pm (59%) diff --git a/network/bluecoat/mode/clientconnections.pm b/network/bluecoat/snmp/mode/clientconnections.pm similarity index 98% rename from network/bluecoat/mode/clientconnections.pm rename to network/bluecoat/snmp/mode/clientconnections.pm index ad36c88ff..e96fdb85c 100644 --- a/network/bluecoat/mode/clientconnections.pm +++ b/network/bluecoat/snmp/mode/clientconnections.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package network::bluecoat::mode::clientconnections; +package network::bluecoat::snmp::mode::clientconnections; use base qw(centreon::plugins::mode); diff --git a/network/bluecoat/mode/clientrequests.pm b/network/bluecoat/snmp/mode/clientrequests.pm similarity index 99% rename from network/bluecoat/mode/clientrequests.pm rename to network/bluecoat/snmp/mode/clientrequests.pm index 4a7920cba..77a38ddf0 100644 --- a/network/bluecoat/mode/clientrequests.pm +++ b/network/bluecoat/snmp/mode/clientrequests.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package network::bluecoat::mode::clientrequests; +package network::bluecoat::snmp::mode::clientrequests; use base qw(centreon::plugins::mode); diff --git a/network/bluecoat/mode/clienttraffic.pm b/network/bluecoat/snmp/mode/clienttraffic.pm similarity index 99% rename from network/bluecoat/mode/clienttraffic.pm rename to network/bluecoat/snmp/mode/clienttraffic.pm index e298b2312..857d3fa6a 100644 --- a/network/bluecoat/mode/clienttraffic.pm +++ b/network/bluecoat/snmp/mode/clienttraffic.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package network::bluecoat::mode::clienttraffic; +package network::bluecoat::snmp::mode::clienttraffic; use base qw(centreon::plugins::mode); diff --git a/network/bluecoat/mode/components/disk.pm b/network/bluecoat/snmp/mode/components/disk.pm similarity index 98% rename from network/bluecoat/mode/components/disk.pm rename to network/bluecoat/snmp/mode/components/disk.pm index 06ba9a350..c8f429993 100644 --- a/network/bluecoat/mode/components/disk.pm +++ b/network/bluecoat/snmp/mode/components/disk.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package network::bluecoat::mode::components::disk; +package network::bluecoat::snmp::mode::components::disk; use strict; use warnings; diff --git a/network/bluecoat/mode/components/sensor.pm b/network/bluecoat/snmp/mode/components/sensor.pm similarity index 98% rename from network/bluecoat/mode/components/sensor.pm rename to network/bluecoat/snmp/mode/components/sensor.pm index 2b2d0b74a..73caaff1a 100644 --- a/network/bluecoat/mode/components/sensor.pm +++ b/network/bluecoat/snmp/mode/components/sensor.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package network::bluecoat::mode::components::sensor; +package network::bluecoat::snmp::mode::components::sensor; use strict; use warnings; diff --git a/network/bluecoat/mode/cpu.pm b/network/bluecoat/snmp/mode/cpu.pm similarity index 99% rename from network/bluecoat/mode/cpu.pm rename to network/bluecoat/snmp/mode/cpu.pm index 960e3bdec..5fe803d9d 100644 --- a/network/bluecoat/mode/cpu.pm +++ b/network/bluecoat/snmp/mode/cpu.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package network::bluecoat::mode::cpu; +package network::bluecoat::snmp::mode::cpu; use base qw(centreon::plugins::mode); diff --git a/network/bluecoat/mode/disk.pm b/network/bluecoat/snmp/mode/disk.pm similarity index 98% rename from network/bluecoat/mode/disk.pm rename to network/bluecoat/snmp/mode/disk.pm index 1216b80d0..061e815e1 100644 --- a/network/bluecoat/mode/disk.pm +++ b/network/bluecoat/snmp/mode/disk.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package network::bluecoat::mode::disk; +package network::bluecoat::snmp::mode::disk; use base qw(centreon::plugins::mode); diff --git a/network/bluecoat/mode/hardware.pm b/network/bluecoat/snmp/mode/hardware.pm similarity index 98% rename from network/bluecoat/mode/hardware.pm rename to network/bluecoat/snmp/mode/hardware.pm index 740bc0c2c..7182fcf62 100644 --- a/network/bluecoat/mode/hardware.pm +++ b/network/bluecoat/snmp/mode/hardware.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package network::bluecoat::mode::hardware; +package network::bluecoat::snmp::mode::hardware; use base qw(centreon::plugins::mode); @@ -174,7 +174,7 @@ sub run { my @components = ('sensor', 'disk'); foreach (@components) { if (/$self->{option_results}->{component}/) { - my $mod_name = "network::bluecoat::mode::components::$_"; + my $mod_name = "network::bluecoat::snmp::mode::components::$_"; centreon::plugins::misc::mymodule_load(output => $self->{output}, module => $mod_name, error_msg => "Cannot load module '$mod_name'."); my $func = $mod_name->can('load'); @@ -190,7 +190,7 @@ sub run { foreach (@components) { if (/$self->{option_results}->{component}/) { - my $mod_name = "network::bluecoat::mode::components::$_"; + my $mod_name = "network::bluecoat::snmp::mode::components::$_"; my $func = $mod_name->can('check'); $func->($self); } diff --git a/network/bluecoat/mode/memory.pm b/network/bluecoat/snmp/mode/memory.pm similarity index 98% rename from network/bluecoat/mode/memory.pm rename to network/bluecoat/snmp/mode/memory.pm index 91ce9f540..02b419830 100644 --- a/network/bluecoat/mode/memory.pm +++ b/network/bluecoat/snmp/mode/memory.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package network::bluecoat::mode::memory; +package network::bluecoat::snmp::mode::memory; use base qw(centreon::plugins::mode); diff --git a/network/bluecoat/mode/serverconnections.pm b/network/bluecoat/snmp/mode/serverconnections.pm similarity index 98% rename from network/bluecoat/mode/serverconnections.pm rename to network/bluecoat/snmp/mode/serverconnections.pm index 0479bf706..2c98aab3c 100644 --- a/network/bluecoat/mode/serverconnections.pm +++ b/network/bluecoat/snmp/mode/serverconnections.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package network::bluecoat::mode::serverconnections; +package network::bluecoat::snmp::mode::serverconnections; use base qw(centreon::plugins::mode); diff --git a/network/bluecoat/plugin.pm b/network/bluecoat/snmp/plugin.pm similarity index 59% rename from network/bluecoat/plugin.pm rename to network/bluecoat/snmp/plugin.pm index 08e96de04..d7b2e119f 100644 --- a/network/bluecoat/plugin.pm +++ b/network/bluecoat/snmp/plugin.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package network::bluecoat::plugin; +package network::bluecoat::snmp::plugin; use strict; use warnings; @@ -32,14 +32,14 @@ sub new { $self->{version} = '1.0'; %{$self->{modes}} = ( - 'client-connections' => 'network::bluecoat::mode::clientconnections', - 'client-requests' => 'network::bluecoat::mode::clientrequests', - 'client-traffic' => 'network::bluecoat::mode::clienttraffic', - 'cpu' => 'network::bluecoat::mode::cpu', - 'disk' => 'network::bluecoat::mode::disk', - 'hardware' => 'network::bluecoat::mode::hardware', - 'memory' => 'network::bluecoat::mode::memory', - 'server-connections' => 'network::bluecoat::mode::serverconnections', + 'client-connections' => 'network::bluecoat::snmp::mode::clientconnections', + 'client-requests' => 'network::bluecoat::snmp::mode::clientrequests', + 'client-traffic' => 'network::bluecoat::snmp::mode::clienttraffic', + 'cpu' => 'network::bluecoat::snmp::mode::cpu', + 'disk' => 'network::bluecoat::snmp::mode::disk', + 'hardware' => 'network::bluecoat::snmp::mode::hardware', + 'memory' => 'network::bluecoat::snmp::mode::memory', + 'server-connections' => 'network::bluecoat::snmp::mode::serverconnections', ); return $self;