Index: html/images/apps/speedtest.png =================================================================== Kann nicht anzeigen: Dateityp ist als binär angegeben. svn:mime-type = application/octet-stream Property changes on: html/images/apps/speedtest.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: html/images/apps/speedtest_x2.png =================================================================== Kann nicht anzeigen: Dateityp ist als binär angegeben. svn:mime-type = application/octet-stream Property changes on: html/images/apps/speedtest_x2.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: html/includes/graphs/application/speedtest_download.inc.php =================================================================== --- html/includes/graphs/application/speedtest_download.inc.php (nicht existent) +++ html/includes/graphs/application/speedtest_download.inc.php (Arbeitskopie) @@ -0,0 +1,39 @@ + + * @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited + * + */ + +$app_graphs['default'] = array( + 'speedtest_download' => 'Download Bandwidth', + 'speedtest_upload' => 'Upload Bandwidth', + 'speedtest_jitter' => 'Jitter', + 'speedtest_latency' => 'Latency', + ); + +// EOF Index: includes/definitions/apps.inc.php =================================================================== --- includes/definitions/apps.inc.php (Revision 10344) +++ includes/definitions/apps.inc.php (Arbeitskopie) @@ -50,4 +50,5 @@ $config['app']['mongodb']['top'] = array('commands', 'queue', 'mem', 'network'); $config['app']['ceph']['top'] = array('osd', 'iops', 'speed'); $config['app']['icecast']['top'] = array('current', 'max'); +$config['app']['speedtest']['top'] = array('download', 'upload', 'jitter', 'latency'); // EOF Index: includes/definitions/rrdtypes.inc.php =================================================================== --- includes/definitions/rrdtypes.inc.php (Revision 10344) +++ includes/definitions/rrdtypes.inc.php (Arbeitskopie) @@ -2150,4 +2150,15 @@ ), ); +// Speedtest +$config['rrd_types']['speedtest'] = array( + 'file' => 'app-speedtest-%index%.rrd', + 'ds' => array( + 'download' => array('type' => 'GAUGE', 'min' => 0), + 'upload' => array('type' => 'GAUGE', 'min' => 0), + 'jitter' => array('type' => 'GAUGE', 'min' => 0), + 'latency' => array('type' => 'GAUGE', 'min' => 0), + ), +); + // EOF Index: includes/polling/applications/speedtest.inc.php =================================================================== --- includes/polling/applications/speedtest.inc.php (nicht existent) +++ includes/polling/applications/speedtest.inc.php (Arbeitskopie) @@ -0,0 +1,37 @@ + $download, + 'upload' => $upload, + 'jitter' => $jitter, + 'latency' => $latency, + )); + + rrdtool_update_ng($device, 'speedtest', array( + 'download' => $download, + 'upload' => $upload, + 'jitter' => $jitter, + 'latency' => $latency, + ), $app_id); + + unset($app_id, $download, $upload, $jitter, $latency); +} + +// EOF Index: scripts/agent-local/speedtest =================================================================== --- scripts/agent-local/speedtest (nicht existent) +++ scripts/agent-local/speedtest (Arbeitskopie) @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +print('<<>>') + +import json + +with open('/tmp/speedtest.json') as f: + data = json.load(f) + +#print download +print(str(data['download']['bandwidth']*8)); + +#print upload +print(str(data['upload']['bandwidth']*8)); + +#print jitter +print(str(data['ping']['jitter'])); + +#print latency +print(str(data['ping']['latency'])); Property changes on: scripts/agent-local/speedtest ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property