feature: Implement snmp_getnext() (#7678)

find correct path to snmpgetnext (will do the same for others later)
fix undefined index in get_mib_dir()
This commit is contained in:
Tony Murray
2017-11-08 09:15:49 -06:00
committed by Neil Lathwood
parent 24a0ee97a7
commit acb1de5772
3 changed files with 45 additions and 9 deletions

View File

@@ -2003,6 +2003,8 @@ function initStats()
$snmp_stats = array(
'snmpget' => 0,
'snmpget_sec' => 0.0,
'snmpgetnext' => 0,
'snmpgetnext_sec' => 0.0,
'snmpwalk' => 0,
'snmpwalk_sec' => 0.0,
);
@@ -2036,9 +2038,11 @@ function printStats()
global $snmp_stats, $db_stats;
printf(
"SNMP: Get[%d/%.2fs] Walk [%d/%.2fs]\n",
"SNMP: Get[%d/%.2fs] Getnext [%d/%.2fs] Walk [%d/%.2fs]\n",
$snmp_stats['snmpget'],
$snmp_stats['snmpget_sec'],
$snmp_stats['snmpgetnext'],
$snmp_stats['snmpgetnext_sec'],
$snmp_stats['snmpwalk'],
$snmp_stats['snmpwalk_sec']
);