Xymon Mailing List Archive search

cgi bb-hostedit script released

30 messages in this thread

list Eric E *hs Schwimmer · Thu, 28 Apr 2005 12:46:41 -0400 ·
Howdy all,

I finally got my mrtg graphing problems fixed (I ended up just using mrtg to poll ifc traffic data, and tweaked hobbit-larrd a bit to work with my snmp data collector that collects cpu & error info).

Anyways, now that that is done, I had a some time to spend working on a gui
hosts editor for hobbit/bigbrother (although the bigbrother support has not been tested, as I dont really have a bigbrother system to test it on any more).

This script should handle just about every option that the bb-hosts file supports, including nested file includes (include, dispinclude, etc), titles,
groups, etc etc.  Its still in a nascent phase at the moment, so I would strongly suggest backing up your host files somewhere safe before playing around with it (although the script also supports file archival, as well).

You can download the script at:
http://www.nerdvana.org/eric/files/bb-hostedit-1.0.tar.gz

Please let me know what you think,

Regards,
-Eric Schwimmer
HSCS Network Engineer
University of Virginia
list Michael Dunne · Thu, 28 Apr 2005 13:20:11 -0400 ·
Greetings,

I installed your script per directions indicated in install file and I am
receiving an error. The error is "syntax error: group compress". Any
suggestions?


Thanks in advance.

Mike


Michael Dunne
Systems Support Specialist
AccuWeather, Inc. 
XXX-XXX-XXXX Ext. XXXX
list Eric E *hs Schwimmer · Thu, 28 Apr 2005 13:24:06 -0400 ·
A few caveats that I should have included with the distro but forgot:

1. While it supports nested files, and will attempt to preserve their
structure as much as possible, I could only bundle so logic for
determining what file a new host/page/title should be added to.  So
while it should work, it might not Do What You Expect(tm).

2. The script is comment un-friendly.  Any comments & whitespace
formatting
is ignored when the script reads in data, and when it writes data back
out,
this commented data IS NOT INCLUDED.  So if you have some sort of whacky
comment structure in your files that you are intent on preserving, I'd 
advise you not to try this script :)

Regards,
-Eric
quoted from Eric E *hs Schwimmer

-----Original Message-----
From: Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid] 
Sent: Thursday, April 28, 2005 12:47 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] cgi bb-hostedit script released


Howdy all,

I finally got my mrtg graphing problems fixed (I ended up just using
mrtg to poll ifc traffic data, and tweaked hobbit-larrd a bit to work
with my snmp data collector that collects cpu & error info).

Anyways, now that that is done, I had a some time to spend working on a
gui hosts editor for hobbit/bigbrother (although the bigbrother support
has not been tested, as I dont really have a bigbrother system to test
it on any more).

This script should handle just about every option that the bb-hosts file
supports, including nested file includes (include, dispinclude, etc),
titles, groups, etc etc.  Its still in a nascent phase at the moment, so
I would strongly suggest backing up your host files somewhere safe
before playing around with it (although the script also supports file
archival, as well).

You can download the script at:
http://www.nerdvana.org/eric/files/bb-hostedit-1.0.tar.gz

Please let me know what you think,

Regards,
-Eric Schwimmer
HSCS Network Engineer
University of Virginia
list Eric E *hs Schwimmer · Thu, 28 Apr 2005 13:26:00 -0400 ·
Probably a regexp failure on my part.  I'll release a patch in a
second...

-Eric 
quoted from Michael Dunne

-----Original Message-----
From: Michael Dunne [mailto:user-cb942661a22f@xymon.invalid] 
Sent: Thursday, April 28, 2005 1:20 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] cgi bb-hostedit script released

Greetings,

I installed your script per directions indicated in install file and I
am receiving an error. The error is "syntax error: group compress". Any
suggestions?


Thanks in advance.

Mike


Michael Dunne
Systems Support Specialist
AccuWeather, Inc. 
XXX-XXX-XXXX Ext. XXXX
list Eric E *hs Schwimmer · Thu, 28 Apr 2005 13:28:45 -0400 ·
Hrm, the manpage for bb-hosts on the hobbit site says the the syntax
should be "group-compress".

I've never used either one;  do you have an entry called 'group
compress' that functions as you'd expect
it to?

Regards,
quoted from Eric E *hs Schwimmer
-Eric 

-----Original Message-----
From: Michael Dunne [mailto:user-cb942661a22f@xymon.invalid] 
Sent: Thursday, April 28, 2005 1:20 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] cgi bb-hostedit script released

Greetings,

