Xymon Mailing List Archive search

Editing thresholds from a web page.

27 messages in this thread

list David Peters · Mon, 22 Jun 2009 09:42:45 +1000 ·
Anyone interested in a cgi script that allows you to edit the thresholds file (hobbit-clients.cfg) from a web page?

It allows you to select a server from a list of all servers and then presents you with just the section of the file applicable to that particular server.


David Peters

+61 2 63913565
+61 4 17863572

This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
list David Peters · Tue, 23 Jun 2009 07:14:21 +1000 ·
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.sourceforge.net/viewvc/xymon-addons/edit-thresholds/ 

Download the tarball from the bottom of the page.


David Peters

+61 2 63913565
+61 4 17863572


From:
user-762f8f482193@xymon.invalid
To:
user-ae9b8668bcde@xymon.invalid
Date:
22/06/2009 09:48 AM
Subject:
[hobbit] Editing thresholds from a web page.
quoted from David Peters


Anyone interested in a cgi script that allows you to edit the thresholds file (hobbit-clients.cfg) from a web page? 
It allows you to select a server from a list of all servers and then presents you with just the section of the file applicable to that particular server. 

David Peters

+61 2 63913565
+61 4 17863572


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
list Jim Smith · Mon, 22 Jun 2009 15:18:38 -0600 ·
Thanks, David.  I'll check it out.

 
Jim Smith

SVHS

Little Rock
quoted from David Peters

 
From: user-762f8f482193@xymon.invalid [mailto:user-762f8f482193@xymon.invalid] 
Sent: Monday, June 22, 2009 4:14 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.

 
Anyway, I have put it up on sourceforge:

http://xymon-addons.svn.sourceforge.net/viewvc/xymon-addons/edit-thresho
lds/
<http://xymon-addons.svn.sourceforge.net/viewvc/xymon-addons/edit-thresh
olds/>  
quoted from David Peters

Download the tarball from the bottom of the page. 


David Peters

+61 2 63913565
+61 4 17863572


From: 

user-762f8f482193@xymon.invalid 

To: 

user-ae9b8668bcde@xymon.invalid 

Date: 

22/06/2009 09:48 AM 

Subject: 

[hobbit] Editing thresholds from a web page.

 
Anyone interested in a cgi script that allows you to edit the thresholds
file (hobbit-clients.cfg) from a web page? 

It allows you to select a server from a list of all servers and then
presents you with just the section of the file applicable to that
particular server. 


David Peters

+61 2 63913565
+61 4 17863572


This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender. Views expressed in this message are
those of the individual sender, and are not necessarily the views of
their organisation.


This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender. Views expressed in this message are
those of the individual sender, and are not necessarily the views of
their organisation.
list David Peters · Tue, 23 Jun 2009 10:48:21 +1000 ·
Still kinda beta at the moment but in production here anyway. A couple of other changes that are soon to be uploaded to the sourcefourge reporistory (hopefully ion the next couple of hours). Major change is to auto select the host to edit thresholds for if you are browsing one of the host metrics. Makes it easy when doing the non-green view check in the morning and needing to change some thresholds for a particular host after looking at the metric.


David Peters

+61 2 63913565
+61 4 17863572


From:
"Smith, Jim" <user-dc30f243a817@xymon.invalid>
To:
user-ae9b8668bcde@xymon.invalid
Date:
23/06/2009 07:32 AM
quoted from Jim Smith
Subject:
RE: [hobbit] Editing thresholds from a web page.


Thanks, David.  I?ll check it out.
 Jim Smith
SVHS
Little Rock
  
From: user-762f8f482193@xymon.invalid [mailto:user-762f8f482193@xymon.invalid] Sent: Monday, June 22, 2009 4:14 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.
 
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.sourceforge.net/viewvc/xymon-addons/edit-thresholds/ 

Download the tarball from the bottom of the page. 

David Peters

+61 2 63913565
+61 4 17863572


From: user-762f8f482193@xymon.invalid To: user-ae9b8668bcde@xymon.invalid Date: 22/06/2009 09:48 AM Subject: [hobbit] Editing thresholds from a web page.
 

Anyone interested in a cgi script that allows you to edit the thresholds file (hobbit-clients.cfg) from a web page? 
It allows you to select a server from a list of all servers and then presents you with just the section of the file applicable to that particular server. 

David Peters

+61 2 63913565
+61 4 17863572


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
 

This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
list Cayo de Moraes · Tue, 23 Jun 2009 08:33:01 +0200 ·
it seems to be nice!

but i think you have to restart the hobbit-server after editing the cfg
files dont you?


2009/6/23 <user-762f8f482193@xymon.invalid>
quoted from David Peters
Still kinda beta at the moment but in production here anyway. A couple of
other changes that are soon to be uploaded to the sourcefourge reporistory
(hopefully ion the next couple of hours). Major change is to auto select the
host to edit thresholds for if you are browsing one of the host metrics.
Makes it easy when doing the non-green view check in the morning and needing
to change some thresholds for a particular host after looking at the metric.


David Peters

+61 2 63913565
+61 4 17863572


 From: "Smith, Jim" <user-dc30f243a817@xymon.invalid> To: user-ae9b8668bcde@xymon.invalid Date: 23/06/2009
07:32 AM Subject: RE: [hobbit] Editing thresholds from a web page.


*Thanks, David.  I’ll check it out.*
* *
*Jim Smith*
*SVHS*
*Little Rock*
* *
* *

*From:* user-762f8f482193@xymon.invalid [mailto:user-762f8f482193@xymon.invalid<user-762f8f482193@xymon.invalid>]
quoted from David Peters
• Sent:* Monday, June 22, 2009 4:14 PM*
To:* user-ae9b8668bcde@xymon.invalid*
Subject:* Re: [hobbit] Editing thresholds from a web page.


Anyway, I have put it up on sourceforge: *
http://xymon-addons.svn.sourceforge.net/viewvc/xymon-addons/edit-thresholds/
*<http://xymon-addons.svn.sourceforge.net/viewvc/xymon-addons/edit-thresholds/>;

Download the tarball from the bottom of the page.


David Peters

+61 2 63913565
+61 4 17863572


  From: user-762f8f482193@xymon.invalid  To: user-ae9b8668bcde@xymon.invalid  Date: 22/06/2009
09:48 AM  Subject: [hobbit] Editing thresholds from a web page.


Anyone interested in a cgi script that allows you to edit the thresholds
file (hobbit-clients.cfg) from a web page?

It allows you to select a server from a list of all servers and then
presents you with just the section of the file applicable to that particular
server.


David Peters

+61 2 63913565
+61 4 17863572


This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender. Views expressed in this message are those
of the individual sender, and are not necessarily the views of their
organisation.


This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender. Views expressed in this message are those
of the individual sender, and are not necessarily the views of their
organisation.


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
list Great D Dilla · Tue, 23 Jun 2009 14:56:59 +0800 ·
From experience hobbit-daemons detect the changes in the config file and
apply them accordingly.

 
I'm not sure if this has changed in the new version.
quoted from Cayo de Moraes

 
From: Cayo de Moraes [mailto:user-92aec3b3c467@xymon.invalid] Sent: Tuesday, June 23, 2009 2:33 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.

 
it seems to be nice!

but i think you have to restart the hobbit-server after editing the cfg
files dont you?


2009/6/23 <user-762f8f482193@xymon.invalid>


