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