mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
+ correct compiling error
This commit is contained in:
parent
e4c04980ac
commit
8b83baf872
@ -147,8 +147,8 @@ sub send_trap_netsnmp {
|
||||
}
|
||||
|
||||
my $args = [];
|
||||
push @$args, ('1.3.6.1.2.1.1.3.0', Net::SNMP::TIMETICKS, time());
|
||||
push @$args, ('1.3.6.1.6.3.1.1.4.1.0', Net::SNMP::OBJECT_IDENTIFIER, $self->{option_results}->{oid_trap});
|
||||
push @$args, ('1.3.6.1.2.1.1.3.0', eval "Net::SNMP::TIMETICKS", time());
|
||||
push @$args, ('1.3.6.1.6.3.1.1.4.1.0', eval "Net::SNMP::OBJECT_IDENTIFIER", $self->{option_results}->{oid_trap});
|
||||
foreach (('hostname', 'start', 'end', 'author', 'comment', 'duration')) {
|
||||
my $type = $self->{snmp_args}->{$_}->{type};
|
||||
$type = 'OCTET_STRING' if ($type eq 'OCTETSTR');
|
||||
|
Loading…
x
Reference in New Issue
Block a user