Xymon Mailing List Archive search

cgi bb-hostedit script released

list Eric E *hs Schwimmer
Tue, 3 May 2005 11:09:05 -0400
Message-Id: <user-f20ea5b1df9f@xymon.invalid>

The current version is at:
http://www.nerdvana.org/eric/files/bb-hostedit-1.0.tar.gz

although v1.1 should be coming out shortly (depending on how much time I can spend on it :)

-Eric

-----Original Message-----
From:	Francesco Duranti [mailto:user-7104dcecbfef@xymon.invalid]
Sent:	Tue 5/3/2005 8:55 AM
To:	user-ae9b8668bcde@xymon.invalid
Cc:	
Subject:	[hobbit] R: [hobbit] cgi bb-hostedit script released
Hi all. I had some mail problems during the last days so i think I missed the original post with the link to the tarball of the bb-hostedit

Can someone post it?

Thanks

Francesco Duranti
 

-----Messaggio originale-----
Da: Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid] 
Inviato: venerdì 29 aprile 2005 17.45
A: user-ae9b8668bcde@xymon.invalid
Oggetto: 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:user-1e1008b069d5@xymon.invalid]
Sent: Friday, April 29, 2005 9:31 AM
To: user-ae9b8668bcde@xymon.invalid
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