<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">in your rrdef.cfg file, Is your key
correct? Is the column you are reporting really
[httpd_threads/15]? This key is what it matches against your
column. If your key is [httpd_threads/15] but the column is
"httpd_threads" (without the "/15"), then the rrd will be created
with the default "[]" definition.<br>
<br>
<br>
<pre class="moz-signature" cols="72">Michael Beatty
Sherwin-Williams
IT Analyst/Developer
<a class="moz-txt-link-abbreviated" href="mailto:michael.beatty@sherwin.com">michael.beatty@sherwin.com</a>
216-515-7374
</pre>
On 02/08/2013 09:06 AM, Nico wrote:<br>
</div>
<blockquote
cite="mid:994067EC-A9AF-4530-84B6-677F95F1C9B0@lienard.name"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hi,
<div><br>
</div>
<div>i tried "-s" trick and i also checked the man of rrdcreation
which made a reference of your suggestion:
<div><br>
</div>
<div>
<div> --step|-s step (default: 300 seconds)</div>
<div> Specifies the base interval in seconds with which
data will be fed into the RRD.</div>
<div><br>
</div>
<div><br>
</div>
<div>i tried to add both in rrddefinitions.cfg :</div>
<div><br>
</div>
<div>
<div>[httpd_threads/15]</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>--step
5</div>
<div> RRA:AVERAGE:0.5:60:576</div>
<div> RRA:AVERAGE:0.5:360:576</div>
<div> RRA:AVERAGE:0.5:1440:576</div>
<div> RRA:AVERAGE:0.5:17280:576</div>
</div>
<div><br>
</div>
<div>or </div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>[httpd_threads/15]</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>-
s 5</div>
<div> RRA:AVERAGE:0.5:60:576</div>
<div> RRA:AVERAGE:0.5:360:576</div>
<div> RRA:AVERAGE:0.5:1440:576</div>
<div> RRA:AVERAGE:0.5:17280:576</div>
</div>
<div><br>
</div>
<div>But it doesn't change anything, the RRD file is still
created with 300.</div>
<div><br>
</div>
<div>What s wrong ?</div>
<div><br>
</div>
<div>Cheers</div>
<div>Nico</div>
<div><br>
</div>
<div>
<div>Le 8 févr. 2013 à 14:57, Nico <<a
moz-do-not-send="true"
href="mailto:nicolas@lienard.name">nicolas@lienard.name</a>>
a écrit :</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div style="word-wrap: break-word; -webkit-nbsp-mode:
space; -webkit-line-break: after-white-space; ">Hi
<div><br>
</div>
<div>Thanks for answer.</div>
<div><br>
</div>
<div>I updated the rrddefinitons.cfg with your
recommandations :</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>[httpd_threads/15]</div>
<div> -s 5</div>
<div> RRA:AVERAGE:0.5:60:576</div>
<div> RRA:AVERAGE:0.5:360:576</div>
<div> RRA:AVERAGE:0.5:1440:576</div>
<div> RRA:AVERAGE:0.5:17280:576</div>
<div><br>
</div>
<div>Then i restarted xymon server (it is needed ? in
doubt i did it).</div>
<div><br>
</div>
<div>I also deleted the previous RRD file to see how
is created a fresh one after the modification:</div>
<div><br>
</div>
<div>
<div><?xml version="1.0" encoding="utf-8"?></div>
<div><!DOCTYPE rrd SYSTEM "<a
moz-do-not-send="true"
href="http://oss.oetiker.ch/rrdtool/rrdtool.dtd">http://oss.oetiker.ch/rrdtool/rrdtool.dtd</a>"></div>
<div><!-- Round Robin Database Dump --></div>
<div><rrd></div>
<div> <version>0003</version></div>
<div> <step><b>300</b></step>
<!-- Seconds --></div>
<div>
<lastupdate>1360331300</lastupdate>
<!-- 2013-02-08 14:48:20 CET --></div>
<div><br>
</div>
<div> <ds></div>
<div> <name> threads
</name></div>
<div> <type> GAUGE
</type></div>
<div> <minimal_heartbeat><b>5</b></minimal_heartbeat></div>
<div> <min>NaN</min></div>
<div> <max>NaN</max></div>
<div><br>
</div>
<div> <!-- PDP Status --></div>
<div>
<last_ds>32</last_ds></div>
<div>
<value>3.1000000000e+03</value></div>
<div> <unknown_sec> 105
</unknown_sec></div>
<div> </ds></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Unfortunately, it is still a step of 300.</div>
<div><br>
</div>
<div>What did i miss ?</div>
<div><br>
</div>
<div>Thanks again.</div>
<div><br>
</div>
<div><br>
</div>
<div>Cheers</div>
<div>Nico</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>Le 8 févr. 2013 à 14:19, Michael Beatty <<a
moz-do-not-send="true"
href="mailto:Michael.Beatty@sherwin.com">Michael.Beatty@sherwin.com</a>>
a écrit :</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">The 5 in your DS is
your heartbeat, not step.<br>
<br>
Put a -s parameter in rrddefinitions.cfg ie:<br>
<br>
[httpd_treads/5]<tt><br>
-s 5<br>
</tt>RRA:AVERAGE:0.5:60:576
<div> RRA:AVERAGE:0.5:360:576</div>
<div> RRA:AVERAGE:0.5:1440:576</div>
<div> RRA:AVERAGE:0.5:17280:576</div>
<div><br>
</div>
<div><br>
</div>
This will change your step to 5 seconds.
Note, that you will probably want to change
your heartbeat to a value greater than your
step. By setting your heartbeat = step, you
are running a probable scenario of missing
data. Your heartbeat should be greater than
your step, I'd recommend double, if not
triple.<tt><br>
<br>
</tt>Both step and heartbeat are set when the
rrd file is created, you cannot change them on
the fly. If you do not wish to lose existing
data, you will need to run "rrdtool tune -h
threads:10" to change your heartbeat. Then,
you will need to dump your rrd to a file, edit
the xml step with a text editor, then restore
your rrd from the edited xml,<br>
<br>
rrdtool dump httpd_threads.rrd >
threads.xml<br>
edit the threads.xml setting step to 5<br>
rrdtool restore threads.xml httpd_threads.rrd<tt><br>
<br>
</tt>If you plan on doing this on several
hosts, or plan on doing it frequently, I
suggest you write a script and utilize the
xymon grep utility.... it will make your life
considerably easier.<tt><br>
<br>
<br>
<br>
</tt>
<pre class="moz-signature" cols="72">Michael Beatty
Sherwin-Williams
IT Analyst/Developer
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:michael.beatty@sherwin.com">michael.beatty@sherwin.com</a>
216-515-7374
</pre>
On 02/07/2013 02:59 PM, Nico wrote:<br>
</div>
<blockquote
cite="mid:805ED522-98D6-46FE-84F1-8D62F05C015B@lienard.name"
type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
Hi
<div><br>
</div>
<div>I need to do a temporarily graph with a
very low frequency : 5 seconds instead of
the regular 300 seconds.</div>
<div><br>
</div>
<div>1/ On client side, the external script is
simple:</div>
<div><br>
</div>
<div>
<div>[ buda ext]# cat httpd_threads.sh </div>
<div>#!/bin/bash</div>
<div>THREADS_HTTP=`ps -ef | grep -c [h]ttpd`</div>
<div>LINE="data $MACHINE.trends</div>
<div>[httpd_threads.rrd]</div>
<div>DS:threads:GAUGE:5:U:U $THREADS_HTTP"</div>
<div>$BB $BBDISP "$LINE"</div>
<div><br>
</div>
</div>
<div>So, as you can see, the step is 5 in the
DS.</div>
<div><br>
</div>
<div>clientlaunch.cfg has "INTERVAL 5s".</div>
<div><br>
</div>
<div>2/ On Xymon server side : </div>
<div><br>
</div>
<div>rrddefinitions.cfg :</div>
<div>
<div><br>
</div>
<div>
<div># step = 5 seconds</div>
<div>[httpd_threads/5]</div>
<div> # 576 * 60 * 5 sec = 48 h
soit 2 jours sans perte</div>
<div> RRA:AVERAGE:0.5:60:576</div>
<div> RRA:AVERAGE:0.5:360:576</div>
<div> RRA:AVERAGE:0.5:1440:576</div>
<div> RRA:AVERAGE:0.5:17280:576</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div># This one is the default setup. You
can change it, if you like.</div>
<div>[]</div>
<div> # 576 datapoints w/ 5 minute
interval = 48 hours @ 5 min avg.</div>
<div> RRA:AVERAGE:0.5:1:576</div>
<div> # 576 datapoints w/ 6*5
minute averaged = 12 days @ 30 min avg.</div>
<div> RRA:AVERAGE:0.5:6:576</div>
<div> # 576 datapoints w/ 24*5
minute averaged = 48 days @ 2 hour avg.</div>
<div> RRA:AVERAGE:0.5:24:576</div>
<div> # 576 datapoints w/ 288*5
minute averaged = 576 days @ 1 day avg.</div>
<div> RRA:AVERAGE:0.5:288:576</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>3/ RRD created:</div>
<div><br>
</div>
<div>here the issue, the step is still 300.
The minimal_heartbeat is 5.</div>
<div><br>
</div>
<div>rrdtool dump httpd_threads.rrd</div>
<div><br>
</div>
<div><br>
</div>
<div><?xml version="1.0"
encoding="utf-8"?></div>
<div><!DOCTYPE rrd SYSTEM "<a
moz-do-not-send="true"
href="http://oss.oetiker.ch/rrdtool/rrdtool.dtd">http://oss.oetiker.ch/rrdtool/rrdtool.dtd</a>"></div>
<div><!-- Round Robin Database Dump
--></div>
<div><rrd></div>
<div>
<version>0003</version></div>
<div> <step><b>300</b></step>
<!-- Seconds --></div>
<div>
<lastupdate>1360264485</lastupdate>
<!-- 2013-02-07 20:14:45 CET --></div>
<div><br>
</div>
<div> <ds></div>
<div> <name> threads
</name></div>
<div> <type> GAUGE
</type></div>
<div>
<minimal_heartbeat>5</minimal_heartbeat</div>
</div>
<div><br>
</div>
<div>--- snip ---</div>
<div><br>
</div>
<div><br>
</div>
<div>How can i change the step to 5 instead of
300 ?</div>
<div><br>
</div>
<div>Thanks for your help.</div>
<div><br>
</div>
<div><br>
</div>
<div>Cheers</div>
<div>Nico</div>
<div><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Xymon mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a>
</pre>
</blockquote>
<br>
<br>
</div>
_______________________________________________<br>
Xymon mailing list<br>
<a moz-do-not-send="true"
href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a moz-do-not-send="true"
href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
Xymon mailing list<br>
<a moz-do-not-send="true" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a moz-do-not-send="true"
href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
<br>
</body>
</html>