Still kinda beta at the moment but in production here anyway. A couple of
other changes that are soon to be uploaded to the sourcefourge reporistory
(hopefully ion the next couple of hours). Major change is to auto select the
host to edit thresholds for if you are browsing one of the host metrics.
Makes it easy when doing the non-green view check in the morning and needing
to change some thresholds for a particular host after looking at the metric.


--
David Peters

+61 2 63913565
+61 4 17863572
--


From: 
"Smith, Jim" <user-dc30f243a817@xymon.invalid> 

To: 
user-ae9b8668bcde@xymon.invalid 

Date: 
23/06/2009 07:32 AM 

Subject: 
RE: [hobbit] Editing thresholds from a web page.

 
Thanks, David.  I'll check it out.   Jim Smith SVHS Little Rock     
 

From: user-762f8f482193@xymon.invalid [ <mailto:user-762f8f482193@xymon.invalid>
mailto:user-762f8f482193@xymon.invalid] Sent: Monday, June 22, 2009 4:14 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.   
Anyway, I have put it up on sourceforge:
<http://xymon-addons.svn.sourceforge.net/viewvc/xymon-addons/edit-thresholds
/>
http://xymon-addons.svn.sourceforge.net/viewvc/xymon-addons/edit-thresholds/


Download the tarball from the bottom of the page. 

--
David Peters

+61 2 63913565
+61 4 17863572
--


From: 
user-762f8f482193@xymon.invalid 

To: 
user-ae9b8668bcde@xymon.invalid 

Date: 
22/06/2009 09:48 AM 

Subject: 
[hobbit] Editing thresholds from a web page.


Anyone interested in a cgi script that allows you to edit the thresholds
file (hobbit-clients.cfg) from a web page? 
It allows you to select a server from a list of all servers and then
presents you with just the section of the file applicable to that particular
server. 

--
David Peters

+61 2 63913565
+61 4 17863572
-- 


This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender. Views expressed in this message are those
of the individual sender, and are not necessarily the views of their
organisation.


This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender. Views expressed in this message are those
of the individual sender, and are not necessarily the views of their
organisation.


This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender. Views expressed in this message are those
of the individual sender, and are not necessarily the views of their
organisation.
list David Peters · Tue, 23 Jun 2009 19:50:05 +1000 ·
I am using 4.3 and 4.2 and they both auto reread the config file. So in
other words, change the threshold and wait five or so minutes.
quoted from Great D Dilla

 
From: Great D Dilla [mailto:user-3e85c7b9d5a4@xymon.invalid] Sent: Tuesday, 23 June 2009 4:57 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Editing thresholds from a web page.

 
From experience hobbit-daemons detect the changes in the config file and
apply them accordingly.

 
I'm not sure if this has changed in the new version.

 
From: Cayo de Moraes [mailto:user-92aec3b3c467@xymon.invalid] Sent: Tuesday, June 23, 2009 2:33 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.

 
it seems to be nice!

but i think you have to restart the hobbit-server after editing the cfg
files dont you?


2009/6/23 <user-762f8f482193@xymon.invalid>


Still kinda beta at the moment but in production here anyway. A couple of
other changes that are soon to be uploaded to the sourcefourge reporistory
(hopefully ion the next couple of hours). Major change is to auto select the
host to edit thresholds for if you are browsing one of the host metrics.
Makes it easy when doing the non-green view check in the morning and needing
to change some thresholds for a particular host after looking at the metric.


--
David Peters

+61 2 63913565
+61 4 17863572
--


From: 
"Smith, Jim" <user-dc30f243a817@xymon.invalid> 

To: 
user-ae9b8668bcde@xymon.invalid 

Date: 
23/06/2009 07:32 AM 

Subject: 
RE: [hobbit] Editing thresholds from a web page.

 
Thanks, David.  I'll check it out.   Jim Smith SVHS Little Rock     
 

From: user-762f8f482193@xymon.invalid [ <mailto:user-762f8f482193@xymon.invalid>
mailto:user-762f8f482193@xymon.invalid] Sent: Monday, June 22, 2009 4:14 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.   
Anyway, I have put it up on sourceforge:
<http://xymon-addons.svn.sourceforge.net/viewvc/xymon-addons/edit-thresholds
/>
http://xymon-addons.svn.sourceforge.net/viewvc/xymon-addons/edit-thresholds/


Download the tarball from the bottom of the page. 

--
David Peters

+61 2 63913565
+61 4 17863572
--


From: 
user-762f8f482193@xymon.invalid 

To: 
user-ae9b8668bcde@xymon.invalid 

Date: 
22/06/2009 09:48 AM 

Subject: 
[hobbit] Editing thresholds from a web page.


Anyone interested in a cgi script that allows you to edit the thresholds
file (hobbit-clients.cfg) from a web page? 
It allows you to select a server from a list of all servers and then
presents you with just the section of the file applicable to that particular
server. 

--
David Peters

+61 2 63913565
+61 4 17863572
-- 


This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender. Views expressed in this message are those
of the individual sender, and are not necessarily the views of their
organisation.


This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender. Views expressed in this message are those
of the individual sender, and are not necessarily the views of their
organisation.


This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender. Views expressed in this message are those
of the individual sender, and are not necessarily the views of their
organisation.
list David Peters · Wed, 1 Jul 2009 10:36:49 +1000 ·
I have now added a link from xymonton add-ons page to the files. I have fixed a few other little issues/bugs.
quoted from David Peters


David Peters

+61 2 63913565
+61 4 17863572


From:
user-762f8f482193@xymon.invalid
To:
user-ae9b8668bcde@xymon.invalid
Date:
22/06/2009 09:48 AM
Subject:
[hobbit] Editing thresholds from a web page.


Anyone interested in a cgi script that allows you to edit the thresholds file (hobbit-clients.cfg) from a web page? 
It allows you to select a server from a list of all servers and then presents you with just the section of the file applicable to that particular server. 

David Peters

+61 2 63913565
+61 4 17863572


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
list Cayo de Moraes · Tue, 7 Jul 2009 09:51:06 +0200 ·
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select another
file


2009/7/1 <user-762f8f482193@xymon.invalid>
quoted from David Peters
I have now added a link from xymonton add-ons page to the files. I have
fixed a few other little issues/bugs.


David Peters

+61 2 63913565
+61 4 17863572


 From: user-762f8f482193@xymon.invalid To: user-ae9b8668bcde@xymon.invalid Date: 22/06/2009
09:48 AM Subject: [hobbit] Editing thresholds from a web page.


Anyone interested in a cgi script that allows you to edit the thresholds
file (hobbit-clients.cfg) from a web page?

It allows you to select a server from a list of all servers and then
presents you with just the section of the file applicable to that particular
server.


David Peters

+61 2 63913565
+61 4 17863572


This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender. Views expressed in this message are those
of the individual sender, and are not necessarily the views of their
organisation.


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
list Shaun Phillips · Tue, 7 Jul 2009 11:28:57 +0100 ·
Where can I get  edit-thresholds.tar ?
quoted from Cayo de Moraes

On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <user-92aec3b3c467@xymon.invalid>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select another
file


2009/7/1 <user-762f8f482193@xymon.invalid>
I have now added a link from xymonton add-ons page to the files. I have
fixed a few other little issues/bugs.


David Peters

+61 2 63913565
+61 4 17863572


  From: user-762f8f482193@xymon.invalid  To: user-ae9b8668bcde@xymon.invalid  Date: 22/06/2009
09:48 AM  Subject: [hobbit] Editing thresholds from a web page.


