[mrtg] Gauge values

Thierry Silly thierry.silly at db.com
Fri Feb 9 12:15:37 MET 2001



Hello,

     I'am using both MRTG and rrdtool (each separately) with gauge values.
In fact, in MRTG, I run a perl script in the target which return values that I don't want to be modified.

My problem is that the values are modified, and I don't understand why.

The values returned by my script to mrtg are correctly entered to the log file, but the values at the bottom of the graph are wrong.


In rrdtool, it's the same problem, the first value entered in the rrd file is right, but all the other values are wrong.

It seems that there is somewhere something which devide the values by about 1.024.

Have someone already experience that problem ?
 Is it a problem or do rateup or rrdtool calculate something even with gauge values ?


Many thanks in advance for your answers,
You can find below the way I create/update rrdtool in my perl script.
Best Regards,
Thierry Silly

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$t1= time();
$statime=$t1-10;
$stetime=300;

#@args=($rrd,'-b',$statime,'-s',$stetime,"DS:in:GAUGE:600:U:U","DS:out:GAUGE:600:U:U","RRA:LAST:0.5:1:250");


#RRDs::create(@args);

$lastime=RRDs::last($rrd);
$lastime=$lastime+300;

RRDs::update ("$rrd", "--template", "in:out", "N:$resfin:$resfin");





--

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list