mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-21 20:23:18 +09:00
resolving bug#2419
This commit is contained in:
1 parent
bd7076f88f
commit
e596cf3337
1 file changed
+4
@@ -108,6 +108,10 @@ function cacti_snmp_get($hostname, $community, $oid, $version, $username, $passw
|
||||
we are getting back */
|
||||
snmp_set_quick_print(0);
|
||||
|
||||
if (function_exists('snmp_set_enum_print')) {
|
||||
snmp_set_enum_print(true);
|
||||
}
|
||||
|
||||
if ($version == '1') {
|
||||
$snmp_value = snmpget($hostname . ':' . $port, $community, $oid, ($timeout * 1000), $retries);
|
||||
}elseif ($version == '2') {
|
||||
|
||||
Reference in new issue
Block a user