Xymon Mailing List Archive search

No data from client

list Dan McDonald
Tue, 10 Mar 2009 08:24:59 -0500
Message-Id: <user-4f84067bc805@xymon.invalid>

On Tue, 2009-03-10 at 12:49 +0100, user-9b0f7b358aa3@xymon.invalid wrote:
At my installation the hobbit-ghosts.cgi don't seem to work.
It is probably related to that I compiled xymon someware else, and copied it to my server.
I see that it reffers to the old path even if I can't find this configured anywhere.
It's hardcoded in lib/environ.c

this patch fixed it for me (watch line wraps):

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 tried to create a link named as the original xymon-homedir to the homedir on the correct one.
Then the error message dissapared, but still it don't list any ghosts. The webpage is all blue (nothing black) and listing: Failed to retrieve ghostlist from server.
I see after now that the hobbitd test have a list of Ghost reports.
Now, if I could only fix the bb-hostsvc.sh script - it segfaults on me,
and I have no idea how to figure out why.


-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com