Xymon Mailing List Archive search

Where do I put the documentation/help for user-written tests?

4 messages in this thread

list Tom Kauffman · Mon, 2 May 2005 15:31:59 -0500 ·
This used to go in $BBHOME/www/notes -- but hobbit is returning "No
match".

OK, I found it under $HOBBITHOME/server/etc in columndoc.csv. Now --
we've a couple of in-house generated tests documented in
www/notes/<test>.html -- among other things, these docs include urls to
recovery documentation. I'm not real comfortable with trying to shoehorn
this into a common csv file.

Suggestions?

TIA

Tom
list Henrik Størner · Mon, 2 May 2005 23:03:41 +0200 ·
quoted from Tom Kauffman
On Mon, May 02, 2005 at 03:31:59PM -0500, Kauffman, Tom wrote:
This used to go in $BBHOME/www/notes -- but hobbit is returning "No
match".
Uhm, no - they used to go in $BBHOME/www/help/ actually. That should
still work, I believe, but the COLUMNDOCURL setting in hobbitserver.cfg
overrides it and makes it point to the /hobbit-cgi/hobbitcolumn.sh CGI
script.
quoted from Tom Kauffman
OK, I found it under $HOBBITHOME/server/etc in columndoc.csv. Now --
we've a couple of in-house generated tests documented in
www/notes/<test>.html -- among other things, these docs include urls to
recovery documentation. I'm not real comfortable with trying to shoehorn
this into a common csv file.

Suggestions?
Change the hobbitcolumn.sh CGI script. It's passed only one parameter in
the QUERY_STRING environment - the name of the column. So you could do
something like 

#!/bin/sh

QS="${QUERY_STRING}"

if [ -f /usr/local/hobbit/server/www/help/$QS.html ]; then
   echo "Content-type: text/html"
   echo ""
   cat /usr/local/hobbit/server/www/help/$QS.html
else
   QUERY_STRING="db=columndoc.csv&key=${QS}"
   export QUERY_STRING

   exec /usr/lib/hobbit/server/bin/bb-csvinfo.cgi  \
      --env=/usr/lib/hobbit/server/etc/hobbitserver.cfg \
           --color=purple --hffile=columndoc
fi


Henrik
list Tom Kauffman · Mon, 2 May 2005 16:18:08 -0500 ·
Well, *ours* were in notes <grin>.

Works like a charm!

Tom

(Whatintheheck hours do you work, anyway??)

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Monday, May 02, 2005 4:04 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Where do I put the documentation/help for
user-written tests?
quoted from Henrik Størner

On Mon, May 02, 2005 at 03:31:59PM -0500, Kauffman, Tom wrote:
This used to go in $BBHOME/www/notes -- but hobbit is returning "No
match".
Uhm, no - they used to go in $BBHOME/www/help/ actually. That should
still work, I believe, but the COLUMNDOCURL setting in hobbitserver.cfg
overrides it and makes it point to the /hobbit-cgi/hobbitcolumn.sh CGI
script.
OK, I found it under $HOBBITHOME/server/etc in columndoc.csv. Now --
we've a couple of in-house generated tests documented in
www/notes/<test>.html -- among other things, these docs include urls
to
recovery documentation. I'm not real comfortable with trying to
shoehorn
this into a common csv file.

Suggestions?
Change the hobbitcolumn.sh CGI script. It's passed only one parameter in
the QUERY_STRING environment - the name of the column. So you could do
something like 

#!/bin/sh

QS="${QUERY_STRING}"

if [ -f /usr/local/hobbit/server/www/help/$QS.html ]; then
   echo "Content-type: text/html"
   echo ""
   cat /usr/local/hobbit/server/www/help/$QS.html
else
   QUERY_STRING="db=columndoc.csv&key=${QS}"
   export QUERY_STRING

   exec /usr/lib/hobbit/server/bin/bb-csvinfo.cgi  \
      --env=/usr/lib/hobbit/server/etc/hobbitserver.cfg \
           --color=purple --hffile=columndoc
fi


Henrik
list Henrik Størner · Mon, 2 May 2005 23:27:42 +0200 ·
quoted from Tom Kauffman
On Mon, May 02, 2005 at 04:18:08PM -0500, Kauffman, Tom wrote:
(Whatintheheck hours do you work, anyway??)
Currently, whenever I feel like it :-)

I not at my for-pay-work this week - I have a few days off and is
merely enjoying myself and relaxing with some Hobbit tweaking. 
Nothing like a rainy day to catch up on the little issues that 
have appeared.

(But now, it's off to bed).


Regards,
Henrik