mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
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};
|
$timeout = $snmp->{timeout};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($^O =~ /lin/i && "`which snmpwalk`" eq "") {
|
||||||
|
return {
|
||||||
|
'error' => 'snmpwalk not found'
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
$snmp->{extra} = '' unless defined $snmp->{extra};
|
$snmp->{extra} = '' unless defined $snmp->{extra};
|
||||||
|
|
||||||
if ( defined ($snmp->{version} )
|
if ( defined ($snmp->{version} )
|
||||||
@ -2131,6 +2137,12 @@ sub snmp_get {
|
|||||||
$timeout = $snmp->{timeout};
|
$timeout = $snmp->{timeout};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($^O =~ /lin/i && "`which snmpwalk`" eq "") {
|
||||||
|
return {
|
||||||
|
'error' => 'snmpwalk not found'
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
$snmp->{extra} = '' unless defined $snmp->{extra};
|
$snmp->{extra} = '' unless defined $snmp->{extra};
|
||||||
|
|
||||||
if ( defined ($snmp->{version} )
|
if ( defined ($snmp->{version} )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user