[hobbit] cgi bb-hostedit script released

brent.mccrackin at bell.ca brent.mccrackin at bell.ca
Mon May 2 21:58:56 CEST 2005


An update to this... I can see in the code that it should support
group-only, but it doesn't appear to work very well.  I haven't been
able to find any changes yet that will make it work, though - but my
regex isn't as sharp as most people's seem to be :-)

Everything else appears to work well with BB1.9c/BBgen 3.5, though!

---
Brent B McCrackin
UNIX Systems Specialist - Bell Sympatico
Brent.McCrackin at Bell.ca   PH: 416-353-0692
"Serenity through viciousness."
 


-----Original Message-----
From: McCrackin, Brent (6002384) 
Sent: May 2, 2005 12:38 PM
To: 'hobbit at hswn.dk'
Subject: RE: [hobbit] cgi bb-hostedit script released


Here's another one... 

You do not appear to have any support for the "group-only" directive.

This works like group-compress, but you list exactly which services to
display for the hosts included in the group.

EG:

group-only test1|test2|test3|test4|test5 Servers Group


This facilitates having hosts with more tests than comfortably fit on a
single line in the display to be split among multiple lines, or which
have services that only apply to a specific page grouping.

An example I have is a database server with a dozen different databases
each monitored by bb-moracle, but producing their own dot.  I split the
server to have an 'OS-Tests' line and a 'Database-Tests' line in the
display.  This is performed with group-only.

---
Brent B McCrackin
UNIX Systems Specialist - Bell Sympatico
Brent.McCrackin at Bell.ca   PH: 416-353-0692
"Serenity through viciousness."
 


-----Original Message-----
From: Schwimmer, Eric E *HS [mailto:EES2Y at hscmail.mcc.virginia.edu] 
Sent: April 29, 2005 11:45 AM
To: hobbit at hswn.dk
Subject: RE: [hobbit] cgi bb-hostedit script released


Okay, here's the patch:

http://www.nerdvana.org/eric/files/bb-hostedit-hostdupe-patch
 
The tarball has been updated; new users don't need to download this
patch.

-Eric
 
-----Original Message-----
From: Schwimmer, Eric E *HS [mailto:EES2Y at hscmail.mcc.virginia.edu] 
Sent: Friday, April 29, 2005 9:31 AM
To: hobbit at hswn.dk
Subject: RE: [hobbit] cgi bb-hostedit script released


Hi Thomas, thanks for helping test out the script :)

>1. If the a line starts with #, it is a comment. The script reports me 
>a syntax-error I added the following lines:
>---snip---
>      # Exclude Comments
>       elsif($item =~ /^#/) {
>         next;
>       }
>---snap---
>

Ahh, I was handling comments incorrectly (if they had whitespace before
them on a line they were being parsed, instead of ignored).  Now fixed.

>2. I included one host on more than one page, so the script reports me 
>about already definded host.
>To get a step forward, I comment out the part in the sctipt.
>
>Now I see the subpages, but no hosts. I can add hosts to the subpage.
>I already tried to make a script, that builds the bb-hosts from a 
>MySQL-Database. I got it never finished, because of all the possible 
>combinations :(

If you comment out the line that reads in hosts, its to be expected that
you wont see any on the pages/subpages :)  I assumed (yet another
possibly incorrect assumption on my part) that you couldn't have the
same hostname defined in two places in your bigbrother/hobbit hierarchy;
I'll have to play around with this some to see how bigbrother behaves.
Hopefully, I'll have a patch out in an hour or so.

Regards,
-Eric





To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk






More information about the Xymon mailing list