graphs with diff date's data
My client script returns the data once in a day in NCV format but that data is of yesterday's date.
If I add as it is then xymon graph will show that data as present day's data.
How can I tell rrd that the data is last day's data so that it will show with correct date?
Thanks, Deepak
anyone has any info about it ?
On Thu, May 9, 2013 at 11:56 AM, deepak deore <deepakdeore2004 at gmail.com>wrote:
My client script returns the data once in a day in NCV format but that data is of yesterday's date.
If I add as it is then xymon graph will show that data as present day's data.
How can I tell rrd that the data is last day's data so that it will show with correct date?
Thanks, Deepak
On 9 May 2013 16:26, deepak deore <deepakdeore2004 at gmail.com> wrote:
My client script returns the data once in a day in NCV format but that data is of yesterday's date.
If I add as it is then xymon graph will show that data as present day's data.
How can I tell rrd that the data is last day's data so that it will show with correct date?
I don't think Xymon supports this. The rrdupdate tool that Xymon uses allows specifying a timestamp or negative offset along with the data. So you can specify a value of "-43200:27:16.7" which enters the values of 27 and 16.7, but sets the timestamp to "now - 12 hours". Alas, I don't think we have the ability to feed this into rrdupdate.
Cheers Jeremy
Where can I specify a value of "-43200:27:16.7" ?
On Mon, May 13, 2013 at 7:10 AM, Jeremy Laidman <jlaidman at rebel-it.com.au>wrote:
On 9 May 2013 16:26, deepak deore <deepakdeore2004 at gmail.com> wrote:
My client script returns the data once in a day in NCV format but that data is of yesterday's date.
If I add as it is then xymon graph will show that data as present day's data.
How can I tell rrd that the data is last day's data so that it will show with correct date?
I don't think Xymon supports this. The rrdupdate tool that Xymon uses allows specifying a timestamp or negative offset along with the data. So you can specify a value of "-43200:27:16.7" which enters the values of 27 and 16.7, but sets the timestamp to "now - 12 hours". Alas, I don't think we have the ability to feed this into rrdupdate.
Cheers Jeremy
On 17 May 2013 15:46, deepak deore <deepakdeore2004 at gmail.com> wrote:
Where can I specify a value of "-43200:27:16.7" ?
Only to the rrdupdate tool, not in Xymon. You would have to write your own ncv2rrd script that parsed the NCV lines from status messages and injected them into an RRD file using rrdupdate. I really don't believe you can do this with only standard Xymon.
But perhaps this can be hacked around. If you were to run two instances of xymond_rrd, and one was dedicated to only the NCV messages you need adjusted, then you could run it with an adjusted TZ variable so that it thinks the messages are coming in at a different time to when they are.
So, let's say you have tasks.cfg like so (some lines removed):
[rrdstatus] CMD xymond_channel --channel=status --log=$XYMONSERVERLOGS/rrd-status.log --filter=(?!\.foo\s) xymond_rrd --rrddir=$XYMONVAR/rrd
[rrdstatus_foo] CMD xymond_channel --channel=status --log=$XYMONSERVERLOGS/rrd-status_foo.log --filter=(?\.foo\s) TZ=XYZ+10 xymond_rrd --rrddir=$XYMONVAR/rrd
Note that the first entry is the original version, but with a "--filter" definition, with a negative assertion to match status messages not with "foo" as the test name. The second entry is the same, but with a positive assertion to pick up all of the entries skipped by the first entry. It also sets the timezone environment for xymond_rrd to ten hours ahead, which (hopefully) makes it generate timestamps 10 hours ahead. You'll want to experiment with the offset to suit, perhaps by running this command until you get it right:
$ date; TZ=XYZ+10 date
I haven't tested this, so it might now work. But it might.
J
participants (2)
-
deepakdeore2004@gmail.com
-
jlaidman@rebel-it.com.au