[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] AllNonGreen View as simple text or html



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