[Xymon] Xymon Proxy + Xymon Server
Adam Goryachev
mailinglists at websitemanagers.com.au
Tue Oct 13 13:14:29 CEST 2015
Hi all,
I was previously running an old version of hobbit and recently upgraded
to Xymon (finally). I'm struggling again with the configuration of what
must be an unusual case.
The setup:
Xymon server running on the main monitoring server in the office,
internal IP is 192.168.x.1 and external IP does NAT for port 1984 into
this internal IP so remote xymon clients can report in.
At one location, the network consists of a linux based firewall, plus a
bunch of servers. The firewall doesn't do NAT or any sort of forwarding,
so all connections between the Internet and this bunch of servers must
transit the squid proxy on the firewall (or similar). I also run a local
xymon server on the linux firewall, and this works well. However, I want
to forward all the status of everything back to the main xymon server in
the office above.
So, the obvious solution is to use the xymon proxy to receive reports
from the "bunch of servers" and then send the data to both the local
xymon server as well as the office xymon server. To do this I've
configured things like this:
From tasks.cfg:
# Listen on 127.0.0.1 only
[xymond]
ENVFILE /usr/lib/xymon/server/etc/xymonserver.cfg
CMD xymond --pidfile=/var/run/xymon/xymond.pid \
--restart=$XYMONTMP/xymond.chk
--checkpoint-file=$XYMONTMP/xymond.chk --checkpoint-interval=600 \
--log=$XYMONSERVERLOGS/xymond.log \
--admin-senders=127.0.0.1,$XYMONSERVERIP \
--store-clientlogs=!msgs \
--listen=127.0.0.1
# Listen on the internal LAN IP, and send data to both 127.0.0.1 and the
office xymon server
[xymonproxy]
ENVFILE /usr/lib/xymon/server/etc/xymonserver.cfg
CMD $XYMONHOME/bin/xymonproxy --server=X.23.7.2,127.0.0.1
--listen=10.0.0.1 --report=$MACHINE.xymonproxy --no-daemon
--pidfile=/var/run/xymon/xymonproxy.pid
LOGFILE $XYMONSERVERLOGS/xymonproxy.log
All the other normal xymon server tasks are enabled as well, such as
xymonnet etc...
However, if I set XYMONSERVERS=127.0.0.1 everything works well, except
that most status reports from xymonnet and xymonclient don't get sent to
the remote xymon server (since they don't get to the proxy).
If I set XYMONSERVERS to the LAN IP of the xymon proxy 10.0.0.1 then all
the status reports are sent to both servers, but the web interface is
broken. Clicking on a dot to see the current status gives a error
message 403 Invalid host.
So, is there something I'm missing with my config? Should the proxy
allow the www pages to work by passing whatever query through? How can I
override XYMONSERVERS value depending on where it is used, and how do I
know which parts I need to override?
Any suggestions?
Thanks,
Adam
More information about the Xymon
mailing list