Anyone interested in a cgi script that allows you to edit the thresholds
file (hobbit-clients.cfg) from a web page?

It allows you to select a server from a list of all servers and then
presents you with just the section of the file applicable to that particular
server.


David Peters

+61 2 63913565
+61 4 17863572


This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient, please
delete it and notify the sender. Views expressed in this message are those
of the individual sender, and are not necessarily the views of their
organisation.


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
list Steve Holmes · Tue, 7 Jul 2009 16:22:10 -0400 ·
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.
sourceforge.net/viewvc/xymon-addons/edit-thresholds/
 Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
quoted from Shaun Phillips
user-176e7038266c@xymon.invalid> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <user-92aec3b3c467@xymon.invalid>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select another
file

list Martin Flemming · Wed, 8 Jul 2009 08:05:26 +0200 (CEST) ·
Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg ...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

 	martin
quoted from Steve Holmes

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.
sourceforge.net/viewvc/xymon-addons/edit-thresholds/
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
user-176e7038266c@xymon.invalid> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <user-92aec3b3c467@xymon.invalid>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select another
file
list David Peters · Wed, 8 Jul 2009 18:54:43 +1000 ·
Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.
quoted from Martin Flemming


-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] 
Sent: Wednesday, 8 July 2009 4:05 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg ...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

 	martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.
sourceforge.net/viewvc/xymon-addons/edit-thresholds/
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
user-176e7038266c@xymon.invalid> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<user-92aec3b3c467@xymon.invalid>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select another
file
list Shaun Phillips · Wed, 8 Jul 2009 11:32:32 +0100 ·
What two bugs David?
quoted from David Peters

On Wed, Jul 8, 2009 at 9:54 AM, David Peters <user-66917457e380@xymon.invalid> wrote:
Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.


-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Wednesday, 8 July 2009 4:05 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg
...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

       martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.
sourceforge.net/viewvc/xymon-addons/edit-thresholds/
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
user-176e7038266c@xymon.invalid> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<user-92aec3b3c467@xymon.invalid>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select
another
file
list Steve Holmes · Wed, 8 Jul 2009 16:12:57 -0400 ·
Hi David,
Ok, so I downloaded the scripts from sourceforge. I couldn't find them on
xymonton. What I have might not be your latest. So, the fixes I had to make
might be unneeded on a later version, but:

The first thing was that the first edit-thresholds page had no hosts loaded.
I fixed that. The next problem is that it isn't actually making the changes
I've entered. An error from the web server (which might not have anything to
do with this behavior) is:

File does not exist: /opt/www2/htdocs/menu, referer:
https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl

It's true that my apache home
dir is /opt/www2 and the htdocs dir is htdocs, but where is it getting
the path to menu there, which doesn't exist. I've searched through
everything I can think of. I've obviously overlooked something.

If I fix this error and it still doesn't make the changes I'll look
further.

Any ideas? I'm excited to get this working. It should save me a significant
amount of time if my co-admins could make these changes without asking me to
edit the files!

Thanks,
Steve
quoted from David Peters

On Wed, Jul 8, 2009 at 4:54 AM, David Peters <user-66917457e380@xymon.invalid> wrote:
Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.


-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Wednesday, 8 July 2009 4:05 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg
...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

       martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.
sourceforge.net/viewvc/xymon-addons/edit-thresholds/
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
user-176e7038266c@xymon.invalid> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<user-92aec3b3c467@xymon.invalid>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select
another
file
list David Peters · Thu, 9 Jul 2009 17:14:36 +1000 ·
Just uploading the latest version. Can you please tell me what you changed
to fix the hosts not loading.
quoted from Steve Holmes

 
From: Steve Holmes [mailto:user-5425c7b245e1@xymon.invalid] 
Sent: Thursday, 9 July 2009 6:13 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.

 
Hi David,

 
Ok, so I downloaded the scripts from sourceforge. I couldn't find them on
xymonton. What I have might not be your latest. So, the fixes I had to make
might be unneeded on a later version, but:

 
The first thing was that the first edit-thresholds page had no hosts loaded.
I fixed that. The next problem is that it isn't actually making the changes
I've entered. An error from the web server (which might not have anything to
do with this behavior) is:

 
File does not exist: /opt/www2/htdocs/menu, referer:
https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl

 
It's true that my apache home dir is /opt/www2 and the htdocs dir is htdocs,
but where is it getting the path to menu there, which doesn't exist. I've
searched through everything I can think of. I've obviously overlooked
something. 

 
If I fix this error and it still doesn't make the changes I'll look further.


Any ideas? I'm excited to get this working. It should save me a significant
amount of time if my co-admins could make these changes without asking me to
edit the files!

 
Thanks,

Steve

 
On Wed, Jul 8, 2009 at 4:54 AM, David Peters <user-66917457e380@xymon.invalid> wrote:

Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.


-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Wednesday, 8 July 2009 4:05 PM
To: user-ae9b8668bcde@xymon.invalid

Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg ...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

       martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.
sourceforge.net/viewvc/xymon-addons/edit-thresholds/
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
user-176e7038266c@xymon.invalid> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<user-92aec3b3c467@xymon.invalid>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select another
file
list David Peters · Thu, 9 Jul 2009 17:43:50 +1000 ·
Version 0.2 is now available for download. It fixes an issue relating to
hosts not loading. Hopefully that was the one you saw Steve.

 
It also fixes a couple of other minor things including removing a hardcoded
directory in one of the html header files.
quoted from Steve Holmes

 
From: Steve Holmes [mailto:user-5425c7b245e1@xymon.invalid] 
Sent: Thursday, 9 July 2009 6:13 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.

 
Hi David,

 
Ok, so I downloaded the scripts from sourceforge. I couldn't find them on
xymonton. What I have might not be your latest. So, the fixes I had to make
might be unneeded on a later version, but:

 
The first thing was that the first edit-thresholds page had no hosts loaded.
I fixed that. The next problem is that it isn't actually making the changes
I've entered. An error from the web server (which might not have anything to
do with this behavior) is:

 
File does not exist: /opt/www2/htdocs/menu, referer:
https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl

 
It's true that my apache home dir is /opt/www2 and the htdocs dir is htdocs,
but where is it getting the path to menu there, which doesn't exist. I've
searched through everything I can think of. I've obviously overlooked
something. 

 
If I fix this error and it still doesn't make the changes I'll look further.


Any ideas? I'm excited to get this working. It should save me a significant
amount of time if my co-admins could make these changes without asking me to
edit the files!

 
Thanks,

Steve

 
On Wed, Jul 8, 2009 at 4:54 AM, David Peters <user-66917457e380@xymon.invalid> wrote:

Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.


-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Wednesday, 8 July 2009 4:05 PM
To: user-ae9b8668bcde@xymon.invalid

Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg ...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

       martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.
sourceforge.net/viewvc/xymon-addons/edit-thresholds/
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
user-176e7038266c@xymon.invalid> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<user-92aec3b3c467@xymon.invalid>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select another
file
list Kishore Manjiani · Thu, 9 Jul 2009 08:50:30 +0100 ·
How do I find out which version of hobbit server am I running?  Thanks in adv
quoted from David Peters

From: David Peters [mailto:user-66917457e380@xymon.invalid]
Sent: 09 July 2009 08:44
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Editing thresholds from a web page.

Version 0.2 is now available for download. It fixes an issue relating to hosts not loading. Hopefully that was the one you saw Steve.

