Xymon Mailing List Archive search

Nagios client, Hobbit server anyone?

list Henrik Størner
Tue, 11 Nov 2008 21:13:31 +0000 (UTC)
Message-Id: <gfcshr$uus$user-e356fad9864f@xymon.invalid>

In <user-304eb1e47b84@xymon.invalid> "Ward, Martin" <user-2d33a6eb6a05@xymon.invalid> writes:
My thoughts were that this proxy server would do the pulling,
effectively mimicking the Nagios server,
then push the data on to the Hobbit server in a similar way to your
bbproxy program.
[snip]
I took a look at the weekend but came up against a wall trying to
extract the relevant code from
bbproxy. I think the issue I was having was that bbproxy is heavily
written to merge multiple packets from
the client (combining) and send them on to the Hobbit server in one go.
I just needed something that told
me what the format of a bbproxy data packet looked like and how to send
it to the main server.
I wouldn't mix bbproxy into this at all. Write a simpler tool to
run the Nagios plugin, extract the relevant data from the output, 
and generate Hobbit-style status-messages. Then send these the
usual way (either invoke the "bb" utility to do it, or if you
link your program with the "libbbgen.a" library from Hobbit, then
you can use Hobbit's "sendmessage()" routine.


Regards,
Henrik