[hobbit] Re: Please Help
Henrik Stoerner
henrik at hswn.dk
Thu Jul 19 23:09:15 CEST 2007
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
More information about the Xymon
mailing list