Xymon Mailing List Archive search

Packaging Hobbit 4.2.0

4 messages in this thread

list Paul Moore · Thu, 19 Oct 2006 00:12:27 -0400 ·
I've been working for several weeks trying to build a precompiled pkg of
hobbit for solaris and have had varied success.  After a great deal of
troubleshooting I stumbled across a fundamental flaw as best that I can
tell.  It appears that several of the binaries (bb, hobbitd,
hobbit-ghosts.cg to name a few) compiled actually have the local server and
ip as configured in the Makefile rather than calling the hobbitserver.cfg
file for that information.

Is this by design?  And if so, has anybody tried and successfully built a
Solaris pkg?

Paul Moore V966-5159
MSO OSS Support
-=-=-=-=-=
Pinky, Are You Pondering What I'm Pondering?
Well, I think so Brain but if Jimmy cracks corn and no one cares, why does
he keep doing it?
list John Glowacki · Thu, 19 Oct 2006 01:32:16 -0400 ·
quoted from Paul Moore
Paul Moore wrote:
I've been working for several weeks trying to build a precompiled pkg of
hobbit for solaris and have had varied success.  After a great deal of
troubleshooting I stumbled across a fundamental flaw as best that I can
tell.  It appears that several of the binaries (bb, hobbitd,
hobbit-ghosts.cg to name a few) compiled actually have the local server and
ip as configured in the Makefile rather than calling the hobbitserver.cfg
file for that information.

Is this by design?  And if so, has anybody tried and successfully built a
Solaris pkg?

Paul Moore V966-5159
MSO OSS Support
-=-=-=-=-=
Pinky, Are You Pondering What I'm Pondering?
Well, I think so Brain but if Jimmy cracks corn and no one cares, why does
he keep doing it? 

I noticed this before. It's normal. I was having a problem because of
one of the cgi commands wasn't loading the settings from
hobbitserver.cfg to override what is defaulted in the binaries. Turned
out to be a typo that was causing my the hobbitserver.cfg not to load.
This is how Henrik explained it to me back then.

John


On Mon, Jul 24, 2006 at 04:24:07PM -0400, John Glowacki wrote:
Looking at the debug output the embedded ip in the binary is causing
hobbit-ghosts.cgi to fail. I don't see what else it could be. Is
there a
reason why the ip and hostname are embedded in the binaries? I would
assume this would effect people who use rpm or deb packages in the
final
release, unless the packages are created with 127.0.0.1 address.
Which is why the packages I build are always configured for IP 127.0.0.1
and hostname "localhost".

The reason is that all of the Hobbit binaries have some of the core
hobbitserver.cfg settings built-in. These ONLY take effect if they are
not overridden by the real settings from Hobbitserver.cfg, which is
what normally happens when you run them. But it might fail if you
dont run them the way they were intended to  :-)  E.g.
# ./hobbit-ghosts.cgi --debug
is wrong, you should run it with
  ./hobbit-ghosts.cgi --env=/etc/hobbit/hobbitserver.cfg
which is what the cgi-bin shellscript wrapper installed into the
webserver cgi-bin directory does, through a config entry in hobbitcgi.cfg.

Or you can use the bbcmd tool to load the environment for you:
  bbcmd --env=/etc/hobbit/hobbitserver.cfg ./hobbit-ghosts.cgi


Regards,
Henrik
list Henrik Størner · Thu, 19 Oct 2006 07:36:07 +0200 ·
quoted from Paul Moore
On Thu, Oct 19, 2006 at 12:12:27AM -0400, Paul Moore wrote:
I've been working for several weeks trying to build a precompiled pkg of
hobbit for solaris and have had varied success.  After a great deal of
troubleshooting I stumbled across a fundamental flaw as best that I can
tell.  It appears that several of the binaries (bb, hobbitd,
hobbit-ghosts.cg to name a few) compiled actually have the local server and
ip as configured in the Makefile rather than calling the hobbitserver.cfg
file for that information.

Is this by design?
All of the binaries ship with a built-in default for all of the settings
in hobbitserver.cfg; mostly some sane default, but also a few things
taken from the configuration (i.e. the Makefile) - including the IP-
address of the Hobbit server.

However, these built-in settings are ONLY used if there is no
environment variable overriding them. All of the programs are
normally run via hobbitlaunch which has the task of picking up the
hobbitserver.cfg settings and providing them to the various tools.

The CGI programs all run with the "--env=/path/to/hobbitserver.cfg"
option, and hence pick up the hobbitserver.cfg settings directly.


Regards,
Henrik
list Mike Arnold · Thu, 19 Oct 2006 11:47:11 -0700 (MST) ·
quoted from Henrik Størner
Henrik Stoerner wrote:
On Thu, Oct 19, 2006 at 12:12:27AM -0400, Paul Moore wrote:
I've been working for several weeks trying to build a precompiled pkg of
hobbit for solaris and have had varied success.  After a great deal of
You could always take a look at the hobbit Solaris user-4f78e1119dc7@xymon.invalid.

-- 
-mike