From: Stricted Date: Wed, 15 Jul 2015 18:46:12 +0000 (+0200) Subject: add missing file X-Git-Tag: 1.0.1~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aed690e4966e220e0b47750aa30da85182cf0a13;p=GitHub%2FStricted%2Fspeedport-hybrid-php-api.git add missing file --- diff --git a/.gitignore b/.gitignore index 9dcd53d..c11eeee 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,3 @@ tests/config.php tests/test.php .komodotools *.komodoproject -rrd.php diff --git a/rrd/rrd.php b/rrd/rrd.php new file mode 100644 index 0000000..6d161cd --- /dev/null +++ b/rrd/rrd.php @@ -0,0 +1,22 @@ +getData('dsl'); +shell_exec('rrdtool update '.$path.'dsl.rrd --template uactual:dactual:uattainable:dattainable:uSNR:dSNR:uLine:dLine:uCRC:dCRC:uHEC:dHEC N:'.$data['Line']['uactual'].':'.$data['Line']['dactual'].':'.$data['Line']['uattainable'].':'.$data['Line']['dattainable'].':'.$data['Line']['uSNR'].':'.$data['Line']['dSNR'].':'.$data['Line']['uLine'].':'.$data['Line']['dLine'].':'.$data['Line']['uCRC'].':'.$data['Line']['dCRC'].':'.$data['Line']['uHEC'].':'.$data['Line']['dHEC']); + +$data = $sp->getData('lteinfo'); +shell_exec('rrdtool update '.$path.'lteinfo.rrd --template rsrp:rsrq N:'.$data['rsrp'].':'.$data['rsrq']); + +$sp->logout();