rrdtool update 语法
rrdtool update filename [--template|-t ds-name[:dsname]...] N|timestamp:value[:value...]
filename RRD数据库文件名称
--template|-t ds-name[:ds-name] 要更新RRD数据库中数据源的名称,其中-t指定数据源的顺序
N|timestamp:value[:value...] 时间:要更新的值,N表示当前时间。
案例:
rrdtool update test.rrd N:123456
可以利用bash脚本的RANDOM自动生成随机数
#!/bin/bash
#
while true;do
rrdtool update test.rrd N:$RANDOM
sleep 5s
done
RRDTool获取数据笔记
原文:http://374721.blog.51cto.com/364721/1617603