rrd_update
(PECL rrd >= 0.9.0)
rrd_update — 更新 RRD 数据库
参数
filename
-
RRD 数据库文件名。要更新的数据库。
options
-
更新 RRD 数据库的可选项。是一个字符串列表。查看 rrd update 的 man 页面以获取完整的选项列表。
+添加备注
用户贡献的备注 1 note
m[dot]reza[dot]hamedany[at]gmail[dot]com ¶
7 years ago
class rrdUpdate {
public function rrdFilesUpdate($id,$value){
$rrdFile ="/path/to/file/".$id.rrd;
$time = time();
$ret = rrd_update($rrdFile, "$time:$value");
return $ret;
if (!$ret) {
echo "<b>update error: </b>" . rrd_error() . "\n";
}
}
}