1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00
Félim Whiteley 84630dfb84 Fix for first line as localhost (#130)
An example output like below where the first line of output is just "localhost" so it causes the splitting to cause an out of index error.

Example:
cat /tmp/apache-snmp
localhost
ServerVersion: Apache/2.4.25 (Ubuntu) PHP/5.6.30-5+deb.sury.org~trusty+2
ServerMPM: prefork
Server Built: 2016-12-21T00:00:00
CurrentTime: Thursday, 18-May-2017 19:26:43 EDT
RestartTime: Thursday, 18-May-2017 11:35:48 EDT
ParentServerConfigGeneration: 2
ParentServerMPMGeneration: 1
ServerUptimeSeconds: 28255
ServerUptime: 7 hours 50 minutes 55 seconds
Load1: 0.04
Load5: 0.05
Load15: 0.10
Total Accesses: 5367
Total kBytes: 61432
CPUUser: 19.69
CPUSystem: 1.05
CPUChildrenUser: 0
CPUChildrenSystem: 0
CPULoad: .0734029
Uptime: 28255
ReqPerSec: .189949
BytesPerSec: 2226.38
BytesPerReq: 11721
BusyWorkers: 1
IdleWorkers: 6
Scoreboard: ___....._.__.W........................................................................................................................................
2017-05-31 22:23:38 +01:00
..
2017-05-04 08:06:32 +01:00
2016-08-22 01:45:23 +03:00
2017-05-02 10:22:19 +01:00
2017-01-20 08:47:30 +00:00
2017-02-24 11:09:21 -06:00
2017-03-03 14:49:15 +00:00
2017-03-03 14:49:15 +00:00
2016-09-12 12:48:17 +03:00
2017-03-03 20:41:38 +00:00
2017-02-17 16:37:00 +01:00
2017-03-29 23:00:26 +01:00
2017-03-01 23:46:13 +00:00
2017-04-27 20:54:55 +01:00
2017-03-03 18:55:55 +00:00
2017-03-19 18:03:59 +00:00
2016-09-25 14:28:00 +01:00
2016-12-03 14:16:54 +10:00