@ 2013-09-16T17:09:46Z <?php
$opts = array( "--start", "-1d", "--vertical-label=B/s",
"DEF:inoctets=net1.rrd:input:AVERAGE",
"DEF:outoctets=net1.rrd:output:AVERAGE",
"AREA:inoctets#00FF00:In traffic",
"LINE1:outoctets#0000FF:Out traffic\\r",
"CDEF:inbits=inoctets,8,*",
"CDEF:outbits=outoctets,8,*",
"COMMENT:\\n",
"GPRINT:inbits:AVERAGE:Avg In traffic\: %6.2lf %Sbps",
"COMMENT: ",
"GPRINT:inbits:MAX:Max In traffic\: %6.2lf %Sbps\\r",
"GPRINT:outbits:AVERAGE:Avg Out traffic\: %6.2lf %Sbps",
"COMMENT: ",
"GPRINT:outbits:MAX:Max Out traffic\: %6.2lf %Sbps\\r"
);
$opts2 = array ("--json","--start", "1378750426", "--end", "N",
"DEF:myseepd=net1.rrd:input:AVERAGE",
"XPORT:myspeed"
);
$ret = rrd_graph("net_1d.gif", $opts, count($opts));
$js = rrd_xport($opts2);
if( !is_array($ret) )
{
$err = rrd_error();
echo "rrd_graph() ERROR: $err\n";
}
echo $js;
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.20 , 7.2.0 - 7.2.33 , 7.3.12 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Fatal error: Uncaught Error: Call to undefined function rrd_graph() in /in/k8t9Z:24
Stack trace:
#0 {main}
thrown in /in/k8t9Z on line 24
Process exited with code 255 . Output for 5.3.0 - 5.3.29 , 5.4.0 - 5.4.45 , 5.5.0 - 5.5.38 , 5.6.0 - 5.6.30 Fatal error: Call to undefined function rrd_graph() in /in/k8t9Z on line 24
Process exited with code 255 . preferences:dark mode live preview
213.01 ms | 402 KiB | 318 Q