- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有几百个 rrd,我想向所有这些 rrd 添加 5 个额外的数据源。
-- 索恩 --
David OBrien 在邮件列表中回复
在搜索文件(你应该首先完成)和谷歌搜索后,我发现有几个人使用这个......
使用 Perl。安装RRD:简单
#!/usr/local/bin/perl
use strict;
use RRD::Simple ();
my $rrd = RRD::Simple->new();
my $rrdfile=$ARGV[0];
my $source=$ARGV[1];
my $type=$ARGV[2];
chomp($type);
$rrd->add_source($rrdfile, $source => $type);
用法:
./addSource.pl file.rrd ds GAUGE
或者任何类型..
享受吧。
最佳答案
使用rrddump和rrdrestore。
就是这样:
rrdtool dump my.rrd > file.xml
./rrdAddDS.pl file.xml newDsName > new_file.xml
rrdtool restore new_file.xml my_new.rrd
您可以引用这里: http://osdir.com/ml/db.rrdtool.user/2003-08/msg00115.html
这里: http://www.docum.org/drupal/sites/default/files/add_ds_to_rrd.pl_.txt
关于rrdtool - 将新数据源添加到现有 RRD,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13476226/
当我尝试在 centos7 中安装 ganglia 时,出现以下错误 Configuring libmetrics ... checking for pthread_create in -lpthre
我有一个旧的 RRD 文件,该文件仅设置为跟踪 1 年的历史记录。我决定更多的历史会更好。我做了rrdtool调整大小,RRD现在更大了。我有这个 RRD 文件的旧备份,我想合并旧数据,以便最新的 R
我有几百个 rrd,我想向所有这些 rrd 添加 5 个额外的数据源。 这样做是否明智 最好的方法和最快的方法是什么 -- 索恩 -- David OBrien 在邮件列表中回复 在搜索文件(你应该首
我在使用 Visual Studio 2008 编译 rrdtool 时遇到问题。 我已经添加和提取了所有 zip 文件。 我打开 rrd.sln 并尝试为 3 个项目中的每一个构建解决方案; rrd
我正在使用 RRDTool,但它显示错误的值。我有一点Python脚本: import sys import rrdtool import time i = 0 rrdtool.create(
我有一些旧的 rrdtool 数据库,其确切的创建方法早已丢失。我需要创建一个与当前数据库具有相同特征的新数据库。我已经转储了几个旧数据库并仔细研究了内容,但我不确定如何解释元数据。我认为它出现在以下
我很想知道是否有任何替代 rrdtool 来记录时间序列数据的方法。我正在寻找可以扩展到大量设备进行监控的东西。 从我读到的关于这个主题的内容来看,当您使用大量数据访问 rrdtool 时,它会受到
是否可以通过基于多个 RRD 数据库的 RRDTool 获取数据,例如获取从每个 RRD 获得的所有值的总和的值? 最佳答案 fetch 函数一次只处理一个 rrd,但在 graph 和 xport
rrdtool的新手。我想看看在 RRD 图表上建立一条最佳拟合线所需的努力,以便我们可以检测长期趋势 - 即值(value)随着时间的推移而增加。我最近一直在使用 Perl 模块 Statistic
我正在使用 MRTG,并将其配置为使用 RRD 记录性能数据(这是一个交换机接口(interface)字节计数器)。当我使用“rrdtool info”检查 RRD 文件时,我看到 ds[ds0].l
我有一些 rrd 文件。我找到了一个为这个 rdd 绘制图形的 cgi 脚本。您可以选择(从绘制图表的网页)是否查看最近一小时、一天、一周或一年的图表。我知道单个 rrd 中可能有更多的 rra。我在
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我要修改我的 rrd 文件。特别是我会在精确的时间戳修改一个或多个数据源数据。我尝试使用 rrdtool update 命令执行此操作但没有成功 你能帮帮我吗? 最佳答案 RRD 是一个 INSERT
我正在使用这段代码创建一个带有 RRD 的图表: #!/bin/sh rrdtool graph tempweek.png \ -s "now - 1 day" -e "now" \ DEF:temp
我希望使用 Python 和 RRD 从 MySQL 数据库中的数据创建图表。我看到有两个 RRD 接口(interface): RRDTool PyRRD 是否存在选择其中一个的一般偏好/理由?我知
已解决,进一步向下添加解决方案我一直在尝试使用 PyRRD 从连接到我的 Raspberry Pi 的热传感器的输出创建一个图表,但没有运气让实际数据显示在图表中(但创建了 png 文件)。我不确定这
我最近在试用神经节监控系统时接触到了 RRD。 Ganglia 将监控数据存储在 RRD 中。我只是想知道,从可伸缩性的角度来看,RRD 是如何工作的?如果我有可能存储大量数据怎么办。就像 gangl
我有一个 rrd 文件,其中存储了接口(interface)的 traffic_in 和 out 统计信息。 我想要的是我想要某个时间段内的最大值和最小值。 我正在尝试这个命令,但它给了我错误 ERR
我每小时填充一次 rrd 数据库。 该值在 rrd db 中成功更新,但没有更新到存档 每当我尝试使用 rrdfetch 获取数据时,它都会返回 NaN 并且 rrddump 也显示转储。 但 rrd
我使用 JavaMelody 工具来监控我的应用程序,但可用的时间线设置不合适。这意味着我只想获得快速时间线的监控分数,比如 30 分钟,但 JavaMelody 中的最低时间范围是 1 天。可能这个
我是一名优秀的程序员,十分优秀!