It also fixes a couple of other minor things including removing a hardcoded directory in one of the html header files.


From: Steve Holmes [mailto:user-5425c7b245e1@xymon.invalid]
Sent: Thursday, 9 July 2009 6:13 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.

Hi David,

Ok, so I downloaded the scripts from sourceforge. I couldn't find them on xymonton. What I have might not be your latest. So, the fixes I had to make might be unneeded on a later version, but:

The first thing was that the first edit-thresholds page had no hosts loaded. I fixed that. The next problem is that it isn't actually making the changes I've entered. An error from the web server (which might not have anything to do with this behavior) is:

File does not exist: /opt/www2/htdocs/menu, referer: https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl

It's true that my apache home dir is /opt/www2 and the htdocs dir is htdocs, but where is it getting the path to menu there, which doesn't exist. I've searched through everything I can think of. I've obviously overlooked something.

If I fix this error and it still doesn't make the changes I'll look further.

Any ideas? I'm excited to get this working. It should save me a significant amount of time if my co-admins could make these changes without asking me to edit the files!

Thanks,
Steve

On Wed, Jul 8, 2009 at 4:54 AM, David Peters <user-66917457e380@xymon.invalid<mailto:user-66917457e380@xymon.invalid>> wrote:
Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.


-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid<mailto:user-f286aaa49a76@xymon.invalid>]
Sent: Wednesday, 8 July 2009 4:05 PM
To: user-ae9b8668bcde@xymon.invalid<mailto:user-ae9b8668bcde@xymon.invalid>
Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg ...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

       martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.

sourceforge.net/viewvc/xymon-addons/edit-thresholds/<http://sourceforge.net/viewvc/xymon-addons/edit-thresholds/>;
quoted from David Peters
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
user-176e7038266c@xymon.invalid<mailto:user-176e7038266c@xymon.invalid>> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<user-92aec3b3c467@xymon.invalid<mailto:user-92aec3b3c467@xymon.invalid>>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select another
file
list David Peters · Thu, 9 Jul 2009 19:42:28 +1000 ·
Bottom right hand corner of the hobbit web page.
quoted from Kishore Manjiani

 
From: Manjiani, Kishore [mailto:user-6712fae2f061@xymon.invalid] 
Sent: Thursday, 9 July 2009 5:51 PM
To: 'user-ae9b8668bcde@xymon.invalid'
Subject: RE: [hobbit] Editing thresholds from a web page.

 
How do I find out which version of hobbit server am I running?  Thanks in
adv

 
From: David Peters [mailto:user-66917457e380@xymon.invalid] 
Sent: 09 July 2009 08:44
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Editing thresholds from a web page.

 
Version 0.2 is now available for download. It fixes an issue relating to
hosts not loading. Hopefully that was the one you saw Steve.

 
It also fixes a couple of other minor things including removing a hardcoded
directory in one of the html header files.

 
From: Steve Holmes [mailto:user-5425c7b245e1@xymon.invalid] 
Sent: Thursday, 9 July 2009 6:13 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.

 
Hi David,

 
Ok, so I downloaded the scripts from sourceforge. I couldn't find them on
xymonton. What I have might not be your latest. So, the fixes I had to make
might be unneeded on a later version, but:

 
The first thing was that the first edit-thresholds page had no hosts loaded.
I fixed that. The next problem is that it isn't actually making the changes
I've entered. An error from the web server (which might not have anything to
do with this behavior) is:

 
File does not exist: /opt/www2/htdocs/menu, referer:
https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl

 
It's true that my apache home dir is /opt/www2 and the htdocs dir is htdocs,
but where is it getting the path to menu there, which doesn't exist. I've
searched through everything I can think of. I've obviously overlooked
something. 

 
If I fix this error and it still doesn't make the changes I'll look further.


Any ideas? I'm excited to get this working. It should save me a significant
amount of time if my co-admins could make these changes without asking me to
edit the files!

 
Thanks,

Steve

 
On Wed, Jul 8, 2009 at 4:54 AM, David Peters <user-66917457e380@xymon.invalid> wrote:

Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.


-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Wednesday, 8 July 2009 4:05 PM
To: user-ae9b8668bcde@xymon.invalid

Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg ...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

       martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.
sourceforge.net/viewvc/xymon-addons/edit-thresholds/
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
user-176e7038266c@xymon.invalid> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<user-92aec3b3c467@xymon.invalid>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select another
file
list Steve Holmes · Thu, 9 Jul 2009 12:40:50 -0400 ·
Nope. Sorry. I got 0.2 and here are the changes I made to selection_page.pl.
The additions of the two 'next' statements are just speedups (I think :-),
but the critical change is the way you are testing to see if a line is a
real host line or not. All of my hosts have an IP of 0.0.0.0, and it looks
like you are wanting the second character of the line to be a digit, but
since the second character of my line is a dot ('.') it never matches. This
works for me wrt getting the hosts loaded, but it still doesn't change the
config file.

Thanks,
Steve

--- selection_page.pl   Thu Jul  9 12:28:53 2009
***************
*** 44,49 ****
--- 44,50 ----
        while( <BBHOST> ) {

                chomp;
+         next if (/^\s*\#/ );

                ($leading, $data) = split( ' ' , $_ );

***************
*** 59,68 ****
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
                        ($leading, $data) = split( ' ' , $_ );


!                       if( substr( $leading, 1,1 ) ge 0 && substr(
$leading, 1, 1 ) le 9 ) {
                                $hosts{$data}{hostname} = $data;
                        }
                }
--- 60,72 ----
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
+                 next if ( /^\s*\#/ );
                        ($leading, $data) = split( ' ' , $_ );


! #                     if( substr( $leading, 1,1 ) ge 0 && substr(
$leading, 1, 1 ) le 9 ) {
!                       ($byte1,$byte2,$byte3,$byte4) =
split('\.',$leading);
!                       if ($byte1 ge 0 && $byte1 le 255) {
                                $hosts{$data}{hostname} = $data;
quoted from David Peters
                        }
                }


On Thu, Jul 9, 2009 at 3:43 AM, David Peters <user-66917457e380@xymon.invalid> wrote:
 Version 0.2 is now available for download. It fixes an issue relating to
hosts not loading. Hopefully that was the one you saw Steve.


It also fixes a couple of other minor things including removing a hardcoded
directory in one of the html header files.


*From:* Steve Holmes [mailto:user-5425c7b245e1@xymon.invalid]
*Sent:* Thursday, 9 July 2009 6:13 AM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] Editing thresholds from a web page.


Hi David,


Ok, so I downloaded the scripts from sourceforge. I couldn't find them on
xymonton. What I have might not be your latest. So, the fixes I had to make
might be unneeded on a later version, but:


The first thing was that the first edit-thresholds page had no hosts
loaded. I fixed that. The next problem is that it isn't actually making the
changes I've entered. An error from the web server (which might not have
anything to do with this behavior) is:


File does not exist: /opt/www2/htdocs/menu, referer:
https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl


It's true that my apache home
dir is /opt/www2 and the htdocs dir is htdocs, but where is it getting the path to menu there, which doesn't exist. I've searched through everything I can think of. I've obviously overlooked something.


If I fix this error and it still doesn't make the changes I'll look
further.


Any ideas? I'm excited to get this working. It should save me a significant
amount of time if my co-admins could make these changes without asking me to
edit the files!


Thanks,

Steve


On Wed, Jul 8, 2009 at 4:54 AM, David Peters <user-66917457e380@xymon.invalid> wrote:

Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.


