<div dir="ltr">Ralph's suggestion looks very interesting, and means you can have it apply to any and all clients without having to make changes to each one.<div><br></div><div>In case you can't get it working for some reason, I think something client-side like the following might work:<div>

<br></div><div>#!/bin/sh</div><div>die() { echo "$@" >&2; exit 1; }<br></div><div>[ "$XYMON" -a "$XYMONSRV" -a "$MACHINE" ] || die "Please run within a Xymon environment"</div>

<div>VALUES=`get_values`  # gets 5 numbers<br></div><div>set - ""$SAMPLES</div><div>[ $# -eq 5 ] || die "Value count $# was not 5: $VALUES"</div><div>SLEEP=0</div><div>DELAY=60 # 300/5+1</div><div>for VALUE in $VALUES; do</div>

<div>    MSG=`printf "data $MACHINE.trends\n[filename.rrd]\nDS:dsname:$DELAY:U:U $VALUE\n"`</div><div>    ( sleep $SLEEP; echo "$MSG" | $XYMON $XYMSRV @ ) &<br></div><div>    let SLEEP=$SLEEP+$DELAY</div>

<div>done</div></div><div><br></div><div>This should fire off 5 background tasks, each waiting a multiple of 60 seconds before sending in their value to the RRD collector, thus staggering the updates across the next 5 minutes.</div>

<div><br></div><div>J</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 August 2014 01:22, David Welker <span dir="ltr"><<a href="mailto:dewelker@gmail.com" target="_blank">dewelker@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This sounded like a great idea, so I got the status showing up via the extra-scripts option, but the info on the data message is a little vague.  According to the example, I just echo the DS statements, then the dataset name on a line by itself, followed by the data for one dataset on a line by itself, which doesn't seem to do anything in the way of creating any of the multiple rrds I need, nor does it address the time consideration for multple values (I need to insert 5 values a minute apart  from 5 mins. before putting them into the rrd - I know this can be done with the rrdtool update command, but can it be done here somehow?)  Anybody have an example of a multi-dataset case being run via the extra-scripts option of the xymond_rrd they'd be willing to share?<div>


<br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div>David</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 15, 2014 at 10:09 AM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">You could do that server-side.  Look at the man page for xymond_rrd. The --extra-script option allows you to pipe incoming data through a script to process. You could take the report time and subtract 1 min, 2 min, etc, then emit rrd updates as required.  The client would still send all 5 values at the same time, but they'd be recorded as if received over the preceding 5 minute block.</p>




<p dir="ltr">Ralph Mitchell </p>
<div class="gmail_quote"><div><div>On Aug 15, 2014 9:55 AM, "David Welker" <<a href="mailto:dewelker@gmail.com" target="_blank">dewelker@gmail.com</a>> wrote:<br type="attribution"></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr">I've been looking, but haven't seen anything in the documentation, on the website, or in the mailing list that addresses this:<div><br></div><div>I need to monitor 5 values that are received all at the same time.  I'd like to insert the values at one minute intervals getting a consolidated data point (CDP) every 5 minutes that I can graph.</div>




<div><br></div><div>For example, I ping a host via client script, 5 times, returning all of the data at one time.  I want to put all 5 values in the database (rrd), but spaced apart every minute so I get a decent CDP. I could probably do this if this was on the server (could I?), but the script HAS to be on the client in this case.  Is this even doable?</div>




<div><br></div><div>Thanks, in advance, for any suggestions!</div><div><br></div><div>David</div></div>
<br></div></div>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>