Xymon Mailing List Archive search

export usage reports for management

list Henrik Størner
Thu, 12 Jan 2012 09:26:29 +0100
Message-Id: <user-e88b541fc7a8@xymon.invalid>

On 12-01-2012 09:02, Hermann-Josef Beckers wrote:
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"
I should know better than to show commands without trying them ...

This one has been tested:
   xymoncmd perfdata.cgi --page=. $START $END --csv=','

Sorry 'bout that.


Regards,
Henrik