I installed your script per directions indicated in install file and I
am receiving an error. The error is "syntax error: group compress". Any
suggestions?


Thanks in advance.

Mike


Michael Dunne
Systems Support Specialist
AccuWeather, Inc. 
XXX-XXX-XXXX Ext. XXXX
list Michael Dunne · Thu, 28 Apr 2005 13:34:35 -0400 ·
On 4/28/05 1:28 PM, "Schwimmer, Eric E *HS" <user-1e1008b069d5@xymon.invalid>
quoted from Eric E *hs Schwimmer
wrote:
Hrm, the manpage for bb-hosts on the hobbit site says the the syntax
should be "group-compress".
Apologies, the error includes the "-" between group and compress.
quoted from Eric E *hs Schwimmer
 
I've never used either one;  do you have an entry called 'group
compress' that functions as you'd expect
it to?
An example from my host file is:

group-compress <h3>Non-Production Servers </h3>

Regards,
-Eric 

Michael Dunne
Systems Support Specialist
AccuWeather, Inc. 
XXX-XXX-XXXX Ext. XXXX
list Eric E *hs Schwimmer · Thu, 28 Apr 2005 13:51:45 -0400 ·
Yep, it was a regexp problem.  I had tested with single-word group names, but anything with a whitespace in it would fail the regexp check.  

Try the attached patch:
copy the patch to your hobbit/server/bin dir, then chdir there:
patch -p0 < bb-hostedit-groupname-patch

I've already updated the distro, so anybody that downloads it in the future doesnt need to apply this patch (although I didnt update the version number, naughty naughty).

-Eric

-----Original Message-----
From:	Michael Dunne [mailto:user-cb942661a22f@xymon.invalid]
Sent:	Thu 4/28/2005 1:34 PM
To:	user-ae9b8668bcde@xymon.invalid
Cc:	
quoted from Michael Dunne
Subject:	Re: [hobbit] cgi bb-hostedit script released
On 4/28/05 1:28 PM, "Schwimmer, Eric E *HS" <user-1e1008b069d5@xymon.invalid>
wrote:
Hrm, the manpage for bb-hosts on the hobbit site says the the syntax
should be "group-compress".
Apologies, the error includes the "-" between group and compress.
 
I've never used either one;  do you have an entry called 'group
compress' that functions as you'd expect
it to?
An example from my host file is:

group-compress <h3>Non-Production Servers </h3>

Regards,
-Eric 

Michael Dunne
Systems Support Specialist
AccuWeather, Inc. 
XXX-XXX-XXXX Ext. XXXX
list Eric E *hs Schwimmer · Thu, 28 Apr 2005 14:00:04 -0400 ·
Outlook and I are not friends.  Here's the patch.
quoted from Eric E *hs Schwimmer

-Eric 

-----Original Message-----
From: Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid] 
Sent: Thursday, April 28, 2005 1:52 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] cgi bb-hostedit script released


Yep, it was a regexp problem.  I had tested with single-word group
names, but anything with a whitespace in it would fail the regexp check.


Try the attached patch:
copy the patch to your hobbit/server/bin dir, then chdir there:
patch -p0 < bb-hostedit-groupname-patch

I've already updated the distro, so anybody that downloads it in the
future doesnt need to apply this patch (although I didnt update the
version number, naughty naughty).

-Eric

-----Original Message-----
From:	Michael Dunne [mailto:user-cb942661a22f@xymon.invalid]
Sent:	Thu 4/28/2005 1:34 PM
To:	user-ae9b8668bcde@xymon.invalid
Cc:	
Subject:	Re: [hobbit] cgi bb-hostedit script released
On 4/28/05 1:28 PM, "Schwimmer, Eric E *HS"
<user-1e1008b069d5@xymon.invalid>
wrote:
Hrm, the manpage for bb-hosts on the hobbit site says the the syntax 
should be "group-compress".
Apologies, the error includes the "-" between group and compress.
 
I've never used either one;  do you have an entry called 'group 
compress' that functions as you'd expect it to?
An example from my host file is:

group-compress <h3>Non-Production Servers </h3>

Regards,
-Eric

Michael Dunne
Systems Support Specialist
AccuWeather, Inc. 
XXX-XXX-XXXX Ext. XXXX
Attachments (1)
list Michael Dunne · Thu, 28 Apr 2005 14:30:27 -0400 ·
Thanks for the quick patch. I've applied it and now I have the following
error:

