[hobbit] Re: Please Help

Tom Moore Tom.Moore at sas.com
Thu Jul 19 23:39:10 CEST 2007


Thanks Henrik, I will definitely give that a try.

As just a followup for curiousity, how would I get this new /cust site to recognize customized templates?  I.e. I'm using the --template=cust option in bbgen, but that seems to only trigger the reading of the cust_header and cust_footer files.  When you click on a monitor such as "CPU", the "bb-hostsvc.sh" seems to autogenerate a new page, but ignores the cust_header/cust_footer files and rather uses the hostsvc_header/hostsvc_footer files.  I could modify those files specifically but I don't want to affect the main site itself.  

Is there some environment variable I'm missing maybe that would tell bbgen to look for all its template files in say /server/www/cust/templates or something of that ilk?

TIA,
Tom






-----Original Message-----
From: Henrik Stoerner [mailto:henrik at hswn.dk] 
Sent: Thursday, July 19, 2007 5:09 PM
To: hobbit at hswn.dk
Subject: Re: [hobbit] Re: Please Help

On Thu, Jul 19, 2007 at 04:48:59PM -0400, Tom Moore wrote:
> I guess my big question is where does a script such as hobbit-hostgraphs.sh 
> grab its list of servers to show in the choice pane?  

It grabs it from the Hobbit server, using the "hobbitdboard" command.
Done in the lib/headfoot.c "fetch_board()" code, which is eventually
used to build the "&HOSTLIST" output that is included into the
hostgraphs_form output.

I hadn't thought about the need to filter the hobbitdboard output
to include only the hosts included in a stripped-down version of the
bb-hosts file, but it's very easy to do that.

You need to make a small code-change. In the lib/headfoot.c file
there's a "fetch_board()" routine. Line 327 of that file (in the
4.2.0 version) looks like this:
    if (hname && wanted_host(hname)) {
Change that to
     if (hname && wanted_host(hname) && hostinfo(hname)) {
This will check that the hostname exists in the bb-hosts file, 
and skip data from un-defined hosts.


Regards,
Henrik


To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk





More information about the Xymon mailing list