mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
Fix: Apache SNMP extend IndexError (#116)
See issue for more information: https://github.com/librenms/librenms-agent/issues/95
This commit is contained in:
committed by
Daniel Preussker
parent
2996ad88b0
commit
7fb48df857
@ -60,7 +60,7 @@ for line in data.splitlines():
|
||||
elif fields[0] == 'Total kBytes':
|
||||
# turn into base (byte) value
|
||||
params[fields[0]] = int(fields[1])*1024
|
||||
else:
|
||||
elif len(fields) > 1:
|
||||
# just store everything else
|
||||
params[fields[0]] = fields[1]
|
||||
|
||||
|
Reference in New Issue
Block a user