Syntax error: apache=http://sysmonx.accuweather.com/server-status?auto

 
Michael Dunne
Systems Support Specialist
AccuWeather, Inc. 
XXX-XXX-XXXX Ext. XXXX
list Eric E *hs Schwimmer · Thu, 28 Apr 2005 14:47:02 -0400 ·
Hrm, the hobbit bb-hosts man page is a little unclear on some of the
test syntax.  

The only way that this syntax error would pop up was if the apache test
was seperated from its host entry 
by a newline.  Until now, I had assumed that all test tags pertaining to
a host had to be on the same line (i.e. no newline seperation), but now
I'm not sure.

Can you send me the lines immediately previous to this one in your hosts
file?  Feel free to sanitize
anything that might make you security conscious, I just need the general
formatting.
quoted from Michael Dunne

-Eric

-----Original Message-----
From: Michael Dunne [mailto:user-cb942661a22f@xymon.invalid] 
Sent: Thursday, April 28, 2005 2:30 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] cgi bb-hostedit script released

Thanks for the quick patch. I've applied it and now I have the following
error:

Syntax error: apache=http://sysmonx.accuweather.com/server-status?auto

 
Michael Dunne
Systems Support Specialist
AccuWeather, Inc. 
XXX-XXX-XXXX Ext. XXXX
list Michael Dunne · Thu, 28 Apr 2005 14:55:20 -0400 ·
I think I managed to get it working. I cleaned up my host file a bit and all
seems well now. Thanks for your help!


Michael Dunne
Systems Support Specialist
AccuWeather, Inc. 
XXX-XXX-XXXX Ext. XXXX
list Daniel J McDonald · Thu, 28 Apr 2005 14:08:52 -0500 ·
On Thu, 2005-04-28 at 14:00 -0400, Schwimmer, Eric E *HS wrote:
Outlook and I are not friends.  Here's the patch.

How about:

Undefined subroutine &main::g_edit called at /usr/lib/hobbit/server/bin/bb-hostedit.pl line 279.

For help, please send mail to the webmaster (root at localhost), giving
this error message and the time and date of the error.

list Eric E *hs Schwimmer · Thu, 28 Apr 2005 15:54:21 -0400 ·
Dang.  Looks like a forgot a subroutine. :)  We don't use groups at all,
so
that isnt something I've tested.  Give me a few minutes.

e 
quoted from Daniel J McDonald

-----Original Message-----
From: Daniel J McDonald [mailto:user-290ce4e24e19@xymon.invalid] 
Sent: Thursday, April 28, 2005 3:09 PM
To: Hobbit List
Subject: RE: [hobbit] cgi bb-hostedit script released

On Thu, 2005-04-28 at 14:00 -0400, Schwimmer, Eric E *HS wrote:
Outlook and I are not friends.  Here's the patch.

How about:

Undefined subroutine &main::g_edit called at
/usr/lib/hobbit/server/bin/bb-hostedit.pl line 279.

For help, please send mail to the webmaster (root at localhost), giving
this error message and the time and date of the error.

list Eric E *hs Schwimmer · Thu, 28 Apr 2005 17:28:01 -0400 ·
Try this patch:
http://www.nerdvana.org/eric/files/bb-hostedit-gedit-patch

The distro has been updated also, so nobody that downloads it after this
moment should need this patch.
quoted from Eric E *hs Schwimmer

Regards,
-Eric

-----Original Message-----
From:	Schwimmer, Eric E *HS
Sent:	Thu 4/28/2005 3:54 PM
To:	user-ae9b8668bcde@xymon.invalid
Cc:	
Subject:	RE: [hobbit] cgi bb-hostedit script released

Dang.  Looks like a forgot a subroutine. :)  We don't use groups at all,
so
that isnt something I've tested.  Give me a few minutes.

e 

-----Original Message-----
From: Daniel J McDonald [mailto:user-290ce4e24e19@xymon.invalid] 
Sent: Thursday, April 28, 2005 3:09 PM
To: Hobbit List
Subject: RE: [hobbit] cgi bb-hostedit script released

On Thu, 2005-04-28 at 14:00 -0400, Schwimmer, Eric E *HS wrote:
Outlook and I are not friends.  Here's the patch.

How about:

Undefined subroutine &main::g_edit called at
/usr/lib/hobbit/server/bin/bb-hostedit.pl line 279.

For help, please send mail to the webmaster (root at localhost), giving
this error message and the time and date of the error.

