+ move directory for bluecoat

This commit is contained in:
garnier-quentin 2015-08-12 15:11:24 +02:00
parent 0ba8eb1a16
commit 7ed4de4d15
11 changed files with 21 additions and 21 deletions

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::bluecoat::mode::clientconnections; package network::bluecoat::snmp::mode::clientconnections;
use base qw(centreon::plugins::mode); use base qw(centreon::plugins::mode);

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::bluecoat::mode::clientrequests; package network::bluecoat::snmp::mode::clientrequests;
use base qw(centreon::plugins::mode); use base qw(centreon::plugins::mode);

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::bluecoat::mode::clienttraffic; package network::bluecoat::snmp::mode::clienttraffic;
use base qw(centreon::plugins::mode); use base qw(centreon::plugins::mode);

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::bluecoat::mode::components::disk; package network::bluecoat::snmp::mode::components::disk;
use strict; use strict;
use warnings; use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::bluecoat::mode::components::sensor; package network::bluecoat::snmp::mode::components::sensor;
use strict; use strict;
use warnings; use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::bluecoat::mode::cpu; package network::bluecoat::snmp::mode::cpu;
use base qw(centreon::plugins::mode); use base qw(centreon::plugins::mode);

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::bluecoat::mode::disk; package network::bluecoat::snmp::mode::disk;
use base qw(centreon::plugins::mode); use base qw(centreon::plugins::mode);

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::bluecoat::mode::hardware; package network::bluecoat::snmp::mode::hardware;
use base qw(centreon::plugins::mode); use base qw(centreon::plugins::mode);
@ -174,7 +174,7 @@ sub run {
my @components = ('sensor', 'disk'); my @components = ('sensor', 'disk');
foreach (@components) { foreach (@components) {
if (/$self->{option_results}->{component}/) { 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, centreon::plugins::misc::mymodule_load(output => $self->{output}, module => $mod_name,
error_msg => "Cannot load module '$mod_name'."); error_msg => "Cannot load module '$mod_name'.");
my $func = $mod_name->can('load'); my $func = $mod_name->can('load');
@ -190,7 +190,7 @@ sub run {
foreach (@components) { foreach (@components) {
if (/$self->{option_results}->{component}/) { 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'); my $func = $mod_name->can('check');
$func->($self); $func->($self);
} }

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::bluecoat::mode::memory; package network::bluecoat::snmp::mode::memory;
use base qw(centreon::plugins::mode); use base qw(centreon::plugins::mode);

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::bluecoat::mode::serverconnections; package network::bluecoat::snmp::mode::serverconnections;
use base qw(centreon::plugins::mode); use base qw(centreon::plugins::mode);

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::bluecoat::plugin; package network::bluecoat::snmp::plugin;
use strict; use strict;
use warnings; use warnings;
@ -32,14 +32,14 @@ sub new {
$self->{version} = '1.0'; $self->{version} = '1.0';
%{$self->{modes}} = ( %{$self->{modes}} = (
'client-connections' => 'network::bluecoat::mode::clientconnections', 'client-connections' => 'network::bluecoat::snmp::mode::clientconnections',
'client-requests' => 'network::bluecoat::mode::clientrequests', 'client-requests' => 'network::bluecoat::snmp::mode::clientrequests',
'client-traffic' => 'network::bluecoat::mode::clienttraffic', 'client-traffic' => 'network::bluecoat::snmp::mode::clienttraffic',
'cpu' => 'network::bluecoat::mode::cpu', 'cpu' => 'network::bluecoat::snmp::mode::cpu',
'disk' => 'network::bluecoat::mode::disk', 'disk' => 'network::bluecoat::snmp::mode::disk',
'hardware' => 'network::bluecoat::mode::hardware', 'hardware' => 'network::bluecoat::snmp::mode::hardware',
'memory' => 'network::bluecoat::mode::memory', 'memory' => 'network::bluecoat::snmp::mode::memory',
'server-connections' => 'network::bluecoat::mode::serverconnections', 'server-connections' => 'network::bluecoat::snmp::mode::serverconnections',
); );
return $self; return $self;