note 129080 added to function.rrd-xport

From: Date: Fri, 01 Dec 2023 09:45:19 +0000
Subject: note 129080 added to function.rrd-xport
Groups: php.notes 
Request: Send a blank email to php-notes+get-221034@lists.php.net to get a copy of this message
A small example of connecting to an rrdcached daemon (This one running on localhost, but works across network as well) and getting in and output bits from an interface. $options = array( '--daemon', '127.0.0.1:42217', '--start', time() - 3600, 'DEF:in_oct=rrdfile.rrd:INOCTETS:AVERAGE', 'DEF:out_oct=rrdfile.rrd:OUTOCTETS:AVERAGE', 'CDEF:in_bits=in_oct,8,*', 'CDEF:out_bits=out_oct,8,*', 'XPORT:in_bits', 'XPORT:out_bits' ); $result = rrd_xport($options); var_dump($result); ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.157.134 (proxied: 178.72.18.131) ---- Manual Page -- https://php.net/manual/en/function.rrd-xport.php Edit -- https://main.php.net/note/edit/129080 Del: integrated -- https://main.php.net/note/delete/129080/integrated Del: useless -- https://main.php.net/note/delete/129080/useless Del: bad code -- https://main.php.net/note/delete/129080/bad+code Del: spam -- https://main.php.net/note/delete/129080/spam Del: non-english -- https://main.php.net/note/delete/129080/non-english Del: in docs -- https://main.php.net/note/delete/129080/in+docs Del: other reasons-- https://main.php.net/note/delete/129080 Reject -- https://main.php.net/note/reject/129080 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221034) next »