-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Wednesday, 8 July 2009 4:05 PM
To: user-ae9b8668bcde@xymon.invalid

Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg
...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

       martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.
sourceforge.net/viewvc/xymon-addons/edit-thresholds/
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
user-176e7038266c@xymon.invalid> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<user-92aec3b3c467@xymon.invalid>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select
another
file
-- 

Do you wish to rise? Begin by descending. You plan a tower that will pierce
the clouds? Lay first the foundation of humility. -St. Augustine (354-430)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)
list David Peters · Fri, 10 Jul 2009 09:22:48 +1000 ·
Steve do you want to get access to the sourceforge project so you can download and upload the changes there?

David Peters

+61 2 63913565
+61 4 17863572


From:
Steve Holmes <user-5425c7b245e1@xymon.invalid>
To:
user-ae9b8668bcde@xymon.invalid
Date:
10/07/2009 02:46 AM
quoted from Steve Holmes
Subject:
Re: [hobbit] Editing thresholds from a web page.


Nope. Sorry. I got 0.2 and here are the changes I made to selection_page.pl. The additions of the two 'next' statements are just speedups (I think :-), but the critical change is the way you are testing to see if a line is a real host line or not. All of my hosts have an IP of 0.0.0.0, and it looks like you are wanting the second character of the line to be a digit, but since the second character of my line is a dot ('.') it never matches. This works for me wrt getting the hosts loaded, but it still doesn't change the config file. 
Thanks,
Steve

--- selection_page.pl   Thu Jul  9 12:28:53 2009
***************
*** 44,49 ****
--- 44,50 ----
        while( <BBHOST> ) {
                                chomp;
+         next if (/^\s*\#/ );
                  ($leading, $data) = split( ' ' , $_ );
  ***************
*** 59,68 ****
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
                        ($leading, $data) = split( ' ' , $_ );
                          !                       if( substr( $leading, 1,1 ) ge 0 && substr( $leading, 1, 1 ) le 9 ) {
                                $hosts{$data}{hostname} = $data;
                        }
                }
--- 60,72 ----
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
+                 next if ( /^\s*\#/ );
                        ($leading, $data) = split( ' ' , $_ );
                          ! #                     if( substr( $leading, 1,1 ) ge 0 && substr( $leading, 1, 1 ) le 9 ) {
!                       ($byte1,$byte2,$byte3,$byte4) = split('\.',$leading);
!                       if ($byte1 ge 0 && $byte1 le 255) {
                                $hosts{$data}{hostname} = $data;
                        }
                }


On Thu, Jul 9, 2009 at 3:43 AM, David Peters <user-66917457e380@xymon.invalid> wrote:
Version 0.2 is now available for download. It fixes an issue relating to hosts not loading. Hopefully that was the one you saw Steve.
 It also fixes a couple of other minor things including removing a hardcoded directory in one of the html header files.
  
From: Steve Holmes [mailto:user-5425c7b245e1@xymon.invalid] Sent: Thursday, 9 July 2009 6:13 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.
 Hi David,
 Ok, so I downloaded the scripts from sourceforge. I couldn't find them on xymonton. What I have might not be your latest. So, the fixes I had to make might be unneeded on a later version, but:
 The first thing was that the first edit-thresholds page had no hosts loaded. I fixed that. The next problem is that it isn't actually making the changes I've entered. An error from the web server (which might not have anything to do with this behavior) is:
 File does not exist: /opt/www2/htdocs/menu, referer: https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl
 It's true that my apache home dir is /opt/www2 and the htdocs dir is htdocs, but where is it getting the path to menu there, which doesn't exist. I've searched through everything I can think of. I've obviously overlooked something.  If I fix this error and it still doesn't make the changes I'll look further.  Any ideas? I'm excited to get this working. It should save me a significant amount of time if my co-admins could make these changes without asking me to edit the files!
 Thanks,
Steve
 On Wed, Jul 8, 2009 at 4:54 AM, David Peters <user-66917457e380@xymon.invalid> wrote:
Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.


-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Wednesday, 8 July 2009 4:05 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg ...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

       martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.
sourceforge.net/viewvc/xymon-addons/edit-thresholds/
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
user-176e7038266c@xymon.invalid> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<user-92aec3b3c467@xymon.invalid>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select 
another
file

-- 
Do you wish to rise? Begin by descending. You plan a tower that will pierce the clouds? Lay first the foundation of humility. -St. Augustine (354-430) 
Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948) 

