[Xymon] Keep getting 403 Forbidden on /xymon

Mike Burger mburger at bubbanfriends.org
Tue Dec 10 16:56:27 CET 2013


> Xymon is running as best I can tell.  Below are the pids I see after
> starting it.
>
> [user at buildsystem logs]$ ps -ef | grep xymon
> xymon     5404     1  0 14:35 ?        00:00:00
> /usr/local/xymon/server/bin/xymonlaunch
> --config=/usr/local/xymon/server/etc/tasks.cfg
> --env=/usr/local/xymon/server/etc/xymonserver.cfg
> --log=/usr/local/xymon/logs/xymonlaunch.log
> --pidfile=/usr/local/xymon/logs/xymonlaunch.pid
> xymon     5405  5404  0 14:35 ?        00:00:00 xymond
> --pidfile=/usr/local/xymon/logs/xymond.pid
> --restart=/usr/local/xymon/server/tmp/xymond.chk
> --checkpoint-file=/usr/local/xymon/server/tmp/xymond.chk
> --checkpoint-interval=600 --log=/usr/local/xymon/logs/xymond.log
> --admin-senders=127.0.0.1 0.0.0.0 --store-clientlogs=!msgs
> xymon     5490  5404  0 14:35 ?        00:00:00 xymond_channel
> --channel=stachg --log=/usr/local/xymon/logs/history.log xymond_history
> --pidfile=/usr/local/xymon/logs/xymond_history.pid
> xymon     5491  5404  0 14:35 ?        00:00:00 xymond_channel
> --channel=page --log=/usr/local/xymon/logs/alert.log xymond_alert
> --checkpoint-file=/usr/local/xymon/server/tmp/alert.chk
> --checkpoint-interval=600
> xymon     5492  5404  0 14:35 ?        00:00:00 xymond_channel
> --channel=client --log=/usr/local/xymon/logs/clientdata.log xymond_client
> xymon     5493  5404  0 14:35 ?        00:00:00 xymond_channel
> --channel=status --log=/usr/local/xymon/logs/rrd-status.log xymond_rrd
> --rrddir=/usr/local/xymon/data/rrd
> xymon     5494  5404  0 14:35 ?        00:00:00 xymond_channel
> --channel=data --log=/usr/local/xymon/logs/rrd-data.log xymond_rrd
> --rrddir=/usr/local/xymon/data/rrd
> xymon     5495  5404  0 14:35 ?        00:00:00 xymond_channel
> --channel=clichg --log=/usr/local/xymon/logs/hostdata.log xymond_hostdata
> xymon     5500  5404  0 14:35 ?        00:00:00 /bin/sh
> /usr/local/xymon/client/bin/xymonclient.sh
> xymon     5509  5500  0 14:35 ?        00:00:00 /bin/sh
> /usr/local/xymon/client/bin/xymonclient-linux.sh
> xymon     5538  5509  0 14:35 ?        00:00:00 sh -c vmstat 300 2
> 1>/usr/local/xymon/client/tmp/xymon_vmstat.buildsystem.xyz.net.5509 2>&1;
> mv /usr/local/xymon/client/tmp/xymon_vmstat.buildsystem.xyz.net.5509
> /usr/local/xymon/client/tmp/xymon_vmstat.buildsystem.xyz.net
> xymon     5539  5509  0 14:35 ?        00:00:00 sleep 5
> xymon     5540  5538  0 14:35 ?        00:00:00 vmstat 300 2
>
>
> Here's what in the logs:
>
> xymonlaunch.log
> 2013-12-09 14:35:05 xymonlaunch starting
> 2013-12-09 14:35:05 Loading tasklist configuration from
> /usr/local/xymon/server/etc/tasks.cfg
> 2013-12-09 14:35:05 Cannot open directory
> /usr/local/xymon/server/etc/tasks.d
> 2013-12-09 14:35:05 Loading hostnames
> 2013-12-09 14:35:05 Loading saved state
> 2013-12-09 14:35:05 Setting up network listener on 0.0.0.0:1984
> 2013-12-09 14:35:05 Setting up signal handlers
> 2013-12-09 14:35:05 Setting up xymond channels
> 2013-12-09 14:35:05 Setting up logfiles
>
> xymongen.log
> 2013-12-09 14:35:10 xymond status-board not available, code 0
> 2013-12-09 14:35:10 Failed to load current Xymon status, aborting
> page-update
> 2013-12-09 14:36:10 xymond status-board not available, code 0
> 2013-12-09 14:36:10 Failed to load current Xymon status, aborting
> page-update
> 2013-12-09 14:37:10 xymond status-board not available, code 0
> 2013-12-09 14:37:10 Failed to load current Xymon status, aborting
> page-update
>
> xymond.log
> 2013-12-09 14:35:05 Setup complete
>
> xymonclient.log
> df: '/run/user/1005/gvfs': Permission denied
> df: '/run/user/1005/gvfs': Permission denied
> /usr/local/xymon/client/local/README: line 1: This: command not found
> install: target 'run' is not a directory
> /usr/local/xymon/client/local/README: line 3: all: command not found
> /usr/local/xymon/client/local/README: line 4: output: command not found
> /usr/local/xymon/client/local/README: line 5: message: command not found
> /usr/local/xymon/client/local/README: line 7: This: command not found
> /usr/local/xymon/client/local/README: line 7: there: command not found
> /usr/local/xymon/client/local/README: line 8: is: command not found
> /usr/local/xymon/client/local/README: line 9: scripts.: command not found
> /usr/local/xymon/client/local/README: line 11: If: command not found
> /usr/local/xymon/client/local/README: line 12: status: command not found
> /usr/local/xymon/client/local/README: line 13: instead.: command not found

403 Forbidden errors are coming from the web server, and are likely not
due to whether or not Xymon is running. They're usually due to the web
server being unable to access the directory structure where Xymon keeps
its data and html files.

Silly question time:

Since I'm assuming that your xymon-apache.conf file is in
/usr/local/xymon/server/etc, has it either been copied to or symlinked
into your httpd conf.d directory (assuming a Red Hat based system,
/etc/httpd/conf.d)? If not, do so (I created a symlink
/etc/httpd/conf.d/xymon.conf pointing at my
$XYMONDIR/etc/xymon-apache.conf), and reload/restart apache.

Assuming that the configuration is in the correct place, and the Alias and
ScriptAlias sections have been properly configured to point to the
location of your Xymon installation, are the permissions on the Xymon www
directory (and its contents) properly configured to allow apache to read
the? If not, make it so (the installation should have taken care of that,
but one never knows).

-- 
Mike Burger
http://www.bubbanfriends.org

"It's always suicide-mission this, save-the-planet that. No one ever just
stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1






More information about the Xymon mailing list