/usr/share/doc/php5-rrd/examples/php5-rrdtool-create.php is in php5-rrd 1.1.3-1+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <?php
$rrdFile = "/tmp/net.rrd";
$opts = array(
"--start",920804400,
"DS:speed:COUNTER:600:U:U",
"RRA:AVERAGE:0.5:1:24",
"RRA:AVERAGE:0.5:6:10"
);
//create rrd file
$ret = rrd_create($rrdFile, $opts);
if( $ret == 0 )
{
$err = rrd_error();
echo "Create error: $err\n";
}
?>
|