+ Change alteon path (WIP)
This commit is contained in:
parent
ac5910c989
commit
6df46c6c88
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package network::radware::alteon::common::mode::cpu;
|
||||
package network::radware::alteon::snmp::mode::cpu;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package network::radware::alteon::common::mode::hardware;
|
||||
package network::radware::alteon::snmp::mode::hardware;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package network::radware::alteon::common::mode::memory;
|
||||
package network::radware::alteon::snmp::mode::memory;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
||||
|
@ -69,7 +69,7 @@ sub run {
|
|||
my $prct_used = $memory_used * 100 / $total_size;
|
||||
my $prct_free = 100 - $prct_used;
|
||||
|
||||
my $exit = $self->{perfdata}->threshold_check(value => $prct_used, threshold => [ { label => 'critical', 'exit_litteral' => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
|
||||
my $exit = $self->{perfdata}->threshold_check(value => $prct_used, threshold => [ { label => 'critical', exit_litteral => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
|
||||
my ($total_value, $total_unit) = $self->{perfdata}->change_bytes(value => $total_size);
|
||||
my ($used_value, $used_unit) = $self->{perfdata}->change_bytes(value => $memory_used);
|
||||
my ($free_value, $free_unit) = $self->{perfdata}->change_bytes(value => $memory_free);
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package network::radware::alteon::5224::plugin;
|
||||
package network::radware::alteon::snmp::plugin;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
@ -31,9 +31,9 @@ sub new {
|
|||
|
||||
$self->{version} = '1.0';
|
||||
%{$self->{modes}} = (
|
||||
'cpu' => 'network::radware::alteon::common::mode::cpu',
|
||||
'hardware' => 'network::radware::alteon::common::mode::hardware',
|
||||
'memory' => 'network::radware::alteon::common::mode::memory',
|
||||
'cpu' => 'network::radware::alteon::snmp::mode::cpu',
|
||||
'hardware' => 'network::radware::alteon::snmp::mode::hardware',
|
||||
'memory' => 'network::radware::alteon::snmp::mode::memory',
|
||||
);
|
||||
|
||||
return $self;
|
||||
|
@ -45,6 +45,6 @@ __END__
|
|||
|
||||
=head1 PLUGIN DESCRIPTION
|
||||
|
||||
Check Alteon 5224 in SNMP.
|
||||
Check Radware Alteon in SNMP.
|
||||
|
||||
=cut
|
Loading…
Reference in New Issue