This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
list David Peters · Fri, 10 Jul 2009 09:25:21 +1000 ·
Okay, the menu problem you are having appears to be because I am sourcing the menu that comes installed with hobbit. On my system (which I thought was pretty default, the menu.js is in /menu/ relative to DocumentRoot.
quoted from David Peters


David Peters

+61 2 63913565
+61 4 17863572


From:
Steve Holmes <user-5425c7b245e1@xymon.invalid>
To:
user-ae9b8668bcde@xymon.invalid
Date:
10/07/2009 02:46 AM
Subject:
Re: [hobbit] Editing thresholds from a web page.


Nope. Sorry. I got 0.2 and here are the changes I made to selection_page.pl. The additions of the two 'next' statements are just speedups (I think :-), but the critical change is the way you are testing to see if a line is a real host line or not. All of my hosts have an IP of 0.0.0.0, and it looks like you are wanting the second character of the line to be a digit, but since the second character of my line is a dot ('.') it never matches. This works for me wrt getting the hosts loaded, but it still doesn't change the config file. 
Thanks,
Steve

--- selection_page.pl   Thu Jul  9 12:28:53 2009
***************
*** 44,49 ****
--- 44,50 ----
        while( <BBHOST> ) {
                                chomp;
+         next if (/^\s*\#/ );
                  ($leading, $data) = split( ' ' , $_ );
  ***************
*** 59,68 ****
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
                        ($leading, $data) = split( ' ' , $_ );
                          !                       if( substr( $leading, 1,1 ) ge 0 && substr( $leading, 1, 1 ) le 9 ) {
                                $hosts{$data}{hostname} = $data;
                        }
                }
--- 60,72 ----
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
+                 next if ( /^\s*\#/ );
                        ($leading, $data) = split( ' ' , $_ );
                          ! #                     if( substr( $leading, 1,1 ) ge 0 && substr( $leading, 1, 1 ) le 9 ) {
!                       ($byte1,$byte2,$byte3,$byte4) = split('\.',$leading);
!                       if ($byte1 ge 0 && $byte1 le 255) {
                                $hosts{$data}{hostname} = $data;
                        }
                }


On Thu, Jul 9, 2009 at 3:43 AM, David Peters <user-66917457e380@xymon.invalid> wrote:
Version 0.2 is now available for download. It fixes an issue relating to hosts not loading. Hopefully that was the one you saw Steve.
 It also fixes a couple of other minor things including removing a hardcoded directory in one of the html header files.
  
From: Steve Holmes [mailto:user-5425c7b245e1@xymon.invalid] Sent: Thursday, 9 July 2009 6:13 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.
 Hi David,
 Ok, so I downloaded the scripts from sourceforge. I couldn't find them on xymonton. What I have might not be your latest. So, the fixes I had to make might be unneeded on a later version, but:
 The first thing was that the first edit-thresholds page had no hosts loaded. I fixed that. The next problem is that it isn't actually making the changes I've entered. An error from the web server (which might not have anything to do with this behavior) is:
 File does not exist: /opt/www2/htdocs/menu, referer: https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl
 It's true that my apache home dir is /opt/www2 and the htdocs dir is htdocs, but where is it getting the path to menu there, which doesn't exist. I've searched through everything I can think of. I've obviously overlooked something.  If I fix this error and it still doesn't make the changes I'll look further.  Any ideas? I'm excited to get this working. It should save me a significant amount of time if my co-admins could make these changes without asking me to edit the files!
 Thanks,
Steve
 On Wed, Jul 8, 2009 at 4:54 AM, David Peters <user-66917457e380@xymon.invalid> wrote:
Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.


-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Wednesday, 8 July 2009 4:05 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg ...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

       martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.
sourceforge.net/viewvc/xymon-addons/edit-thresholds/
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
user-176e7038266c@xymon.invalid> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<user-92aec3b3c467@xymon.invalid>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select 
another
file

-- 
Do you wish to rise? Begin by descending. You plan a tower that will pierce the clouds? Lay first the foundation of humility. -St. Augustine (354-430) 
Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948) 

This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
list David Peters · Fri, 10 Jul 2009 09:50:20 +1000 ·
Steve can you please check the permissions on ~hobbit/server/etc/hobbit-clients.cfg?

I suspect that is the cause of you being unable to save the modificattions.
quoted from David Peters

David Peters

+61 2 63913565
+61 4 17863572


From:
Steve Holmes <user-5425c7b245e1@xymon.invalid>
To:
user-ae9b8668bcde@xymon.invalid
Date:
10/07/2009 02:46 AM
Subject:
Re: [hobbit] Editing thresholds from a web page.


Nope. Sorry. I got 0.2 and here are the changes I made to selection_page.pl. The additions of the two 'next' statements are just speedups (I think :-), but the critical change is the way you are testing to see if a line is a real host line or not. All of my hosts have an IP of 0.0.0.0, and it looks like you are wanting the second character of the line to be a digit, but since the second character of my line is a dot ('.') it never matches. This works for me wrt getting the hosts loaded, but it still doesn't change the config file. 
Thanks,
Steve

--- selection_page.pl   Thu Jul  9 12:28:53 2009
***************
*** 44,49 ****
--- 44,50 ----
        while( <BBHOST> ) {
                                chomp;
+         next if (/^\s*\#/ );
                  ($leading, $data) = split( ' ' , $_ );
  ***************
*** 59,68 ****
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
                        ($leading, $data) = split( ' ' , $_ );
                          !                       if( substr( $leading, 1,1 ) ge 0 && substr( $leading, 1, 1 ) le 9 ) {
                                $hosts{$data}{hostname} = $data;
                        }
                }
--- 60,72 ----
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
+                 next if ( /^\s*\#/ );
                        ($leading, $data) = split( ' ' , $_ );
                          ! #                     if( substr( $leading, 1,1 ) ge 0 && substr( $leading, 1, 1 ) le 9 ) {
!                       ($byte1,$byte2,$byte3,$byte4) = split('\.',$leading);
!                       if ($byte1 ge 0 && $byte1 le 255) {
                                $hosts{$data}{hostname} = $data;
                        }
                }


On Thu, Jul 9, 2009 at 3:43 AM, David Peters <user-66917457e380@xymon.invalid> wrote:
Version 0.2 is now available for download. It fixes an issue relating to hosts not loading. Hopefully that was the one you saw Steve.
 It also fixes a couple of other minor things including removing a hardcoded directory in one of the html header files.
  
From: Steve Holmes [mailto:user-5425c7b245e1@xymon.invalid] Sent: Thursday, 9 July 2009 6:13 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.
 Hi David,
 Ok, so I downloaded the scripts from sourceforge. I couldn't find them on xymonton. What I have might not be your latest. So, the fixes I had to make might be unneeded on a later version, but:
 The first thing was that the first edit-thresholds page had no hosts loaded. I fixed that. The next problem is that it isn't actually making the changes I've entered. An error from the web server (which might not have anything to do with this behavior) is:
 File does not exist: /opt/www2/htdocs/menu, referer: https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl
 It's true that my apache home dir is /opt/www2 and the htdocs dir is htdocs, but where is it getting the path to menu there, which doesn't exist. I've searched through everything I can think of. I've obviously overlooked something.  If I fix this error and it still doesn't make the changes I'll look further.  Any ideas? I'm excited to get this working. It should save me a significant amount of time if my co-admins could make these changes without asking me to edit the files!
 Thanks,
Steve
 On Wed, Jul 8, 2009 at 4:54 AM, David Peters <user-66917457e380@xymon.invalid> wrote:
Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.


-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: Wednesday, 8 July 2009 4:05 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg ...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

       martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: http://xymon-addons.svn.
sourceforge.net/viewvc/xymon-addons/edit-thresholds/
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
user-176e7038266c@xymon.invalid> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<user-92aec3b3c467@xymon.invalid>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select 
another
file

-- 
Do you wish to rise? Begin by descending. You plan a tower that will pierce the clouds? Lay first the foundation of humility. -St. Augustine (354-430) 
Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948) 

This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
list David Peters · Fri, 10 Jul 2009 10:05:35 +1000 ·
Okay, I have uploaded version 0.3 which the only version anyone should be using as it fixes a problem which in very rare circumstances can delete the DEFAULT clause in your hobbit-clients.cfg file.


Additionally I have updated xymonton so that the link to the file works properly now.
quoted from David Peters


David Peters

+61 2 63913565
+61 4 17863572


From:
user-762f8f482193@xymon.invalid
To:
user-ae9b8668bcde@xymon.invalid
Date:
22/06/2009 09:48 AM
Subject:
[hobbit] Editing thresholds from a web page.


Anyone interested in a cgi script that allows you to edit the thresholds file (hobbit-clients.cfg) from a web page? 
It allows you to select a server from a list of all servers and then presents you with just the section of the file applicable to that particular server. 

David Peters

+61 2 63913565
+61 4 17863572


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.
list Steve Holmes · Mon, 13 Jul 2009 10:55:07 -0400 ·
David. Sure. Sorry for the delay (long weekend :-). Steve.
quoted from David Peters

On Thu, Jul 9, 2009 at 7:22 PM, <user-762f8f482193@xymon.invalid> wrote:
Steve do you want to get access to the sourceforge project so you can
download and upload the changes there?


David Peters

+61 2 63913565
+61 4 17863572


 From: Steve Holmes <user-5425c7b245e1@xymon.invalid> To: user-ae9b8668bcde@xymon.invalid Date: 10/07/2009
02:46 AM
Subject: Re: [hobbit] Editing thresholds from a web page.


Nope. Sorry. I got 0.2 and here are the changes I made to
selection_page.pl. The additions of the two 'next' statements are just
speedups (I think :-), but the critical change is the way you are testing to
see if a line is a real host line or not. All of my hosts have an IP of
0.0.0.0, and it looks like you are wanting the second character of the line
to be a digit, but since the second character of my line is a dot ('.') it
never matches. This works for me wrt getting the hosts loaded, but it still
doesn't change the config file.

Thanks,
Steve

--- selection_page.pl   Thu Jul  9 12:28:53 2009
***************
*** 44,49 ****
--- 44,50 ----
        while( <BBHOST> ) {

                chomp;
+         next if (/^\s*\#/ );

                ($leading, $data) = split( ' ' , $_ );

***************
*** 59,68 ****
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
                        ($leading, $data) = split( ' ' , $_ );


!                       if( substr( $leading, 1,1 ) ge 0 && substr(
$leading, 1, 1 ) le 9 ) {
                                $hosts{$data}{hostname} = $data;
                        }
                }
--- 60,72 ----
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
+                 next if ( /^\s*\#/ );
                        ($leading, $data) = split( ' ' , $_ );


! #                     if( substr( $leading, 1,1 ) ge 0 && substr(
$leading, 1, 1 ) le 9 ) {
!                       ($byte1,$byte2,$byte3,$byte4) =
split('\.',$leading);
!                       if ($byte1 ge 0 && $byte1 le 255) {
                                $hosts{$data}{hostname} = $data;
                        }
                }


On Thu, Jul 9, 2009 at 3:43 AM, David Peters <*user-66917457e380@xymon.invalid*<user-66917457e380@xymon.invalid>>
quoted from David Peters
wrote:
Version 0.2 is now available for download. It fixes an issue relating to
hosts not loading. Hopefully that was the one you saw Steve.


It also fixes a couple of other minor things including removing a hardcoded
directory in one of the html header files.


*From:* Steve Holmes [mailto:*user-5425c7b245e1@xymon.invalid* <user-5425c7b245e1@xymon.invalid>]
quoted from David Peters
*Sent:* Thursday, 9 July 2009 6:13 AM

*To:* *user-ae9b8668bcde@xymon.invalid* <user-ae9b8668bcde@xymon.invalid>*
Subject:* Re: [hobbit] Editing thresholds from a web page.


Hi David,


Ok, so I downloaded the scripts from sourceforge. I couldn't find them on
xymonton. What I have might not be your latest. So, the fixes I had to make
might be unneeded on a later version, but:


The first thing was that the first edit-thresholds page had no hosts
loaded. I fixed that. The next problem is that it isn't actually making the
changes I've entered. An error from the web server (which might not have
anything to do with this behavior) is:


