[hobbit] AllNonGreen View as simple text or html

Buchan Milne bgmilne at staff.telkomsa.net
Thu Aug 13 18:14:07 CEST 2009


On Thursday, 13 August 2009 14:22:27 thorsten.erdmann at daimler.com wrote:
> Hi,
>
> I want to get all my non green systems as a simple parsable text or html
> file. Like the "Current non-green Systems" view, but without the history
> and without all that Hobbit Website stuff around. Best would be a text
> file, but a simple html-table would be also ok.
>
> I tried using "http://hobbit/hobbit-cgi/hobbit-nongreen.sh" or calling "bb
> 127.0.0.1 "hobbitdboard color=red".
> But both give also the red hosts/tests which have the NOPROPRED tag set.
> Thats not what I want. I want exactliy what the "Current non-green
> Systems" shows, with all that NOPROPx tags filtered.
> Any idea how to do that?
>
> Thank you for advice.


IMHO, we need a more flexible web UI ...

So, I started with a pure perl module, currently testing it with a very simple 
perl script for all the features of the normal 'bb' client.

Next steps are:
-add support for parsing bb-hosts so that it can do layout
-start defining data structure formats for a Catalyst Model, and/or for passing 
as JSON to an AJAX ui (or, straight structure to perl CGI module).

I have attached what I've got so far. Client.pm should be in a directory named 
Xymon, which should be in a directory that is listed in PERL5LIB, e.g.
mkdir Xymon
cp Client.pm Xymon
export PERL5LIB=`pwd`

Then, the bb.pl and get.pl will work.

I would appreciate feedback and ideas from people who might want to use this 
module. If others think this is the right direction, I'll put it in a VCS 
somewhere.


Regards,
Buchan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Client.pm
Type: application/x-perl
Size: 3481 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090813/90a2943e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bb.pl
Type: application/x-perl
Size: 848 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090813/90a2943e/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: get.pl
Type: application/x-perl
Size: 481 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090813/90a2943e/attachment-0002.bin>


More information about the Xymon mailing list