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.
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: david.peters at dpi.nsw.gov.au To: hobbit at hswn.dk 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.
Thanks, David. I'll check it out.
Jim Smith
SVHS
Little Rock
From: david.peters at dpi.nsw.gov.au [mailto:david.peters at dpi.nsw.gov.au] Sent: Monday, June 22, 2009 4:14 PM To: hobbit at hswn.dk 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/>
Download the tarball from the bottom of the page.
David Peters
+61 2 63913565 +61 4 17863572
From:
david.peters at dpi.nsw.gov.au
To:
hobbit at hswn.dk
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.
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" <JMSmith at stvincenthealth.com> To: hobbit at hswn.dk 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: david.peters at dpi.nsw.gov.au [mailto:david.peters at dpi.nsw.gov.au] Sent: Monday, June 22, 2009 4:14 PM To: hobbit at hswn.dk 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: david.peters at dpi.nsw.gov.au To: hobbit at hswn.dk 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.
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 <david.peters at dpi.nsw.gov.au>
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" <JMSmith at stvincenthealth.com> To: hobbit at hswn.dk 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:* david.peters at dpi.nsw.gov.au [mailto:david.peters at dpi.nsw.gov.au<david.peters at dpi.nsw.gov.au>] * Sent:* Monday, June 22, 2009 4:14 PM* To:* hobbit at hswn.dk* 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: david.peters at dpi.nsw.gov.au To: hobbit at hswn.dk 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.
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:camorae at googlemail.com] Sent: Tuesday, June 23, 2009 2:33 PM To: hobbit at hswn.dk 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 <david.peters at dpi.nsw.gov.au>
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" <JMSmith at stvincenthealth.com>
To:
hobbit at hswn.dk
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: david.peters at dpi.nsw.gov.au [ <mailto:david.peters at dpi.nsw.gov.au> mailto:david.peters at dpi.nsw.gov.au] Sent: Monday, June 22, 2009 4:14 PM To: hobbit at hswn.dk 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:
david.peters at dpi.nsw.gov.au
To:
hobbit at hswn.dk
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.
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.
From: Great D Dilla [mailto:great.dilla at gmail.com] Sent: Tuesday, 23 June 2009 4:57 PM To: hobbit at hswn.dk 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:camorae at googlemail.com] Sent: Tuesday, June 23, 2009 2:33 PM To: hobbit at hswn.dk 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 <david.peters at dpi.nsw.gov.au>
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" <JMSmith at stvincenthealth.com>
To:
hobbit at hswn.dk
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: david.peters at dpi.nsw.gov.au [ <mailto:david.peters at dpi.nsw.gov.au> mailto:david.peters at dpi.nsw.gov.au] Sent: Monday, June 22, 2009 4:14 PM To: hobbit at hswn.dk 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:
david.peters at dpi.nsw.gov.au
To:
hobbit at hswn.dk
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.
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: david.peters at dpi.nsw.gov.au To: hobbit at hswn.dk 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.
Hi David,
infortunately i couldnt download it... The "edit-thresholds.tar" file could not be found. Please select another file
2009/7/1 <david.peters at dpi.nsw.gov.au>
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: david.peters at dpi.nsw.gov.au To: hobbit at hswn.dk 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.
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com>wrote:
Hi David,
infortunately i couldnt download it... The "edit-thresholds.tar" file could not be found. Please select another file
2009/7/1 <david.peters at dpi.nsw.gov.au>
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: david.peters at dpi.nsw.gov.au To: hobbit at hswn.dk 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.
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 < tainted.soul69 at googlemail.com> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com>wrote:
Hi David,
infortunately i couldnt download it... The "edit-thresholds.tar" file could not be found. Please select another file
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 < tainted.soul69 at googlemail.com> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com>wrote:
Hi David,
infortunately i couldnt download it... The "edit-thresholds.tar" file could not be found. Please select another file
Yes I think that might be a good idea. Just beware of the two bugs that currently exist.
-----Original Message----- From: Martin Flemming [mailto:martin.flemming at desy.de] Sent: Wednesday, 8 July 2009 4:05 PM To: hobbit at hswn.dk 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 < tainted.soul69 at googlemail.com> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com>wrote:
Hi David,
infortunately i couldnt download it... The "edit-thresholds.tar" file could not be found. Please select another file
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
What two bugs David?
On Wed, Jul 8, 2009 at 9:54 AM, David Peters <davidp at electronf.com> 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:martin.flemming at desy.de] Sent: Wednesday, 8 July 2009 4:05 PM To: hobbit at hswn.dk 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
martinOn 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 < tainted.soul69 at googlemail.com> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com>wrote:
Hi David,
infortunately i couldnt download it... The "edit-thresholds.tar" file could not be found. Please select another file
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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 <davidp at electronf.com> 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:martin.flemming at desy.de] Sent: Wednesday, 8 July 2009 4:05 PM To: hobbit at hswn.dk 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
martinOn 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 < tainted.soul69 at googlemail.com> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com>wrote:
Hi David,
infortunately i couldnt download it... The "edit-thresholds.tar" file could not be found. Please select another file
Just uploading the latest version. Can you please tell me what you changed to fix the hosts not loading.
From: Steve Holmes [mailto:sholmes42 at gmail.com] Sent: Thursday, 9 July 2009 6:13 AM To: hobbit at hswn.dk 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 <davidp at electronf.com> 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:martin.flemming at desy.de] Sent: Wednesday, 8 July 2009 4:05 PM To: hobbit at hswn.dk
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 < tainted.soul69 at googlemail.com> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com>wrote:
Hi David,
infortunately i couldnt download it... The "edit-thresholds.tar" file could not be found. Please select another file
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:sholmes42 at gmail.com] Sent: Thursday, 9 July 2009 6:13 AM To: hobbit at hswn.dk 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 <davidp at electronf.com> 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:martin.flemming at desy.de] Sent: Wednesday, 8 July 2009 4:05 PM To: hobbit at hswn.dk
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 < tainted.soul69 at googlemail.com> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com>wrote:
Hi David,
infortunately i couldnt download it... The "edit-thresholds.tar" file could not be found. Please select another file
How do I find out which version of hobbit server am I running? Thanks in adv
From: David Peters [mailto:davidp at electronf.com] Sent: 09 July 2009 08:44 To: hobbit at hswn.dk 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:sholmes42 at gmail.com] Sent: Thursday, 9 July 2009 6:13 AM To: hobbit at hswn.dk 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 <davidp at electronf.com<mailto:davidp at electronf.com>> 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:martin.flemming at desy.de<mailto:martin.flemming at desy.de>] Sent: Wednesday, 8 July 2009 4:05 PM To: hobbit at hswn.dk<mailto:hobbit at hswn.dk> 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/>
Download the tarball from the bottom of the page.
Steve.
On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips < tainted.soul69 at googlemail.com<mailto:tainted.soul69 at googlemail.com>> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com<mailto:camorae at googlemail.com>>wrote:
Hi David,
infortunately i couldnt download it... The "edit-thresholds.tar" file could not be found. Please select another file
Bottom right hand corner of the hobbit web page.
From: Manjiani, Kishore [mailto:Kishore.Manjiani at brevanhoward.com] Sent: Thursday, 9 July 2009 5:51 PM To: 'hobbit at hswn.dk' 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:davidp at electronf.com] Sent: 09 July 2009 08:44 To: hobbit at hswn.dk 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:sholmes42 at gmail.com] Sent: Thursday, 9 July 2009 6:13 AM To: hobbit at hswn.dk 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 <davidp at electronf.com> 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:martin.flemming at desy.de] Sent: Wednesday, 8 July 2009 4:05 PM To: hobbit at hswn.dk
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 < tainted.soul69 at googlemail.com> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com>wrote:
Hi David,
infortunately i couldnt download it... The "edit-thresholds.tar" file could not be found. Please select another file
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 <davidp at electronf.com> 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:sholmes42 at gmail.com] *Sent:* Thursday, 9 July 2009 6:13 AM *To:* hobbit at hswn.dk *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 <davidp at electronf.com> 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:martin.flemming at desy.de] Sent: Wednesday, 8 July 2009 4:05 PM To: hobbit at hswn.dk
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
martinOn 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 < tainted.soul69 at googlemail.com> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com>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)
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 <sholmes42 at gmail.com> To: hobbit at hswn.dk 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 <davidp at electronf.com> 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:sholmes42 at gmail.com] Sent: Thursday, 9 July 2009 6:13 AM To: hobbit at hswn.dk 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 <davidp at electronf.com> 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:martin.flemming at desy.de] Sent: Wednesday, 8 July 2009 4:05 PM To: hobbit at hswn.dk 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 < tainted.soul69 at googlemail.com> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com>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.
David. Sure. Sorry for the delay (long weekend :-). Steve.
On Thu, Jul 9, 2009 at 7:22 PM, <david.peters at dpi.nsw.gov.au> 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 <sholmes42 at gmail.com> To: hobbit at hswn.dk 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 <*davidp at electronf.com*<davidp at electronf.com>> 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:*sholmes42 at gmail.com* <sholmes42 at gmail.com>] *Sent:* Thursday, 9 July 2009 6:13 AM
*To:* *hobbit at hswn.dk* <hobbit at hswn.dk>* 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 <*davidp at electronf.com*<davidp at electronf.com>> 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:*martin.flemming at desy.de*<martin.flemming at desy.de> ] Sent: Wednesday, 8 July 2009 4:05 PM To: *hobbit at hswn.dk* <hobbit at hswn.dk>
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
martinOn 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 < *tainted.soul69 at googlemail.com* <tainted.soul69 at googlemail.com>> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <*camorae at googlemail.com* <camorae at googlemail.com>>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)
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 <sholmes42 at gmail.com> To: hobbit at hswn.dk 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 <davidp at electronf.com> 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:sholmes42 at gmail.com] Sent: Thursday, 9 July 2009 6:13 AM To: hobbit at hswn.dk 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 <davidp at electronf.com> 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:martin.flemming at desy.de] Sent: Wednesday, 8 July 2009 4:05 PM To: hobbit at hswn.dk 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 < tainted.soul69 at googlemail.com> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com>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.
I fixed this with a symlink in my /opt/www2/htdocs directory. Thanks, Steve.
On Thu, Jul 9, 2009 at 7:25 PM, <david.peters at dpi.nsw.gov.au> 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 <sholmes42 at gmail.com> To: hobbit at hswn.dk 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 <*davidp at electronf.com*<davidp at electronf.com>> 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:*sholmes42 at gmail.com* <sholmes42 at gmail.com>] *Sent:* Thursday, 9 July 2009 6:13 AM
*To:* *hobbit at hswn.dk* <hobbit at hswn.dk>* 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 <*davidp at electronf.com*<davidp at electronf.com>> 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:*martin.flemming at desy.de*<martin.flemming at desy.de> ] Sent: Wednesday, 8 July 2009 4:05 PM To: *hobbit at hswn.dk* <hobbit at hswn.dk>
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
martinOn 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 < *tainted.soul69 at googlemail.com* <tainted.soul69 at googlemail.com>> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <*camorae at googlemail.com* <camorae at googlemail.com>>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)
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 <sholmes42 at gmail.com> To: hobbit at hswn.dk 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 <davidp at electronf.com> 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:sholmes42 at gmail.com] Sent: Thursday, 9 July 2009 6:13 AM To: hobbit at hswn.dk 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 <davidp at electronf.com> 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:martin.flemming at desy.de] Sent: Wednesday, 8 July 2009 4:05 PM To: hobbit at hswn.dk 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 < tainted.soul69 at googlemail.com> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <camorae at googlemail.com>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.
Yep, that got it.Thanks, Steve.
On Thu, Jul 9, 2009 at 7:50 PM, <david.peters at dpi.nsw.gov.au> 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 <sholmes42 at gmail.com> To: hobbit at hswn.dk 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 <*davidp at electronf.com*<davidp at electronf.com>> 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:*sholmes42 at gmail.com* <sholmes42 at gmail.com>] *Sent:* Thursday, 9 July 2009 6:13 AM
*To:* *hobbit at hswn.dk* <hobbit at hswn.dk>* 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 <*davidp at electronf.com*<davidp at electronf.com>> 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:*martin.flemming at desy.de*<martin.flemming at desy.de> ] Sent: Wednesday, 8 July 2009 4:05 PM To: *hobbit at hswn.dk* <hobbit at hswn.dk>
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
martinOn 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 < *tainted.soul69 at googlemail.com* <tainted.soul69 at googlemail.com>> wrote:
Where can I get edit-thresholds.tar ?
On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes <*camorae at googlemail.com* <camorae at googlemail.com>>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)
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.
David Peters
+61 2 63913565 +61 4 17863572
From: david.peters at dpi.nsw.gov.au To: hobbit at hswn.dk 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.
participants (9)
-
camorae@googlemail.com
-
david.peters@dpi.nsw.gov.au
-
davidp@electronf.com
-
great.dilla@gmail.com
-
JMSmith@stvincenthealth.com
-
Kishore.Manjiani@brevanhoward.com
-
martin.flemming@desy.de
-
sholmes42@gmail.com
-
tainted.soul69@googlemail.com