[hobbit] URL Bugs?

Daniel J McDonald dan.mcdonald at austinenergy.com
Tue Mar 10 22:18:52 CET 2009


On Tue, 2009-03-10 at 21:38 +0100, Malcolm Hunter wrote:
> Hi,
> 
> I've had a scour to see if this has been addressed before and I can't
> find anything. My Xymon URL begins with /xymon and all pages are
> displayed properly except Ghost Clients and Notification Log. Both
> pages are missing the menu and the style is messed up.

Actually, I posted about this very issue this morning.  You have to edit
lib/environ.c since it is hardcoded in there.
My patch:

diff -urN xymon-4.3.0-beta1/lib/environ.c xymon-4.3.0-beta1-djm/lib/environ.c
--- xymon-4.3.0-beta1/lib/environ.c     2009-02-08 11:42:13.000000000 -0600
+++ xymon-4.3.0-beta1-djm/lib/environ.c 2009-03-09 12:01:30.000000000 -0500
@@ -31,9 +31,9 @@
        { "BBSERVERIP", BBHOSTIP },
        { "BBSERVEROS", BBHOSTOS },
        { "BBSERVERWWWNAME", BBHOSTNAME },
-       { "BBSERVERWWWURL", "/hobbit" },
-       { "BBSERVERCGIURL", "/hobbit-cgi" },
-       { "BBSERVERSECCGIURL", "/hobbit-cgisecure" },
+       { "BBSERVERWWWURL", "/xymon" },
+       { "BBSERVERCGIURL", "/xymon-cgi" },
+       { "BBSERVERSECCGIURL", "/xymon-cgisecure" },
        { "BBLOCATION", "" },
        { "PATH", "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:"BUILD_HOME"/bin" },
        { "BBPORT", "1984" },



>  I've tracked down the cause - they are both looking in /hobbit/menu
> and hobbit/gifs for the menu.css and gifs respectively. It seems the
> cgi scripts are setting BBMENUSKIN and BBSKIN incorrectly. Any ideas?
> (I have checked the config files too).
> 
> Thanks,
> Malcolm
> 
-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com




More information about the Xymon mailing list