Xymon Mailing List Archive search

Problem with bbgen pre-built reports

list Henrik Størner
Tue, 25 Oct 2005 22:13:46 +0200
Message-Id: <user-60e99489980e@xymon.invalid>

On Tue, Oct 25, 2005 at 05:57:04PM +0200, Frédéric Mangeant wrote:
I'm trying to use Hobbit 4.1.2 in report-generation mode, as I was doing previously with bbgen 2.x / 3.x
Should work exactly the same.
but I'm having a strange problem with start & end dates...

START=`date +%s --date="01 sep 2005 00:00:00"`
END=`date +%s --date="30 sep 2005 23:59:59"`

/hobbit/server/bin/bbcmd --env=/hobbit/server/etc/hobbitserver.cfg \
       bbgen --reportopts==$START:$END:1:all \
       --subpagecolumns=2 \
       --pages-last \
       --pagetext-headings \
       /hobbit/server/www/reports-test/


The report is built from august, 9 to october, 25. 
This one was tricky ... I cut-and-pasted your commands and had the same
error, which puzzled me for a bit.

If you look closely at the "--reportopts", you'll notice a double equal-sign. That's what is causing the problem.

There's actually a script included with Hobbit - hobbitreports.sh - which generates daily, weekly and monthly availability reports.
Perhaps you could use that as a template ?


Regards,
Henrik