Xymon Mailing List Archive search

copy compiled server code from dev to prod

3 messages in this thread

list Bakkies Gatvol · Tue, 24 Sep 2013 13:45:51 -0400 ·
I compiled xymon-4.3.10 on a development server. Now I copied the "install" over to a production server. Here is what I see.

if I do a findhost via

http://prodserver/xymondev1-cgi/findhost.sh

if the checkbox Jump to page is checked - it "jumps" to the development server. If I uncheck the box - it shows a link which works correctly.


If there is a better/approved way to move the installed code ... let me know!
list Jeremy Laidman · Wed, 25 Sep 2013 10:45:31 +1000 ·
Bakkies

The "Jump to page" option causes findhost.cgi to call a URL at using
$XYMONWEBHOST as the server name.  This is typically defined in
xymonserver.cfg, and given the value of $XYMONSERVERHOSTNAME.  Try
searching for the dev server name in xymonserver.cfg.

I generally use packages for this purpose.  If I compile my own Xymon, I
then package it up and deploy it where I want it by installing the package.

But copying should work, assuming the relevant settings are adjusted on
each server, such as XYMONSERVERHOSTNAME and XYMONSERVERIP, and optionally
XYMONSERVERWWWNAME.

J
quoted from Bakkies Gatvol


On 25 September 2013 03:45, Bakkies Gatvol <user-66e2e196cd54@xymon.invalid> wrote:
I compiled xymon-4.3.10 on a development server. Now I copied the
"install" over to a production server. Here is what I see.

if I do a findhost via

http://prodserver/xymondev1-cgi/findhost.sh<http://usphl0pxymam00.starfss.com/xymondev1-cgi/findhost.sh>;
quoted from Bakkies Gatvol

if the checkbox* Jump to page* is checked - it "jumps" to the development
server. If I uncheck the box - it shows a link which works correctly.


If there is a better/approved way to move the installed code ... let me
know!

list Bakkies Gatvol · Wed, 25 Sep 2013 09:06:09 -0400 ·
Thank you!  I was sure I grepped through the config directory for dev servername ... but apparently not well enough. Your list helped. The offending value was 

XYMONSERVERWWWNAME=
quoted from Jeremy Laidman


From: user-71895fb2e44c@xymon.invalid
Date: Wed, 25 Sep 2013 10:45:31 +1000
Subject: Re: [Xymon] copy compiled server code from dev to prod
To: user-66e2e196cd54@xymon.invalid
CC: xymon at xymon.com

Bakkies
The "Jump to page" option causes findhost.cgi to call a URL at using $XYMONWEBHOST as the server name.  This is typically defined in xymonserver.cfg, and given the value of $XYMONSERVERHOSTNAME.  Try searching for the dev server name in xymonserver.cfg.


I generally use packages for this purpose.  If I compile my own Xymon, I then package it up and deploy it where I want it by installing the package.
But copying should work, assuming the relevant settings are adjusted on each server, such as XYMONSERVERHOSTNAME and XYMONSERVERIP, and optionally XYMONSERVERWWWNAME.


J


On 25 September 2013 03:45, Bakkies Gatvol <user-66e2e196cd54@xymon.invalid> wrote:


I compiled xymon-4.3.10 on a development server. Now I copied the "install" over to a production server. Here is what I see.

if I do a findhost via

http://prodserver/xymondev1-cgi/findhost.sh


if the checkbox Jump to page is checked - it "jumps" to the development server. If I uncheck the box - it shows a link which works correctly.


If there is a better/approved way to move the installed code ... let me know!