Yes! That works perfectly.<br>Thanks!<br>Steve<br><br><div class="gmail_quote">On Tue, Sep 11, 2012 at 6:44 PM, Roland Soderstrom <span dir="ltr"><<a href="mailto:Rolands@logicaltech.com.au" target="_blank">Rolands@logicaltech.com.au</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-AU">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I discovered that last week, it worked somehow but was dependent on old notes.html already created. New ones didn’t work.<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">As I’m not a good perl programmer I hacked a bit more and this one seems to work better, surely more bugs to show up!<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">( I just sort of just steal code and modify, no clue on how it really works…)<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I didn’t realize that the cgi actually built the edit notes pages on the fly so I changed the menu sub to edit it.<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">You have to edit the notes editor page with the menu as well as the notes.html page it creates.<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The new sub does this for me at least, please try and report if it works.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Roland<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:sholmes42@gmail.com" target="_blank">sholmes42@gmail.com</a> [mailto:<a href="mailto:sholmes42@gmail.com" target="_blank">sholmes42@gmail.com</a>]
<b>On Behalf Of </b>Steve Holmes<br>
<b>Sent:</b> Wednesday, 12 September 2012 7:02 AM<br>
<b>To:</b> Roland Soderstrom<br>
<b>Cc:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> Re: [Xymon] bbnote_editor<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Ok, I still have trouble with the menus when using this script, but first a few corrections:<br>
<br>
I had to remove the string "file:" from the line defining XYMONBODYHEADER and then remove an extra comma in two lines referencing MENUITEMS.<br>
<br>
<span style="font-size:7.5pt;font-family:"Courier New"">***************<br>
*** 52,63 ****<br>
  }<br>
  <br>
  sub print_menuitems {<br>
!     $ENV{'XYMONBODYHEADER'}='file:/usr/local/xymon/server/etc/xymonmenu.cfg';<br>
!     open (MENUITEMS, "<$ENV{'XYMONBODYHEADER'}") or &print_error("I can't read from XYMONBODYHEADER");<br>
!     while (<MENUITEMS,>) {<br>
          print;<br>
      }<br>
!     close MENUITEMS,;<br>
  }<br>
  <br>
  sub print_notesdata {<br>
--- 52,63 ----<br>
  }<br>
  <br>
  sub print_menuitems {<br>
!     $ENV{'XYMONBODYHEADER'}='/usr/local/xymon/server/etc/xymonmenu.cfg';<br>
!     open (MENUITEMS, "<$ENV{'XYMONBODYHEADER'}") or &print_error("I can't read from $ENV{'XYMONBODYHEADER'}");<br>
!     while (<MENUITEMS>) {<br>
          print;<br>
      }<br>
!     close MENUITEMS;<br>
  }<br>
  <br>
  sub print_notesdata {</span><br>
<br>
<br>
But still, the Views menu doesn't work (none of the other menus are right either). It looks good, but when you select either Main View or All Non-green View the URL that is built is wrong. E.g.:<br>
<br>
<a href="https://xymonservername/xymon-seccgi/$XYMONSERVERWWWURL/xymon.html" target="_blank">https://xymonservername/xymon-seccgi/$XYMONSERVERWWWURL/xymon.html</a><br>
<br>
The "xymon-seccgi" shouldn't be there and the $XYMONSERVERWWWURL should be replaced with the actual path component from the variable by the same name.<br>
<br>
I.e. for my server it should be:<br>
<br>
<a href="https://xymonservername/xymon/xymon.html" target="_blank">https://xymonservername/xymon/xymon.html</a><br>
<br>
I've verified that the environment hash is built ok, but have not figured out what I need to do to get the value into the URL for the menu to use.<br>
<br>
Has anyone else worked on this?<br>
<br>
Thanks,<br>
Steve<u></u><u></u></p>
<div>
<p class="MsoNormal">On Mon, Sep 3, 2012 at 8:22 PM, Roland Soderstrom <<a href="mailto:Rolands@logicaltech.com.au" target="_blank">Rolands@logicaltech.com.au</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">I solved a problem with the excellent bbnote_edit by Galen Johnson<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">In 4.3.5 it works fine.<u></u><u></u></p>
<p class="MsoNormal">In 4.3.10 the menus doesn’t work, I’m guessing it is because the menu javascripts are gone.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">A simple change in the bbnote_editor.cgi solved the issue.<u></u><u></u></p>
<p class="MsoNormal">I’m not a good perl programmer so I consider this more of a hack…<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Included my notes_header for 4.3  (a few typos)<u></u><u></u></p>
<p class="MsoNormal">and bbnote_editor.cgi for 4.3<u></u><u></u></p>
<p class="MsoNormal"><span style="color:#888888"> <u></u><u></u></span></p>
<p><span style="color:#888888">-</span><span style="font-size:7.0pt;color:#888888">         
</span><span style="color:#888888">Roland<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div></div></div>
</div>

</blockquote></div><br><br clear="all"><br>-- <br><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><span style="font-size:13px;background-color:rgb(255,255,255)">If they give you ruled paper, write the other way. -Juan Ramon Jimenez, poet, Nobel Prize in literature (1881-1958) </span><br>

</span></font><br>I prayed for freedom for twenty years, but received no answer until I 
prayed with my legs. -Frederick Douglass, Former slave, abolitionist, 
editor, and orator (1817-1895)
<br></div><br>