I fixed this with a symlink in my /opt/www2/htdocs directory. <div>Thanks,</div><div>Steve.</div><div><br><br><div class="gmail_quote">On Thu, Jul 9, 2009 at 7:25 PM,  <span dir="ltr"><<a href="mailto:david.peters@dpi.nsw.gov.au">david.peters@dpi.nsw.gov.au</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><font size="2" face="sans-serif">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.</font>
<br><div class="im">
<br>
<br><font size="2" face="sans-serif"><br>
------------------------------------------------------------------------------<br>
David Peters<br>
<br>
+61 2 63913565<br>
+61 4 17863572<br>
------------------------------------------------------------------------------<br>
</font>
<br>
<br>
<br>
</div><table width="100%">
<tbody><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">From:</font>
</td><td><div class="im"><font size="1" face="sans-serif">Steve Holmes <<a href="mailto:sholmes42@gmail.com" target="_blank">sholmes42@gmail.com</a>></font>
</div></td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">To:</font>
</td><td><font size="1" face="sans-serif"><a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a></font>
</td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Date:</font>
</td><td><div class="im"><font size="1" face="sans-serif">10/07/2009 02:46 AM</font>
</div><div class="im"></div></td></tr><tr valign="top">
<td><font size="1" color="#5f5f5f" face="sans-serif">Subject:</font>
</td><td><font size="1" face="sans-serif">Re: [hobbit] Editing thresholds from
a web page.</font></td></tr></tbody></table>
<br>
<hr noshade><div><div></div><div class="h5">
<br>
<br>
<br><font size="3">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. <br>
<br>
Thanks,<br>
Steve<br>
<br>
--- selection_page.pl   Thu Jul  9 12:28:53 2009<br>
***************<br>
*** 44,49 ****<br>
--- 44,50 ----<br>
        while( <BBHOST> ) {<br>
               
<br>
               
chomp;<br>
+         next if (/^\s*\#/ );<br>
  <br>
               
($leading, $data) = split( ' ' , $_ );<br>
  <br>
***************<br>
*** 59,68 ****<br>
        foreach( @files ) {<br>
               
open(FILE, $_);<br>
               
while( <FILE> ) {<br>
                       
($leading, $data) = split( ' ' , $_ );<br>
  <br>
                       
<br>
!                      
if( substr( $leading, 1,1 ) ge 0 && substr( $leading, 1, 1 ) le
9 ) {<br>
                               
$hosts{$data}{hostname} = $data;<br>
                       
}<br>
               
}<br>
--- 60,72 ----<br>
        foreach( @files ) {<br>
               
open(FILE, $_);<br>
               
while( <FILE> ) {<br>
+                
next if ( /^\s*\#/ );<br>
                       
($leading, $data) = split( ' ' , $_ );<br>
  <br>
                       
<br>
! #                    
if( substr( $leading, 1,1 ) ge 0 && substr( $leading, 1, 1 ) le
9 ) {<br>
!                      
($byte1,$byte2,$byte3,$byte4) = split('\.',$leading);<br>
!                      
if ($byte1 ge 0 && $byte1 le 255) {<br>
                               
$hosts{$data}{hostname} = $data;<br>
                       
}<br>
               
}<br>
<br>
</font>
<br><font size="3">On Thu, Jul 9, 2009 at 3:43 AM, David Peters <</font><a href="mailto:davidp@electronf.com" target="_blank"><font size="3" color="blue"><u>davidp@electronf.com</u></font></a><font size="3">>
wrote:</font>
<br><font size="2" color="#000080" face="Arial">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.</font>
</div></div><p><font size="2" color="#000080" face="Arial"> </font>
</p><p></p><div><div></div><div class="h5"><font size="2" color="#000080" face="Arial">It also fixes a couple of other
minor things including removing a hardcoded directory in one of the html
header files.</font>
</div></div><p><font size="2" color="#000080" face="Arial"> </font>
</p><p><font size="2" color="#000080" face="Arial"> </font>
</p><div align="center">
<p>
</p><hr><p></p></div>
<p></p><div><div></div><div class="h5"><font size="2" face="Tahoma"><b>From:</b> Steve Holmes [mailto:</font><a href="mailto:sholmes42@gmail.com" target="_blank"><font size="2" color="blue" face="Tahoma"><u>sholmes42@gmail.com</u></font></a><font size="2" face="Tahoma">]
</font>
<br><font size="2" face="Tahoma"><b>Sent:</b> Thursday, 9 July 2009 6:13
AM</font>
</div></div><p></p><div><div></div><div class="h5"><font size="2" face="Tahoma"><b>To:</b> </font><a href="mailto:hobbit@hswn.dk" target="_blank"><font size="2" color="blue" face="Tahoma"><u>hobbit@hswn.dk</u></font></a><font size="2" face="Tahoma"><b><br>


Subject:</b> Re: [hobbit] Editing thresholds from a web page.</font>
</div></div><p><font size="3" face="Times New Roman"> </font>
</p><p><font size="3" face="Times New Roman">Hi David,</font>
</p><p><font size="3" face="Times New Roman"> </font>
</p><p></p><div><div></div><div class="h5"><font size="3" face="Times New Roman">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:</font>
</div></div><p><font size="3" face="Times New Roman"> </font>
</p><p></p><div><div></div><div class="h5"><font size="3" face="Times New Roman">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:</font>
</div></div><p><font size="3" face="Times New Roman"> </font>
</p><p></p><div><div></div><div class="h5"><font size="3" face="Times New Roman">File does not exist: /opt/www2/htdocs/menu,
referer: </font><a href="https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl" target="_blank"><font size="3" color="blue" face="Times New Roman"><u>https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl</u></font></a>
</div></div><p><font size="3" face="Times New Roman"> </font>
</p><p></p><div><div></div><div class="h5"><font size="3" face="Times New Roman">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. </font>
</div></div><p><font size="3" face="Times New Roman"> </font>
</p><p></p><div><div></div><div class="h5"><font size="3" face="Times New Roman">If I fix this error and it still
doesn't make the changes I'll look further. </font>
</div></div><p><font size="3" face="Times New Roman"> </font>
</p><p></p><div><div></div><div class="h5"><font size="3" face="Times New Roman">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!</font>
</div></div><p><font size="3" face="Times New Roman"> </font>
</p><p><font size="3" face="Times New Roman">Thanks,</font>
</p><p><font size="3" face="Times New Roman">Steve</font>
</p><p><font size="3" face="Times New Roman"> </font>
</p><p></p><div><div></div><div class="h5"><font size="3" face="Times New Roman">On Wed, Jul 8, 2009 at 4:54 AM,
David Peters <</font><a href="mailto:davidp@electronf.com" target="_blank"><font size="3" color="blue" face="Times New Roman"><u>davidp@electronf.com</u></font></a><font size="3" face="Times New Roman">>
wrote:</font>
</div></div><p></p><div><div></div><div class="h5"><font size="3" face="Times New Roman">Yes I think that might be a good
idea. Just beware of the two bugs that<br>
currently exist.</font>
</div></div><p></p><div><div></div><div class="h5"><font size="3" face="Times New Roman"><br>
<br>
-----Original Message-----<br>
From: Martin Flemming [mailto:</font><a href="mailto:martin.flemming@desy.de" target="_blank"><font size="3" color="blue" face="Times New Roman"><u>martin.flemming@desy.de</u></font></a><font size="3" face="Times New Roman">]<br>


Sent: Wednesday, 8 July 2009 4:05 PM<br>
To: </font><a href="mailto:hobbit@hswn.dk" target="_blank"><font size="3" color="blue" face="Times New Roman"><u>hobbit@hswn.dk</u></font></a>
</div></div><p></p><div><div></div><div class="h5"><font size="3" face="Times New Roman">Subject: Re: [hobbit] Editing thresholds
from a web page.<br>
<br>
<br>
Hi, David !<br>
<br>
thanks, for the scripts !<br>
<br>
I recognize, that the scripts didn't make a backup of hobbit-clients.cfg
...<br>
<br>
Maybe, we could added a backupfunction with timestamp  ?<br>
<br>
thanks & cheeers<br>
<br>
       martin<br>
<br>
On Tue, 7 Jul 2009, Steve Holmes wrote:<br>
<br>
> The link seems to work now. From the OP:<br>
><br>
>> Anyway, I have put it up on sourceforge: </font><a href="http://xymon-addons.svn/" target="_blank"><font size="3" color="blue" face="Times New Roman"><u>http://xymon-addons.svn</u></font></a><font size="3" face="Times New Roman">.<br>


>> </font><a href="http://sourceforge.net/viewvc/xymon-addons/edit-thresholds/" target="_blank"><font size="3" color="blue" face="Times New Roman"><u>sourceforge.net/viewvc/xymon-addons/edit-thresholds/</u></font></a><font size="3" face="Times New Roman"><br>


><br>
> Download the tarball from the bottom of the page.<br>
><br>
><br>
> Steve.<br>
><br>
> On Tue, Jul 7, 2009 at 6:28 AM, Shaun Phillips <<br>
> </font><a href="mailto:tainted.soul69@googlemail.com" target="_blank"><font size="3" color="blue" face="Times New Roman"><u>tainted.soul69@googlemail.com</u></font></a><font size="3" face="Times New Roman">>
wrote:<br>
><br>
>> Where can I get  edit-thresholds.tar ?<br>
>><br>
>><br>
>> On Tue, Jul 7, 2009 at 8:51 AM, Cayo de Moraes<br>
<</font><a href="mailto:camorae@googlemail.com" target="_blank"><font size="3" color="blue" face="Times New Roman"><u>camorae@googlemail.com</u></font></a><font size="3" face="Times New Roman">>wrote:<br>
>><br>
>>> Hi David,<br>
>>><br>
>>> infortunately i couldnt download it...<br>
>>> The "edit-thresholds.tar" file could not be found.
Please select another<br>
>>> file</font>
</div></div><p></p><div><div></div><div class="h5"><font size="3"><br>
<br>
<br>
-- <br>
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)
<br>
<br>
Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948)
</font>
</div></div><p>
</p><p><br><br></p><table bgcolor="white" style="color:black"><tbody><tr><td><br><div class="im"><br>
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.</div>

</td></tr></tbody></table><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p>

<p></p><p></p><p></p></blockquote></div><br><br clear="all"><br>-- <br>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) <br>

<br>Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948) <br>
</div>