minor updates in plugintools
Former-commit-id: 85d3d6a099d4b08b1d79d996157e1725e3414809
This commit is contained in:
parent
d177bda2bd
commit
c1aaacbc07
|
@ -2018,6 +2018,12 @@ sub snmp_walk {
|
|||
$timeout = $snmp->{timeout};
|
||||
}
|
||||
|
||||
if ($^O =~ /lin/i && "`which snmpwalk`" eq "") {
|
||||
return {
|
||||
'error' => 'snmpwalk not found'
|
||||
};
|
||||
}
|
||||
|
||||
$snmp->{extra} = '' unless defined $snmp->{extra};
|
||||
|
||||
if ( defined ($snmp->{version} )
|
||||
|
@ -2131,6 +2137,12 @@ sub snmp_get {
|
|||
$timeout = $snmp->{timeout};
|
||||
}
|
||||
|
||||
if ($^O =~ /lin/i && "`which snmpwalk`" eq "") {
|
||||
return {
|
||||
'error' => 'snmpwalk not found'
|
||||
};
|
||||
}
|
||||
|
||||
$snmp->{extra} = '' unless defined $snmp->{extra};
|
||||
|
||||
if ( defined ($snmp->{version} )
|
||||
|
|
Loading…
Reference in New Issue