enhance riverbed
This commit is contained in:
parent
4ded7f8c14
commit
bd3ece219a
|
@ -88,9 +88,8 @@ sub new {
|
||||||
my $self = $class->SUPER::new(package => __PACKAGE__, %options, statefile => 1);
|
my $self = $class->SUPER::new(package => __PACKAGE__, %options, statefile => 1);
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$options{options}->add_options(arguments =>
|
$options{options}->add_options(arguments => {
|
||||||
{
|
});
|
||||||
});
|
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
@ -120,12 +119,8 @@ sub manage_selection {
|
||||||
|
|
||||||
my $results = $options{snmp}->get_multiple_table(
|
my $results = $options{snmp}->get_multiple_table(
|
||||||
oids => [
|
oids => [
|
||||||
{ oid => $oids->{common},
|
{ oid => $oids->{common}, start => $mappings->{common}->{bwHCAggInLan}->{oid}, end => $mappings->{common}->{bwHCAggOutWan}->{oid} },
|
||||||
start => $mappings->{common}->{bwHCAggInLan}->{oid},
|
{ oid => $oids->{ex}, start => $mappings->{ex}->{bwHCAggInLan}->{oid}, end => $mappings->{ex}->{bwHCAggOutWan}->{oid} }
|
||||||
end => $mappings->{common}->{bwHCAggOutWan}->{oid} },
|
|
||||||
{ oid => $oids->{ex},
|
|
||||||
start => $mappings->{ex}->{bwHCAggInLan}->{oid},
|
|
||||||
end => $mappings->{ex}->{bwHCAggOutWan}->{oid} }
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -95,12 +95,8 @@ sub manage_selection {
|
||||||
|
|
||||||
my $results = $options{snmp}->get_multiple_table(
|
my $results = $options{snmp}->get_multiple_table(
|
||||||
oids => [
|
oids => [
|
||||||
{ oid => $oids->{common},
|
{ oid => $oids->{common}, start => $mappings->{common}->{bwPassThroughIn}->{oid}, end => $mappings->{common}->{bwPassThroughOut}->{oid} },
|
||||||
start => $mappings->{common}->{bwPassThroughIn}->{oid},
|
{ oid => $oids->{ex}, start => $mappings->{ex}->{bwPassThroughIn}->{oid}, end => $mappings->{ex}->{bwPassThroughOut}->{oid} }
|
||||||
end => $mappings->{common}->{bwPassThroughOut}->{oid} },
|
|
||||||
{ oid => $oids->{ex},
|
|
||||||
start => $mappings->{ex}->{bwPassThroughIn}->{oid},
|
|
||||||
end => $mappings->{ex}->{bwPassThroughOut}->{oid} }
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,7 @@ sub new {
|
||||||
|
|
||||||
$options{options}->add_options(arguments => {
|
$options{options}->add_options(arguments => {
|
||||||
});
|
});
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,12 +140,8 @@ sub manage_selection {
|
||||||
|
|
||||||
my $results = $options{snmp}->get_multiple_table(
|
my $results = $options{snmp}->get_multiple_table(
|
||||||
oids => [
|
oids => [
|
||||||
{ oid => $oids->{common},
|
{ oid => $oids->{common}, start => $mappings->{common}->{optimizedConnections}->{oid}, end => $mappings->{common}->{totalConnections}->{oid} },
|
||||||
start => $mappings->{common}->{optimizedConnections}->{oid},
|
{ oid => $oids->{ex}, start => $mappings->{ex}->{optimizedConnections}->{oid}, end => $mappings->{ex}->{totalConnections}->{oid} }
|
||||||
end => $mappings->{common}->{totalConnections}->{oid} },
|
|
||||||
{ oid => $oids->{ex},
|
|
||||||
start => $mappings->{ex}->{optimizedConnections}->{oid},
|
|
||||||
end => $mappings->{ex}->{totalConnections}->{oid} }
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -101,20 +101,15 @@ sub manage_selection {
|
||||||
|
|
||||||
my $results = $options{snmp}->get_multiple_table(
|
my $results = $options{snmp}->get_multiple_table(
|
||||||
oids => [
|
oids => [
|
||||||
{ oid => $oids->{common},
|
{ oid => $oids->{common}, start => $mappings->{common}->{dsHitsTotal}->{oid}, end => $mappings->{common}->{dsAveDiskUtilization}->{oid} },
|
||||||
start => $mappings->{common}->{dsHitsTotal}->{oid},
|
{ oid => $oids->{ex}, start => $mappings->{ex}->{dsHitsTotal}->{oid}, end => $mappings->{ex}->{dsAveDiskUtilization}->{oid} }
|
||||||
end => $mappings->{common}->{dsAveDiskUtilization}->{oid} },
|
|
||||||
{ oid => $oids->{ex},
|
|
||||||
start => $mappings->{ex}->{dsHitsTotal}->{oid},
|
|
||||||
end => $mappings->{ex}->{dsAveDiskUtilization}->{oid} }
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach my $equipment (keys %{$oids}) {
|
foreach my $equipment (keys %{$oids}) {
|
||||||
next if (!%{$results->{$oids->{$equipment}}});
|
next if (!%{$results->{$oids->{$equipment}}});
|
||||||
|
|
||||||
my $result = $options{snmp}->map_instance(mapping => $mappings->{$equipment},
|
my $result = $options{snmp}->map_instance(mapping => $mappings->{$equipment}, results => $results->{$oids->{$equipment}}, instance => 0);
|
||||||
results => $results->{$oids->{$equipment}}, instance => 0);
|
|
||||||
|
|
||||||
$self->{global} = {
|
$self->{global} = {
|
||||||
dsHitsTotal => $result->{dsHitsTotal},
|
dsHitsTotal => $result->{dsHitsTotal},
|
||||||
|
|
|
@ -18,26 +18,6 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
|
||||||
# Copyright 2019 Centreon (http://www.centreon.com/)
|
|
||||||
#
|
|
||||||
# Centreon is a full-fledged industry-strength solution that meets
|
|
||||||
# the needs in IT infrastructure and application monitoring for
|
|
||||||
# service performance.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
package centreon::common::riverbed::steelhead::snmp::mode::loadaverage;
|
package centreon::common::riverbed::steelhead::snmp::mode::loadaverage;
|
||||||
|
|
||||||
use base qw(centreon::plugins::templates::counter);
|
use base qw(centreon::plugins::templates::counter);
|
||||||
|
@ -134,15 +114,9 @@ sub manage_selection {
|
||||||
|
|
||||||
my $results = $options{snmp}->get_multiple_table(
|
my $results = $options{snmp}->get_multiple_table(
|
||||||
oids => [
|
oids => [
|
||||||
{ oid => $oids->{common},
|
{ oid => $oids->{common}, start => $mappings->{common}->{cpuLoad1}->{oid}, end => $mappings->{common}->{cpuUtil1}->{oid} },
|
||||||
start => $mappings->{common}->{cpuLoad1}->{oid},
|
{ oid => $oids->{ex}, start => $mappings->{ex}->{cpuLoad1}->{oid}, end => $mappings->{ex}->{cpuUtil1}->{oid} },
|
||||||
end => $mappings->{common}->{cpuUtil1}->{oid} },
|
{ oid => $oids->{interceptor}, start => $mappings->{interceptor}->{cpuLoad1}->{oid}, end => $mappings->{interceptor}->{cpuUtil1}->{oid} }
|
||||||
{ oid => $oids->{ex},
|
|
||||||
start => $mappings->{ex}->{cpuLoad1}->{oid},
|
|
||||||
end => $mappings->{ex}->{cpuUtil1}->{oid} },
|
|
||||||
{ oid => $oids->{interceptor},
|
|
||||||
start => $mappings->{interceptor}->{cpuLoad1}->{oid},
|
|
||||||
end => $mappings->{interceptor}->{cpuUtil1}->{oid} }
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -82,8 +82,8 @@ sub new {
|
||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$options{options}->add_options(arguments => {
|
$options{options}->add_options(arguments => {
|
||||||
"warning-status:s" => { name => 'warning_status', default => '' },
|
'warning-status:s' => { name => 'warning_status', default => '' },
|
||||||
"critical-status:s" => { name => 'critical_status', default => '%{health} !~ /Healthy/ || %{status} !~ /running/' },
|
'critical-status:s' => { name => 'critical_status', default => '%{health} !~ /Healthy/ || %{status} !~ /running/' },
|
||||||
});
|
});
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
@ -125,15 +125,9 @@ sub manage_selection {
|
||||||
|
|
||||||
my $results = $options{snmp}->get_multiple_table(
|
my $results = $options{snmp}->get_multiple_table(
|
||||||
oids => [
|
oids => [
|
||||||
{ oid => $oids->{common},
|
{ oid => $oids->{common}, start => $mappings->{common}->{health}->{oid}, end => $mappings->{common}->{serviceUptime}->{oid} },
|
||||||
start => $mappings->{common}->{health}->{oid},
|
{ oid => $oids->{ex}, start => $mappings->{ex}->{health}->{oid}, end => $mappings->{ex}->{serviceUptime}->{oid} },
|
||||||
end => $mappings->{common}->{serviceUptime}->{oid} },
|
{ oid => $oids->{interceptor}, start => $mappings->{interceptor}->{health}->{oid}, end => $mappings->{interceptor}->{serviceUptime}->{oid} }
|
||||||
{ oid => $oids->{ex},
|
|
||||||
start => $mappings->{ex}->{health}->{oid},
|
|
||||||
end => $mappings->{ex}->{serviceUptime}->{oid} },
|
|
||||||
{ oid => $oids->{interceptor},
|
|
||||||
start => $mappings->{interceptor}->{health}->{oid},
|
|
||||||
end => $mappings->{interceptor}->{serviceUptime}->{oid} }
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ sub new {
|
||||||
|
|
||||||
$options{options}->add_options(arguments =>{
|
$options{options}->add_options(arguments =>{
|
||||||
});
|
});
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,12 +76,8 @@ sub manage_selection {
|
||||||
|
|
||||||
my $results = $options{snmp}->get_multiple_table(
|
my $results = $options{snmp}->get_multiple_table(
|
||||||
oids => [
|
oids => [
|
||||||
{ oid => $oids->{common},
|
{ oid => $oids->{common}, start => $mappings->{common}->{systemTemperature}->{oid}, end => $mappings->{common}->{systemTemperature}->{oid} },
|
||||||
start => $mappings->{common}->{systemTemperature}->{oid},
|
{ oid => $oids->{ex}, start => $mappings->{ex}->{systemTemperature}->{oid}, end => $mappings->{ex}->{systemTemperature}->{oid} }
|
||||||
end => $mappings->{common}->{systemTemperature}->{oid} },
|
|
||||||
{ oid => $oids->{ex},
|
|
||||||
start => $mappings->{ex}->{systemTemperature}->{oid},
|
|
||||||
end => $mappings->{ex}->{systemTemperature}->{oid} }
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue