mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
Neil Lathwood
parent
24a0ee97a7
commit
acb1de5772
@@ -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']
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user