Issues logging into Xymon after new install Ubuntu 16.04
list Mdeal5
Folks, I'm a newbie to xymon and not the strongest linux user admittedly. I've gone through the available documentation that I've been able to locate and I am completely stumped and stuck. No matter what I do, I get an error 403 when I try to access the Xymon server page. So. My first question. Do I have to access the Xymon web page from the local host or can I access it from a web browser on another host? If I can access it from a browser on a different machine, what steps do I need to take to diagnose why I can't access the webpages? From what I can determine, the Xymon service is active and running. I've started, stopped, and restarted them multiple times using sudo service xymon <command>. ps afx | grep hobbit yields user at utility:/usr/lib/xymon/server/etc$ ps afx | grep hobbit 5631 pts/0 S+ 0:00 \_ grep --color=auto hobbit ps afx| grep hobbit | grep -v grep yields nothing. I've restarted apache2 services in a similar fashion after changing Allow from localhost to Allow from all. Still nothing. I've seen a few threads with similar questions, but none of them have been very helpful and I can't figure out anything else to do. Where do I start to unravel this particular gordian knot? And I apologize for being long winded. Sponsored by https://www.newser.com/?utm_source=part&utm_medium=uol&utm_campaign=rss_taglines_more For First Time in Weeks, Most States See Increase in Cases http://thirdpartyoffers.juno.com/TGL3131/603d6fd1b33e66fd17e8est03vuc1 Democrats Unveil 'Ultra-Millionaire Tax Act' http://thirdpartyoffers.juno.com/TGL3131/603d6fd1d3b766fd17e8est03vuc2 John Oliver Points Out 'Pretty Weird' Cuomo Habit http://thirdpartyoffers.juno.com/TGL3131/603d6fd1f31466fd17e8est03vuc3
list Jeremy Laidman
Hi mdeal.
▸
On Tue, 2 Mar 2021 at 09:51, user-824b09fb9705@xymon.invalid <user-824b09fb9705@xymon.invalid> wrote:
Folks, I'm a newbie to xymon and not the strongest linux user admittedly.
Welcome to Xymon.
▸
I've gone through the available documentation that I've been able to locate and I am completely stumped and stuck. No matter what I do, I get an error 403 when I try to access the Xymon server page.
A 403 error means forbidden. This could be due to several things, such as the user that Apache runs as, does not have access to the directory where the Xymon web pages are stored. Or it could be a restriction configured within Apache.
▸
So. My first question. Do I have to access the Xymon web page from the local host or can I access it from a web browser on another host?
Typically, you don't need to be on the host that runs Apache.
▸
If I can access it from a browser on a different machine, what steps do Ineed to take to diagnose why I can't access the webpages?
I'd be taking a look at the web server error logs. Often it will provide a bit more information about why the 403 error was given.
▸
From what I can determine, the Xymon service is active and running. I'vestarted, stopped, and restarted them multiple times using sudo service xymon <command>. ps afx | grep hobbit yields
Try replacing "hobbit" with "xymon": ps afx | grep xymon
▸
I've restarted apache2 services in a similar fashion after changing Allow from localhost to Allow from all. Still nothing. I've seen a few threads with similar questions, but none of them have been very helpful and I can't figure out anything else to do. Where do I start to unravel this particular gordian knot? And I apologize for being long winded.
This seems to be an Apache problem rather than a Xymon problem. To make sure the Xymon part is working, take a look at the Xymon "www" directory to see if there's a new index.html file there. If there is, then Xymon is working fine, and your only problem is getting that file displayed in your browser. The Xymon "www" directory is located somewhere like /usr/lib/xymon/server/www/, or ~xymon/server/www (where ~xymon expands to the xymon user's home directory). So for example: ls -l ~xymon/server/www/ Or you should be able to find the directory name with: xymoncmd echo '$XYMONWWWDIR' and list its contents with: xymoncmd ls -l '$XYMONWWWDIR'/ (the trailing slash is required for systems, such as mine, where the directory is actually a symbolic link) Cheers Jeremy
list Mdeal5
Just in the hopes of saving someone else the arduous journey that I went through. This turned out to be a permissions error. So. With Xymon 4.3.25 running on Ubuntu 16.04 server with Apache2 2.4.18, I was able to fix the 403 Forbidden error by editing the /etc/apache2/conf-available/xymon.cfg file and replacing every instance of Require local with Require all granted. After a restart of the apache2 server, and a restart of xymon, just to be on the safe side, everything worked out fine. The primary issue for me was that the xymon log files had errors, but following those errors never led me in the direction of determining that they were caused by permissions being used by Apache. If I had any hair, I'd have pulled it out by now. Sponsored by https://www.newser.com/?utm_source=part&utm_medium=uol&utm_campaign=rss_taglines_more Police: Possible Plot to Attack Capitol Tomorrow http://thirdpartyoffers.juno.com/TGL3131/603fe9f7e370669f711f3st02vuc1 The Way Trump Called for Donations Raised Eyebrows http://thirdpartyoffers.juno.com/TGL3131/603fe9f812d3669f711f3st02vuc2 'It's Comical,' Woman Says of Outcome of KKK Flag Incident http://thirdpartyoffers.juno.com/TGL3131/603fe9f83622169f711f3st02vuc3
list Jeremy Laidman
Thanks for the update. This is likely to help others. I'm guessing your Xymon log files continue to have errors? The README.debian file contains this helpful tip (Ubuntu is based on Debian): - Access to the monitoring website is restricted to localhost by default. Edit /etc/apache2/conf-available/xymon to change this. Hindsight...
▸
On Thu, 4 Mar 2021 at 06:57, user-824b09fb9705@xymon.invalid <user-824b09fb9705@xymon.invalid> wrote:
Just in the hopes of saving someone else the arduous journey that I went through. This turned out to be a permissions error. So. With Xymon 4.3.25 running on Ubuntu 16.04 server with Apache2 2.4.18, I was able to fix the 403 Forbidden error by editing the /etc/apache2/conf-available/xymon.cfg file and replacing every instance of Require local with Require all granted. After a restart of the apache2 server, and a restart of xymon, just to be on the safe side, everything worked out fine. The primary issue for me was that the xymon log files had errors, but following those errors never led me in the direction of determining that they were caused by permissions being used by Apache. If I had any hair, I'd have pulled it out by now.
Top News - Sponsored By Newser <https://www.newser.com/?utm_source=part&utm_medium=uol&utm_campaign=rss_taglines_more>; - *Police: Possible Plot to Attack Capitol Tomorrow* <http://thirdpartyoffers.juno.com/TGL3132/603fe9f7e370669f711f3st02vuc1>; - *The Way Trump Called for Donations Raised Eyebrows* <http://thirdpartyoffers.juno.com/TGL3132/603fe9f812d3669f711f3st02vuc2>; - *'It's Comical,' Woman Says of Outcome of KKK Flag Incident* <http://thirdpartyoffers.juno.com/TGL3132/603fe9f83622169f711f3st02vuc3>;