Skinning BB
The Summary Screen is great for me but not quite what the helpdesk is looking for. I have modified the original shell script that Henrick sent me. I have included the hacked file and Erik Bosrup's overLIB javascript.It provides a small list of the error states a host has ie, Host error error1 error2 Quick visual assessment of when errors happened with popups that display the graph for that error (if there is one) using overlib_mini.js. To try it out copy ng.sh into your hobbit-cgi/ directory ... modify ng.sh to suit your environment BBSERVERROOT="/home/hobbit" HOBBITHTTP="http://something.blah/hobbit" HOBBITCGI="http://something.blah/hobbit-cgi" And put overlib_mini.js into the /hobbit/ dir of your webserver The popups seem to work in recent versions of IE and Firefox. It's not quite perfect but perhaps it conveys my idea more successfully. Regards, Alun -----Original Message----- From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Tuesday, 16 May 2006 10:32 To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] Skinning BB On Tue, May 16, 2006 at 07:43:39AM +0200, Henrik Stoerner wrote:
On Tue, May 16, 2006 at 01:58:15PM +1200, Alun Watson wrote:Our helpdesk uses the All Non-green web page a lot and are only interested in the errors and have problems when they have to scroll up and down the page to figure out which column is which.OK, I understand now. But perhaps it is simpler to "play" with the layout via a simple shell-script (not that I recommend doing shell scripts for performance critical stuff - far from) to get the design/layout right it is a useful prototype.
Thinking about this a bit more, it occurred to me that the current
"hobbit-statusreport" CGI could easily be tweaked to support this.
If you grab the latest snapshot, build it and copy the
web/hobbit-statusreport.cgi file to your ~hobbit/server/bin/ directory.
Then create this wrapper in your Hobbit cgi-bin directory:
#!/bin/sh
. /usr/lib/hobbit/server/etc/hobbitcgi.cfg
exec /usr/lib/hobbit/server/bin/hobbit-statusreport.cgi \
--filter="color=red,yellow" --all \
--heading="All non-green systems" \
--show-column \
--show-summary \
--link
Running this CGI script will produce a text-only report of the current
non-green statuses. The "--show-summary" option causes the report to have
just a stripped-down summary of the current status, if you want the full
status text just remove that option.
Regards,
Henrik
Attachments (1)