Xymon Mailing List Archive search

bbnote_editor

list Steve Holmes
Tue, 11 Sep 2012 17:01:43 -0400
Message-Id: <user-b090a2f0bda2@xymon.invalid>

Ok, I still have trouble with the menus when using this script, but first a
few corrections:

I had to remove the string "file:" from the line defining XYMONBODYHEADER
and then remove an extra comma in two lines referencing MENUITEMS.

***************
*** 52,63 ****
  }

  sub print_menuitems {
!
$ENV{'XYMONBODYHEADER'}='file:/usr/local/xymon/server/etc/xymonmenu.cfg';
!     open (MENUITEMS, "<$ENV{'XYMONBODYHEADER'}") or &print_error("I can't
read from XYMONBODYHEADER");
!     while (<MENUITEMS,>) {
          print;
      }
!     close MENUITEMS,;
  }

  sub print_notesdata {
--- 52,63 ----
  }

  sub print_menuitems {
!     $ENV{'XYMONBODYHEADER'}='/usr/local/xymon/server/etc/xymonmenu.cfg';
!     open (MENUITEMS, "<$ENV{'XYMONBODYHEADER'}") or &print_error("I can't
read from $ENV{'XYMONBODYHEADER'}");
!     while (<MENUITEMS>) {
          print;
      }
!     close MENUITEMS;
  }

  sub print_notesdata {


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.:

https://xymonservername/xymon-seccgi/$XYMONSERVERWWWURL/xymon.html

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.

I.e. for my server it should be:

https://xymonservername/xymon/xymon.html

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.

Has anyone else worked on this?

Thanks,
Steve

On Mon, Sep 3, 2012 at 8:22 PM, Roland Soderstrom <
user-0cec9512a49f@xymon.invalid> wrote:
 I solved a problem with the excellent bbnote_edit by Galen Johnson****

** **

In 4.3.5 it works fine.****

In 4.3.10 the menus doesn’t work, I’m guessing it is because the menu
javascripts are gone.****

** **

A simple change in the bbnote_editor.cgi solved the issue.****

I’m not a good perl programmer so I consider this more of a hack…****

** **

Included my notes_header for 4.3  (a few typos)****

and bbnote_editor.cgi for 4.3****

** **

**-          **Roland****