list Thomas Ruecker · Fri, 29 Apr 2005 08:06:13 +0200 ·
Hi Eric,
I found some problems with my bb-hosts-files:
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---

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 :(

Thomas
list Eric E *hs Schwimmer · Fri, 29 Apr 2005 09:31:24 -0400 ·
Hi Thomas, thanks for helping test out the script :)
quoted from Thomas Ruecker
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.
quoted from Thomas Ruecker
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
list Eric E *hs Schwimmer · Fri, 29 Apr 2005 11:44:54 -0400 ·
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
quoted from Eric E *hs Schwimmer
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
list Brent Mccrackin · Mon, 2 May 2005 12:06:55 -0400 ·
Just taking a look at this myself.

Using it with bb19c and bbgen 3.5 (not hobbit) so here's some insane
testing :-)

It seems to work, aside from the fact that I have a subpage which
happenes to have the same name as a page elsewhere in the config file,
but the directories created do not conflict anyway, since subpage
directories are created under the page directory they belong to.  This
produces an error message in the script - "Subpage previously defined".

Subpages should be able to have the same names if they exist under
different pages, and should also be able to have the same names as pages
regardless of where they are.

---
Brent B McCrackin
UNIX Systems Specialist - Bell Sympatico
user-04bba0146b8b@xymon.invalid   PH: XXX-XXX-XXXX
"Serenity through viciousness."
quoted from Eric E *hs Schwimmer
 

-----Original Message-----
From: Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid] 
Sent: April 29, 2005 11:45 AM
To: user-ae9b8668bcde@xymon.invalid
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: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
list Brent Mccrackin · Mon, 2 May 2005 12:14:14 -0400 ·
One other note, the paths to the images files are hardcoded for HOBBIT.
This should be a configuration option so that the script can be used
with BB/BBGEN.
signature

---
Brent B McCrackin
UNIX Systems Specialist - Bell Sympatico
user-04bba0146b8b@xymon.invalid   PH: XXX-XXX-XXXX
"Serenity through viciousness."
 

-----Original Message-----

quoted from Brent Mccrackin
From: Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid] 
Sent: April 29, 2005 11:45 AM
To: user-ae9b8668bcde@xymon.invalid
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: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
list Brent Mccrackin · Mon, 2 May 2005 12:37:56 -0400 ·
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.
signature

---
Brent B McCrackin
UNIX Systems Specialist - Bell Sympatico
user-04bba0146b8b@xymon.invalid   PH: XXX-XXX-XXXX
"Serenity through viciousness."
 

-----Original Message-----

quoted from Brent Mccrackin
From: Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid] 
Sent: April 29, 2005 11:45 AM
To: user-ae9b8668bcde@xymon.invalid
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: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
list Henrik Størner · Mon, 2 May 2005 18:42:13 +0200 ·
quoted from Brent Mccrackin
On Mon, May 02, 2005 at 12:06:55PM -0400, user-04bba0146b8b@xymon.invalid wrote:
Subpages should be able to have the same names if they exist under
different pages, and should also be able to have the same names as pages
regardless of where they are.
Using the same subpage name is not recommended. I wouldn't be surprised
if something broke because of that - there's an implicit assumption in
Hobbit that pagenames are unique.


Henrik
list Brent Mccrackin · Mon, 2 May 2005 13:37:08 -0400 ·
BBGen doesn't seem to share that implicit assumption (as far as I've
seen, anyway), but its duely noted and I can work around that in my
configurations.

It would be nice to allow subpages under different pages to be able to
have the same names, though, since they appear to map directly to the
directory structure.
signature

---
Brent B McCrackin
UNIX Systems Specialist - Bell Sympatico
user-04bba0146b8b@xymon.invalid   PH: XXX-XXX-XXXX
"Serenity through viciousness."
 

-----Original Message-----

quoted from Henrik Størner
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: May 2, 2005 12:42 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] cgi bb-hostedit script released


On Mon, May 02, 2005 at 12:06:55PM -0400, user-04bba0146b8b@xymon.invalid wrote:
Subpages should be able to have the same names if they exist under
different pages, and should also be able to have the same names as
pages
regardless of where they are.
Using the same subpage name is not recommended. I wouldn't be surprised
if something broke because of that - there's an implicit assumption in
Hobbit that pagenames are unique.


Henrik
list Brent Mccrackin · Mon, 2 May 2005 15:58:56 -0400 ·
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!
signature

---
Brent B McCrackin
UNIX Systems Specialist - Bell Sympatico
user-04bba0146b8b@xymon.invalid   PH: XXX-XXX-XXXX
"Serenity through viciousness."
 

-----Original Message-----

quoted from Brent Mccrackin
From: McCrackin, Brent (6002384) 
Sent: May 2, 2005 12:38 PM
To: 'user-ae9b8668bcde@xymon.invalid'
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
user-04bba0146b8b@xymon.invalid   PH: XXX-XXX-XXXX
"Serenity through viciousness."
 

