#Bug 6070&6069
This commit is contained in:
parent
ceb7a3dabd
commit
ee7815eac9
|
@ -79,8 +79,6 @@ sub run {
|
|||
my $oid_lnMinimumMailDeliverTime = '.1.3.6.1.4.1.334.72.1.1.4.15.0';
|
||||
|
||||
my $results = $self->{snmp}->get_leef(oids => [$oid_lnMinimumMailDeliverTime, $oid_lnMaximumMailDeliverTime, $oid_lnAverageMailDeliverTime], nothing_quit => 1);
|
||||
# my $maxTime = $self->{snmp}->get_leef(oid => $oid_lnMaximumMailDeliverTime, nothing_quit => 1);
|
||||
# my $avgTime = $self->{snmp}->get_leef(oid => $oid_lnAverageMailDeliverTime, nothing_quit => 1);
|
||||
|
||||
my $exit_code = $self->{perfdata}->threshold_check(value => $results->{$oid_lnAverageMailDeliverTime},
|
||||
threshold => [ { label => 'critical', 'exit_litteral' => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
|
||||
|
|
|
@ -75,7 +75,7 @@ sub run {
|
|||
$self->{snmp} = $options{snmp};
|
||||
|
||||
my $oid_fwNumCom = '.1.3.6.1.4.1.2620.1.1.25.3.0';
|
||||
my $result = $self->{snmp}->get_leef(oids => $oid_fwNumCom, nothing_quit => 1);
|
||||
my $result = $self->{snmp}->get_leef(oids => [$oid_fwNumCom], nothing_quit => 1);
|
||||
|
||||
my $exit = $self->{perfdata}->threshold_check(value => $result->{$oid_fwNumCom},
|
||||
threshold => [ { label => 'critical', 'exit_litteral' => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
|
||||
|
|
|
@ -55,6 +55,11 @@ sub new {
|
|||
return $self;
|
||||
}
|
||||
|
||||
sub check_options {
|
||||
my ($self, %options) = @_;
|
||||
$self->SUPER::init(%options);
|
||||
}
|
||||
|
||||
sub run {
|
||||
my ($self, %options) = @_;
|
||||
# $options{snmp} = snmp object
|
||||
|
|
Loading…
Reference in New Issue