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><br><div class="gmail_quote">

On Thu, Jul 9, 2009 at 3:43 AM, David Peters <span dir="ltr"><<a href="mailto:davidp@electronf.com">davidp@electronf.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">












<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">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.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">It also fixes a couple of other minor
things including removing a hardcoded directory in one of the html header
files.</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> Steve Holmes
[mailto:<a href="mailto:sholmes42@gmail.com" target="_blank">sholmes42@gmail.com</a>] <br><div class="im">
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, 9 July 2009 6:13
AM<br>
</div><div><div></div><div class="h5"><b><span style="font-weight: bold;">To:</span></b> <a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [hobbit] Editing
thresholds from a web page.</div></div></span></font></p>

</div><div><div></div><div class="h5">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi David,</span></font></p>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">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:</span></font></p>

</div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

</div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">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:</span></font></p>

</div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

</div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; padding: 0cm 0cm 0cm 6pt; margin-left: 4.8pt; margin-right: 0cm;">



<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">File does not exist: /opt/www2/htdocs/menu, referer: <a href="https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl" target="_blank">https://my-server/hobbit-seccgi/edit-thresholds/trunk/edit-threshold.pl</a></span></font></p>



</blockquote>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

</div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">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. </span></font></p>



</div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

</div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">If I fix this error and it still doesn't make the changes I'll look
further. </span></font></p>

</div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

</div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">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!</span></font></p>

</div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

</div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Thanks,</span></font></p>

</div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Steve</span></font></p>

</div>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">On Wed, Jul 8, 2009 at 4:54 AM, David Peters <<a href="mailto:davidp@electronf.com" target="_blank">davidp@electronf.com</a>> wrote:</span></font></p>



<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Yes I think that might be a good idea. Just beware of the two bugs that<br>
currently exist.</span></font></p>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br>
-----Original Message-----<br>
From: Martin Flemming [mailto:<a href="mailto:martin.flemming@desy.de" target="_blank">martin.flemming@desy.de</a>]<br>
Sent: Wednesday, 8 July 2009 4:05 PM<br>
To: <a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a></span></font></p>

</div>

<div>

<div>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">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: <a href="http://xymon-addons.svn" target="_blank">http://xymon-addons.svn</a>.<br>
>> <a href="http://sourceforge.net/viewvc/xymon-addons/edit-thresholds/" target="_blank">sourceforge.net/viewvc/xymon-addons/edit-thresholds/</a><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>
> <a href="mailto:tainted.soul69@googlemail.com" target="_blank">tainted.soul69@googlemail.com</a>>
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>
<<a href="mailto:camorae@googlemail.com" target="_blank">camorae@googlemail.com</a>>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</span></font></p>

</div>

</div>

</div>

</div>

</div>

</div></div></div>

</div>


</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>