-----Original Message-----
From: Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid] 
Sent: April 29, 2005 11:45 AM
To: user-ae9b8668bcde@xymon.invalid
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: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
list Eric E *hs Schwimmer · Mon, 2 May 2005 16:11:18 -0400 ·
Give me a few... I'm on-call this week, so I wont have quite the
response time that I did last week ;)

-Eric   
quoted from Brent Mccrackin
-----Original Message-----
From: user-04bba0146b8b@xymon.invalid [mailto:user-04bba0146b8b@xymon.invalid] Sent: Monday, May 02, 2005 3:59 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] cgi bb-hostedit script released

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
user-04bba0146b8b@xymon.invalid   PH: XXX-XXX-XXXX
"Serenity through viciousness."
 

-----Original Message-----
From: McCrackin, Brent (6002384)
Sent: May 2, 2005 12:38 PM
To: 'user-ae9b8668bcde@xymon.invalid'
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
user-04bba0146b8b@xymon.invalid   PH: XXX-XXX-XXXX
"Serenity through viciousness."
 

-----Original Message-----
From: Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid] Sent: April 29, 2005 11:45 AM
To: user-ae9b8668bcde@xymon.invalid
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: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

list Brent Mccrackin · Mon, 2 May 2005 16:15:43 -0400 ·
Hey, no rush... 
I saw that you hadn't tested on BB, and gave it a spin myself.  Nice
piece of work!

:-)
signature

---
Brent B McCrackin
UNIX Systems Specialist - Bell Sympatico
user-04bba0146b8b@xymon.invalid   PH: XXX-XXX-XXXX
"Serenity through viciousness."
 

-----Original Message-----

quoted from Eric E *hs Schwimmer
From: Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid] Sent: May 2, 2005 4:11 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] cgi bb-hostedit script released


Give me a few... I'm on-call this week, so I wont have quite the
response time that I did last week ;)

-Eric   
-----Original Message-----
From: user-04bba0146b8b@xymon.invalid [mailto:user-04bba0146b8b@xymon.invalid] Sent: Monday, May 02, 2005 3:59 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] cgi bb-hostedit script released

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
user-04bba0146b8b@xymon.invalid   PH: XXX-XXX-XXXX
"Serenity through viciousness."
 

-----Original Message-----
From: McCrackin, Brent (6002384)
Sent: May 2, 2005 12:38 PM
To: 'user-ae9b8668bcde@xymon.invalid'
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
user-04bba0146b8b@xymon.invalid   PH: XXX-XXX-XXXX
"Serenity through viciousness."
 

-----Original Message-----
From: Schwimmer, Eric E *HS [mailto:user-1e1008b069d5@xymon.invalid] Sent: April 29, 2005 11:45 AM
To: user-ae9b8668bcde@xymon.invalid
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: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

list Francesco Duranti · Tue, 3 May 2005 14:55:00 +0200 ·
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
quoted from Brent Mccrackin

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
list Eric E *hs Schwimmer · Tue, 3 May 2005 11:09:05 -0400 ·
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
quoted from Francesco Duranti
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
list Adam Goryachev · Wed, 04 May 2005 13:24:25 +1000 ·
quoted from Eric E *hs Schwimmer
On Tue, 2005-05-03 at 11:09 -0400, Schwimmer, Eric E *HS wrote:
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 :)
Any chance of adding this to www.deadcat.net ?? Since it is related to
BB as well?

Regards,
Adam

-- 
 -- 
Adam Goryachev
Website Managers
Ph:  +XX X XXXX XXXX                        user-eaec2ffb4cbc@xymon.invalid
Fax: +XX X XXXX XXXX                        www.websitemanagers.com.au
list Anatoli Bogajewski · Wed, 04 May 2005 14:19:27 +0200 ·
Return Receipt
                                                                               Your      [hobbit] R: [hobbit] cgi bb-hostedit script released             document                                                                   :                                                                                                                                                     was       CITS Bogajewski/Extern/040/DCAG/DCX                              received                                                                   by:                                                                                                                                                   at:       04/05/2005 14:19:44
list Brian Lynch · Wed, 4 May 2005 08:59:30 -0700 ·
Eric,
Do you have any plans to handle the bbgen pagesets? i.e. [page set]title, [page set]group, etc.

- Brian
quoted from Eric E *hs Schwimmer

On 5/3/05, Schwimmer, Eric E *HS <user-1e1008b069d5@xymon.invalid> wrote:

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