(TS) Trying to setup xymon on a VoIP asterisk server
list Tom Schmitt
I have loaded a CentOS 6.6 server and installed PBX-in-a-Flash (PiaF) VoIP server on it. I then installed xymon on the same server and allow it to use VoIP and text-to-speech for certain urgent and or out-of-ban alerting. This is a home project for me. Before retiring is was monitoring 1,200 devices and using 'ssh' to move requests to the PiaF server for this function. I thought the next logical progression would be to use the same server for both functions. I am having the same problem that I have with just installing a CentOS server with xymon on it. I added the additional commands from the installation to the end of the http configuration file but I cannot bring up the xymon web page. In this installation, the apache runs under 'asterisk/asterisk'. Is there some directive that I am missing to allow apache to access the xymon pages in the xymon installation under the 'xymon/xymon' permissions? I have written many scripts that I cannot test out under the latest xymon software release and make available to the community. This is the same problem that I was having earlier and have not found the solution to. I also wanted to try allowing someone to be able to call into the VoIP side to retire an alert, etc. Thanks, Tom Schmitt
list Japheth Cleaver
▸
On Wed, May 6, 2015 11:00 pm, Tom Schmitt wrote:
I have loaded a CentOS 6.6 server and installed PBX-in-a-Flash (PiaF) VoIP server on it. I then installed xymon on the same server and allow it to use VoIP and text-to-speech for certain urgent and or out-of-ban alerting. This is a home project for me. Before retiring is was monitoring 1,200 devices and using 'ssh' to move requests to the PiaF server for this function. I thought the next logical progression would be to use the same server for both functions. I am having the same problem that I have with just installing a CentOS server with xymon on it. I added the additional commands from the installation to the end of the http configuration file but I cannot bring up the xymon web page. In this installation, the apache runs under 'asterisk/asterisk'. Is there some directive that I am missing to allow apache to access the xymon pages in the xymon installation under the 'xymon/xymon' permissions? I have written many scripts that I cannot test out under the latest xymon software release and make available to the community. This is the same problem that I was having earlier and have not found the solution to. I also wanted to try allowing someone to be able to call into the VoIP side to retire an alert, etc. Thanks, Tom Schmitt
Hi Tom,
Can you describe what's happening when you try to pull up the pages? I'd
most likely wager that it's a permissions issue either in xymon writing to
the directory in question, and/or apache reading back out of the dir. As
always, SELinux is a possibility as well.
If it's CentOS 6.x, then apache would be 2.2 by default, so the
authentication issues you'd had earlier wouldn't be the cause.
Are you seeing anything in your current xymongen or Apache log files that
looks unusual?
Regards,
-jc
list Tom Schmitt
sestatus SELinux: disabled http://<server-ip>/xymon you get HTTP 404 Not Found http://<server-ip>/xymon error_log: [date & time] [error][client <client-ip>] File does not exist: /var/www/html/xymon access_log: IP of client - - [date&time] "GET /xymon HTTP/1.1" 404 284 "-" "Mozilla/5.0 (compatible; MSIE 10.0 Windows NT 6.2; wow64; Trident/6.0)" If I try http://<server-ip>/xymon/ Forbidden You don't have permission to access /xymon/ on this server. Apache/2.2.15 (CentOS) Server at <server-ip> port 80 I have attached a copy of the current /etc/httpd/confs/httpd.conf file: Thanks, Tom Schmitt
▸
On Thu, May 7, 2015 at 3:01 AM, J.C. Cleaver <user-87556346d4af@xymon.invalid> wrote:
On Wed, May 6, 2015 11:00 pm, Tom Schmitt wrote:I have loaded a CentOS 6.6 server and installed PBX-in-a-Flash (PiaF)VoIPserver on it. I then installed xymon on the same server and allow it to use VoIP and text-to-speech for certain urgent and or out-of-ban alerting. This is a home project for me. Before retiring is was monitoring 1,200 devices and using 'ssh' to move requests to the PiaF server for this function. I thought the next logical progression would be to use the same server for both functions. I am having the same problem that I have with just installing a CentOS server with xymon on it. I added the additional commands from the installation to the end of the http configuration file but I cannot bring up the xymon web page. In this installation, the apache runs under 'asterisk/asterisk'. Is there some directive that I am missing to allow apache to access the xymon pages in the xymon installation under the 'xymon/xymon' permissions? I have written many scripts that I cannot test out under the latest xymon software release and make available to the community. This is the same problem that I was having earlier and have not found the solution to. I also wanted to try allowing someone to be able to call into the VoIP side to retire an alert, etc. Thanks, Tom SchmittHi Tom, Can you describe what's happening when you try to pull up the pages? I'd most likely wager that it's a permissions issue either in xymon writing to the directory in question, and/or apache reading back out of the dir. As always, SELinux is a possibility as well. If it's CentOS 6.x, then apache would be 2.2 by default, so the authentication issues you'd had earlier wouldn't be the cause. Are you seeing anything in your current xymongen or Apache log files that looks unusual? Regards, -jc
Attachments (1)
list Jeremy Laidman
On 8 May 2015 at 10:02, Tom Schmitt <user-6bdb181ad4fe@xymon.invalid> wrote:
File does not exist: /var/www/html/xymon
The web server is looking for web pages in /var/www/html/xymon/. But the
config file shows:
<Directory "/home/xymon/server/www">
Options Indexes FollowSymLinks Includes MultiViews
Order allow,deny
Allow from all
</Directory>
The log suggests that you're URL is not hitting the "Alias", which is:
Alias /xymon/ "/home/xymon/server/www/"
Hmm. Have you tried appending a trailing slash in your browser?
Cheers
Jeremy
list Jeremy Laidman
And following on from this, my Apache server would give me a "not found" page if I didn't append the trailing slash to the URL. So I added this to my config file: Alias /xymon "/var/lib/xymon/www/" Note the lack of trailing slash on the first term. Now I don't need the trailing slash in my URL. Give it a try and see if it works for you. Another suggestion, your httpd.conf file specifies an include directory. You might consider putting the Xymon configuration part in a separate file in conf.d, called (for example) xymon-apache.conf. That way, you don't lose your config if an Apache upgrade replaces your httpd.conf file. Cheers Jeremy
▸
On 8 May 2015 at 11:12, Jeremy Laidman <user-71895fb2e44c@xymon.invalid> wrote:
On 8 May 2015 at 10:02, Tom Schmitt <user-6bdb181ad4fe@xymon.invalid> wrote:File does not exist: /var/www/html/xymonThe web server is looking for web pages in /var/www/html/xymon/. But the config file shows: <Directory "/home/xymon/server/www"> Options Indexes FollowSymLinks Includes MultiViews Order allow,deny Allow from all </Directory> The log suggests that you're URL is not hitting the "Alias", which is: Alias /xymon/ "/home/xymon/server/www/" Hmm. Have you tried appending a trailing slash in your browser? Cheers Jeremy
list Tom Schmitt
I still got the same results:
/xymon 404
/xymon/ permissions problem
I separated the xymon apache config and placed it in the conf.d directory
the same problem as above
so I tried to re-install xymon in the asterisk home directory
I had to allow login in the passwd file from /sbin/nologin -> /bin/bash
this created a huge mess as the paths in xymon all want you to use the
xymon user location.
I removed it from the asterisk directory and re-installed it in the xymon
user directory.
I then went changed permissions:
chgrp asterisk /home/xymon
chgrp asterisk /home/xymon/cgi-bin
chgrp asterisk /home/xymon/cgi-secure
chmod 775 /home/xymon
chmod 775 /home/xymon/cgi-bin
chmod 775 /home/xymon/cgi-secure
and now I can access the xymon web pages
I don't know if there will be other bumps in the accesses but I will
continue to work on them
Thanks all (Jeremy, J C, any anyone else I missed)
I'll try testing some of my scripts as soon as I setup some additional
devices, etc.
Thanks Again!!!
Tom Schmitt
On Thu, May 7, 2015 at 9:30 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid>
▸
wrote:
And following on from this, my Apache server would give me a "not found" page if I didn't append the trailing slash to the URL. So I added this to my config file: Alias /xymon "/var/lib/xymon/www/" Note the lack of trailing slash on the first term. Now I don't need the trailing slash in my URL. Give it a try and see if it works for you. Another suggestion, your httpd.conf file specifies an include directory. You might consider putting the Xymon configuration part in a separate file in conf.d, called (for example) xymon-apache.conf. That way, you don't lose your config if an Apache upgrade replaces your httpd.conf file. Cheers Jeremy On 8 May 2015 at 11:12, Jeremy Laidman <user-71895fb2e44c@xymon.invalid> wrote:On 8 May 2015 at 10:02, Tom Schmitt <user-6bdb181ad4fe@xymon.invalid> wrote:File does not exist: /var/www/html/xymonThe web server is looking for web pages in /var/www/html/xymon/. But the config file shows: <Directory "/home/xymon/server/www"> Options Indexes FollowSymLinks Includes MultiViews Order allow,deny Allow from all </Directory> The log suggests that you're URL is not hitting the "Alias", which is: Alias /xymon/ "/home/xymon/server/www/" Hmm. Have you tried appending a trailing slash in your browser? Cheers Jeremy