<div dir="ltr">On 17 May 2013 15:46, deepak deore <span dir="ltr"><<a href="mailto:deepakdeore2004@gmail.com" target="_blank">deepakdeore2004@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Where can I specify <span style="font-family:arial,sans-serif;font-size:13px">a value of "-43200:27:16.7" ?</span></div>


<div><div><div class="gmail_extra"><br></div></div></div></blockquote><div><br></div><div>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.</div>


<div><br></div><div>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.</div>


<div><br></div><div>So, let's say you have tasks.cfg like so (some lines removed):</div><div><br></div><font face="courier new, monospace">[rrdstatus]<br>  CMD xymond_channel --channel=status --log=$XYMONSERVERLOGS/rrd-status.log --filter=(?!\.foo\s) </font><span style="font-family:'courier new',monospace">xymond_rrd</span><span style="font-family:'courier new',monospace"> </span><span style="font-family:'courier new',monospace">--rrddir=$XYMONVAR/rrd</span></div>

<div class="gmail_quote"><font face="courier new, monospace"><br>[rrdstatus_foo]<br>  CMD xymond_channel --channel=status --log=$XYMONSERVERLOGS/rrd-status_foo.log --filter=</font><span style="font-family:'courier new',monospace">(?\.foo\s)</span><font face="courier new, monospace"> </font><span style="font-family:'courier new',monospace">TZ=XYZ+10</span><span style="font-family:'courier new',monospace"> </span><span style="font-family:'courier new',monospace">xymond_rrd --rrddir=$XYMONVAR/rrd</span></div>

<div class="gmail_quote"><div><br></div><div style>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:</div>

<div style><br></div><div style>  $ date; TZ=XYZ+10 date</div><div style><br></div><div style>I haven't tested this, so it might now work.  But it might.</div><div style><br></div><div>J</div><div><br></div></div>
</div></div>