File does not exist: /opt/www2/htdocs/menu, referer: *

https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl*<https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl>;
quoted from David Peters


It's true that my apache home
dir is /opt/www2 and the htdocs dir is htdocs, but where is it getting the path to menu there, which doesn't exist. I've searched through everything I can think of. I've obviously overlooked something.


If I fix this error and it still doesn't make the changes I'll look
further.


Any ideas? I'm excited to get this working. It should save me a significant
amount of time if my co-admins could make these changes without asking me to
edit the files!


Thanks,

Steve


On Wed, Jul 8, 2009 at 4:54 AM, David Peters <*user-66917457e380@xymon.invalid*<user-66917457e380@xymon.invalid>>
quoted from David Peters
wrote:

Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.


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

From: Martin Flemming [mailto:*user-f286aaa49a76@xymon.invalid*<user-f286aaa49a76@xymon.invalid>
quoted from David Peters
]
Sent: Wednesday, 8 July 2009 4:05 PM
To: *user-ae9b8668bcde@xymon.invalid* <user-ae9b8668bcde@xymon.invalid>

Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg
...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

       martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: *http://xymon-addons.svn*<http://xymon-addons.svn/>;
quoted from David Peters
.
*sourceforge.net/viewvc/xymon-addons/edit-thresholds/*<http://sourceforge.net/viewvc/xymon-addons/edit-thresholds/>;
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
*user-176e7038266c@xymon.invalid* <user-176e7038266c@xymon.invalid>> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<*user-92aec3b3c467@xymon.invalid* <user-92aec3b3c467@xymon.invalid>>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select
another
file

--
Do you wish to rise? Begin by descending. You plan a tower that will pierce
the clouds? Lay first the foundation of humility. -St. Augustine (354-430)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.

-- 
Do you wish to rise? Begin by descending. You plan a tower that will pierce
the clouds? Lay first the foundation of humility. -St. Augustine (354-430)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)
list Steve Holmes · Mon, 13 Jul 2009 12:39:49 -0400 ·
I fixed this with a symlink in my /opt/www2/htdocs directory. Thanks,
quoted from Steve Holmes
Steve.


On Thu, Jul 9, 2009 at 7:25 PM, <user-762f8f482193@xymon.invalid> wrote:
Okay, the menu problem you are having appears to be because I am sourcing
the menu that comes installed with hobbit. On my system (which I thought was
pretty default, the menu.js is in /menu/ relative to DocumentRoot.


David Peters

+61 2 63913565
+61 4 17863572


 From: Steve Holmes <user-5425c7b245e1@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid Date: 10/07/2009 02:46 AM
Subject: Re: [hobbit] Editing thresholds from a web page.


Nope. Sorry. I got 0.2 and here are the changes I made to
selection_page.pl. The additions of the two 'next' statements are just
speedups (I think :-), but the critical change is the way you are testing to
see if a line is a real host line or not. All of my hosts have an IP of
0.0.0.0, and it looks like you are wanting the second character of the line
to be a digit, but since the second character of my line is a dot ('.') it
never matches. This works for me wrt getting the hosts loaded, but it still
doesn't change the config file.

Thanks,
Steve

--- selection_page.pl   Thu Jul  9 12:28:53 2009
***************
*** 44,49 ****
--- 44,50 ----
        while( <BBHOST> ) {

                chomp;
+         next if (/^\s*\#/ );

                ($leading, $data) = split( ' ' , $_ );

***************
*** 59,68 ****
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
                        ($leading, $data) = split( ' ' , $_ );


!                       if( substr( $leading, 1,1 ) ge 0 && substr(
$leading, 1, 1 ) le 9 ) {
                                $hosts{$data}{hostname} = $data;
                        }
                }
--- 60,72 ----
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
+                 next if ( /^\s*\#/ );
                        ($leading, $data) = split( ' ' , $_ );


! #                     if( substr( $leading, 1,1 ) ge 0 && substr(
$leading, 1, 1 ) le 9 ) {
!                       ($byte1,$byte2,$byte3,$byte4) =
split('\.',$leading);
!                       if ($byte1 ge 0 && $byte1 le 255) {
                                $hosts{$data}{hostname} = $data;
                        }
                }


On Thu, Jul 9, 2009 at 3:43 AM, David Peters <*user-66917457e380@xymon.invalid*<user-66917457e380@xymon.invalid>>
wrote:
Version 0.2 is now available for download. It fixes an issue relating to
hosts not loading. Hopefully that was the one you saw Steve.


It also fixes a couple of other minor things including removing a hardcoded
directory in one of the html header files.


*From:* Steve Holmes [mailto:*user-5425c7b245e1@xymon.invalid* <user-5425c7b245e1@xymon.invalid>]
*Sent:* Thursday, 9 July 2009 6:13 AM

*To:* *user-ae9b8668bcde@xymon.invalid* <user-ae9b8668bcde@xymon.invalid>*
Subject:* Re: [hobbit] Editing thresholds from a web page.


Hi David,


Ok, so I downloaded the scripts from sourceforge. I couldn't find them on
xymonton. What I have might not be your latest. So, the fixes I had to make
might be unneeded on a later version, but:


The first thing was that the first edit-thresholds page had no hosts
loaded. I fixed that. The next problem is that it isn't actually making the
changes I've entered. An error from the web server (which might not have
anything to do with this behavior) is:


File does not exist: /opt/www2/htdocs/menu, referer: *
https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl*<https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl>;


It's true that my apache home
dir is /opt/www2 and the htdocs dir is htdocs, but where is it getting the path to menu there, which doesn't exist. I've searched through everything I can think of. I've obviously overlooked something.


If I fix this error and it still doesn't make the changes I'll look
further.


Any ideas? I'm excited to get this working. It should save me a significant
amount of time if my co-admins could make these changes without asking me to
edit the files!


Thanks,

Steve


On Wed, Jul 8, 2009 at 4:54 AM, David Peters <*user-66917457e380@xymon.invalid*<user-66917457e380@xymon.invalid>>
wrote:

Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.


-----Original Message-----
From: Martin Flemming [mailto:*user-f286aaa49a76@xymon.invalid*<user-f286aaa49a76@xymon.invalid>
]
Sent: Wednesday, 8 July 2009 4:05 PM
To: *user-ae9b8668bcde@xymon.invalid* <user-ae9b8668bcde@xymon.invalid>

Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg
...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

       martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: *http://xymon-addons.svn*<http://xymon-addons.svn/>;
.
*sourceforge.net/viewvc/xymon-addons/edit-thresholds/*<http://sourceforge.net/viewvc/xymon-addons/edit-thresholds/>;
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
*user-176e7038266c@xymon.invalid* <user-176e7038266c@xymon.invalid>> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<*user-92aec3b3c467@xymon.invalid* <user-92aec3b3c467@xymon.invalid>>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select
another
file

--
Do you wish to rise? Begin by descending. You plan a tower that will pierce
the clouds? Lay first the foundation of humility. -St. Augustine (354-430)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.

-- 
Do you wish to rise? Begin by descending. You plan a tower that will pierce
the clouds? Lay first the foundation of humility. -St. Augustine (354-430)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)
list Steve Holmes · Mon, 13 Jul 2009 12:45:01 -0400 ·
Yep, that got it.Thanks,
quoted from Steve Holmes
Steve.

On Thu, Jul 9, 2009 at 7:50 PM, <user-762f8f482193@xymon.invalid> wrote:
Steve can you please check the permissions on
~hobbit/server/etc/hobbit-clients.cfg?

I suspect that is the cause of you being unable to save the modificattions.


David Peters

+61 2 63913565
+61 4 17863572


 From: Steve Holmes <user-5425c7b245e1@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid Date: 10/07/2009 02:46 AM
Subject: Re: [hobbit] Editing thresholds from a web page.


Nope. Sorry. I got 0.2 and here are the changes I made to
selection_page.pl. The additions of the two 'next' statements are just
speedups (I think :-), but the critical change is the way you are testing to
see if a line is a real host line or not. All of my hosts have an IP of
0.0.0.0, and it looks like you are wanting the second character of the line
to be a digit, but since the second character of my line is a dot ('.') it
never matches. This works for me wrt getting the hosts loaded, but it still
doesn't change the config file.

Thanks,
Steve

--- selection_page.pl   Thu Jul  9 12:28:53 2009
***************
*** 44,49 ****
--- 44,50 ----
        while( <BBHOST> ) {

                chomp;
+         next if (/^\s*\#/ );

                ($leading, $data) = split( ' ' , $_ );

***************
*** 59,68 ****
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
                        ($leading, $data) = split( ' ' , $_ );


!                       if( substr( $leading, 1,1 ) ge 0 && substr(
$leading, 1, 1 ) le 9 ) {
                                $hosts{$data}{hostname} = $data;
                        }
                }
--- 60,72 ----
        foreach( @files ) {
                open(FILE, $_);
                while( <FILE> ) {
+                 next if ( /^\s*\#/ );
                        ($leading, $data) = split( ' ' , $_ );


! #                     if( substr( $leading, 1,1 ) ge 0 && substr(
$leading, 1, 1 ) le 9 ) {
!                       ($byte1,$byte2,$byte3,$byte4) =
split('\.',$leading);
!                       if ($byte1 ge 0 && $byte1 le 255) {
                                $hosts{$data}{hostname} = $data;
                        }
                }


On Thu, Jul 9, 2009 at 3:43 AM, David Peters <*user-66917457e380@xymon.invalid*<user-66917457e380@xymon.invalid>>
wrote:
Version 0.2 is now available for download. It fixes an issue relating to
hosts not loading. Hopefully that was the one you saw Steve.


It also fixes a couple of other minor things including removing a hardcoded
directory in one of the html header files.


*From:* Steve Holmes [mailto:*user-5425c7b245e1@xymon.invalid* <user-5425c7b245e1@xymon.invalid>]
*Sent:* Thursday, 9 July 2009 6:13 AM

*To:* *user-ae9b8668bcde@xymon.invalid* <user-ae9b8668bcde@xymon.invalid>*
Subject:* Re: [hobbit] Editing thresholds from a web page.


Hi David,


Ok, so I downloaded the scripts from sourceforge. I couldn't find them on
xymonton. What I have might not be your latest. So, the fixes I had to make
might be unneeded on a later version, but:


The first thing was that the first edit-thresholds page had no hosts
loaded. I fixed that. The next problem is that it isn't actually making the
changes I've entered. An error from the web server (which might not have
anything to do with this behavior) is:


File does not exist: /opt/www2/htdocs/menu, referer: *
https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl*<https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl>;


It's true that my apache home
dir is /opt/www2 and the htdocs dir is htdocs, but where is it getting the path to menu there, which doesn't exist. I've searched through everything I can think of. I've obviously overlooked something.


If I fix this error and it still doesn't make the changes I'll look
further.


Any ideas? I'm excited to get this working. It should save me a significant
amount of time if my co-admins could make these changes without asking me to
edit the files!


Thanks,

Steve


On Wed, Jul 8, 2009 at 4:54 AM, David Peters <*user-66917457e380@xymon.invalid*<user-66917457e380@xymon.invalid>>
wrote:

Yes I think that might be a good idea. Just beware of the two bugs that
currently exist.


-----Original Message-----
From: Martin Flemming [mailto:*user-f286aaa49a76@xymon.invalid*<user-f286aaa49a76@xymon.invalid>
]
Sent: Wednesday, 8 July 2009 4:05 PM
To: *user-ae9b8668bcde@xymon.invalid* <user-ae9b8668bcde@xymon.invalid>

Subject: Re: [hobbit] Editing thresholds from a web page.


Hi, David !

thanks, for the scripts !

I recognize, that the scripts didn't make a backup of hobbit-clients.cfg
...

Maybe, we could added a backupfunction with timestamp  ?

thanks & cheeers

       martin

On Tue, 7 Jul 2009, Steve Holmes wrote:
The link seems to work now. From the OP:
Anyway, I have put it up on sourceforge: *http://xymon-addons.svn*<http://xymon-addons.svn/>;
.
*sourceforge.net/viewvc/xymon-addons/edit-thresholds/*<http://sourceforge.net/viewvc/xymon-addons/edit-thresholds/>;
Download the tarball from the bottom of the page.


Steve.

On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <
*user-176e7038266c@xymon.invalid* <user-176e7038266c@xymon.invalid>> wrote:
Where can I get  edit-thresholds.tar ?


On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes
<*user-92aec3b3c467@xymon.invalid* <user-92aec3b3c467@xymon.invalid>>wrote:
Hi David,

infortunately i couldnt download it...
The "edit-thresholds.tar" file could not be found. Please select
another
file

--
Do you wish to rise? Begin by descending. You plan a tower that will pierce
the clouds? Lay first the foundation of humility. -St. Augustine (354-430)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.

-- 
Do you wish to rise? Begin by descending. You plan a tower that will pierce
the clouds? Lay first the foundation of humility. -St. Augustine (354-430)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)