<br><tt><font size=2>xymon-bounces@xymon.com schrieb am 11.01.2012 18:08:36:<br>
<br>
> Von:</font></tt>
<br><tt><font size=2>> <br>
...</font></tt>
<br><tt><font size=2><br>
> perfdata.cgi - ships with Xymon 4.3.x. Dumps all of the data in the
RRD <br>
> files to a comma-separated file (CSV) that you can import into Excel
for <br>
> further processing.<br>
> <br>
> Hmm, I see it isn't documented. Anyway, I do the extract once a month
<br>
> with this script:<br>
> </font></tt>
<br><tt><font size=2>Are you sure? My slight modified version</font></tt>
<div>
<br>
<br><tt><font size=2>"#!/bin/sh</font></tt>
<br>
<br><tt><font size=2>START=`date '+%Y%m01' --date="1 month ago"`<br>
END=`date '+%Y%m01'`<br>
</font></tt>
<br><tt><font size=2>/home/xymon/server/bin/xymoncmd perfdata.cgi  $START
$END 2> fehlers | \<br>
    gzip > data-$END.gz</font></tt>
<br><tt><font size=2>exit"</font></tt>
<br>
<br><tt><font size=2>gives</font></tt>
<br>
<br><tt><font size=2>"2012-01-12 08:50:00 Using default environment
file /home/xymon/server/etc/xymonserver.cfg<br>
2012-01-12 08:50:00 Usage:<br>
perfdata.cgi HOSTNAME-PATTERN STARTTIME ENDTIME"</font></tt>
<br>
<br><tt><font size=2>Using a HOST variable as HOSTNAME-PATTERN in different
combinations</font></tt>
<br>
<br><tt><font size=2>HOST=%lscopy02 HOST=lscopy02(.local.domain) HOST="--page=lscopy02"</font></tt>
<br>
<br><tt><font size=2>gives no errors, but only an empty gz file. Tested
with xymon versions</font></tt>
<br><tt><font size=2>4.3.5/7. </font></tt>
<br>
<br><tt><font size=2>Any hints?</font></tt>
<br>
<br><tt><font size=2>Yours</font></tt>
<br><tt><font size=2>hjb</font></tt>
<br>
<br>
<br><tt><font size=2><br>
</font></tt></div>