Xymon Mailing List Archive search

graphs with diff date's data

5 messages in this thread

list Deepak Deore · Thu, 9 May 2013 11:56:28 +0530 ·
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
list Deepak Deore · Fri, 10 May 2013 20:01:17 +0530 ·
anyone has any info about it ?
quoted from Deepak Deore


On Thu, May 9, 2013 at 11:56 AM, deepak deore <user-7b03b2a1ee70@xymon.invalid>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
list Jeremy Laidman · Mon, 13 May 2013 11:40:56 +1000 ·
quoted from Deepak Deore
On 9 May 2013 16:26, deepak deore <user-7b03b2a1ee70@xymon.invalid> 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
list Deepak Deore · Fri, 17 May 2013 11:16:43 +0530 ·
Where can I specify a value of "-43200:27:16.7" ?
quoted from Jeremy Laidman


On Mon, May 13, 2013 at 7:10 AM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid>wrote:
On 9 May 2013 16:26, deepak deore <user-7b03b2a1ee70@xymon.invalid> 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

list Jeremy Laidman · Mon, 20 May 2013 14:34:37 +1000 ·
On 17 May 2013 15:46, deepak deore <user-7b03b2a1ee70@xymon.invalid> 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