Xymon Mailing List Archive search

export usage reports for management

list Hermann-Josef Beckers
Thu, 12 Jan 2012 09:02:01 +0100
Message-Id: <user-3ab9175ac679@xymon.invalid>

xymon-bounces at xymon.com schrieb am 11.01.2012 18:08:36:
Von:
...
perfdata.cgi - ships with Xymon 4.3.x. Dumps all of the data in the RRD files to a comma-separated file (CSV) that you can import into Excel for 
further processing.

Hmm, I see it isn't documented. Anyway, I do the extract once a month with this script:
Are you sure? My slight modified version

"#!/bin/sh

START=`date '+%Y%m01' --date="1 month ago"`
END=`date '+%Y%m01'`

/home/xymon/server/bin/xymoncmd perfdata.cgi  $START $END 2> fehlers | \
    gzip > data-$END.gz
exit"

gives

"2012-01-12 08:50:00 Using default environment file /home/xymon/server/etc/xymonserver.cfg
2012-01-12 08:50:00 Usage:
perfdata.cgi HOSTNAME-PATTERN STARTTIME ENDTIME"

Using a HOST variable as HOSTNAME-PATTERN in different combinations

HOST=%lscopy02 HOST=lscopy02(.local.domain) HOST="--page=lscopy02"

gives no errors, but only an empty gz file. Tested with xymon versions
4.3.5/7. 
Any hints?

Yours
hjb