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><font size="1"><span style="font-family:courier new,monospace">***************<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></font><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">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">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<br><br><div class="gmail_quote">On Mon, Sep 3, 2012 at 8:22 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>I solved a problem with the excellent bbnote_edit by Galen Johnson<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>In 4.3.5 it works fine.<u></u><u></u></span></p>
<p class="MsoNormal"><span>In 4.3.10 the menus doesn’t work, I’m guessing it is because the menu javascripts are gone.<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>A simple change in the bbnote_editor.cgi solved the issue.<u></u><u></u></span></p>
<p class="MsoNormal"><span>I’m not a good perl programmer so I consider this more of a hack…<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></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<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p><u></u><span>-<span style="font:7.0pt "Times New Roman"">         
</span></span><u></u>Roland<u></u><u></u></p>
</font></span></div>
</div>

<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br>