Xymon Mailing List Archive search

xymon server "could not load hostdata" issue

7 messages in this thread

list Mania Bogdan · Fri, 27 Jun 2014 02:06:30 -0700 ·
Hi,

I'm facing an issue with the xymon server. 

I have setup a fresh installation of xymon 4.3.17 on a RHEL 6 box. I have only the server defined in hosts.cfg. The main page displays ok, but when I click on a "smiley" it just shows "Cannot load host configuration". In the xymonnet.log I get the following:

2014-06-27 04:24:51 ->  Could not connect to Xymon daemon at 10.106.50.129:1984 (Connection refused)
2014-06-27 04:24:51 ->  Recipient '10.106.50.129', timeout 15
2014-06-27 04:24:51 ->  1st line: 'extcombo 2000 2291 2617'

I also get this in the Apache error_log:

[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] 2014-06-27 05:01:01 , referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] ->  connect to Xymon daemon at 10.106.50.129:1984 failed (Permission denied), referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn

[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27 05:03:31 , referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->  Recipient '10.106.50.129', timeout 15, referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27 05:03:31 , referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->  1st line: 'hostinfo clone=watchdog.stage.ppaws.net', referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27 05:03:31 , referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn


I have setup the host in /etc/hosts file, the name is resolvable, the 1984 port is opened and accepting connections. The only solution I could find online was to restart the server but that didn't help.

I'm fairly new to xymon, so if I missed something and if any additional info is required I'll be happy to provide.

Thanks.
list Japheth Cleaver · Fri, 27 Jun 2014 02:43:05 -0700 ·
It seems like both xymonnet and the svcstatus.sh CGI are having problems
communicating back with xymond.

First step, can you verify that xymond is in fact up and running OK? Is
there any error output in xymond.log?

Based on the logs below, it seems 10.106.50.129 the server's own
XYMONSERVER IP address? If so, can you connect locally on port 1984 to it?
Or run 'xymon 10.106.50.129 ping' from the command line?

For svcstatus.sh, do you see any possible SELinux errors in
/var/log/audit/audit.log indicated blocks?


HTH,

-jc
quoted from Mania Bogdan


On Fri, June 27, 2014 2:06 am, mania bogdan wrote:
Hi,

I'm facing an issue with the xymon server. 

I have setup a fresh installation of xymon 4.3.17 on a RHEL 6 box. I have
only the server defined in hosts.cfg. The main page displays ok, but when
I click on a "smiley" it just shows "Cannot load host configuration". In
the xymonnet.log I get the following:

2014-06-27 04:24:51 ->  Could not connect to Xymon
daemon at 10.106.50.129:1984 (Connection refused)
2014-06-27 04:24:51 ->  Recipient '10.106.50.129', timeout 15
2014-06-27 04:24:51 ->  1st line: 'extcombo 2000 2291 2617'

I also get this in the Apache error_log:

[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] 2014-06-27
05:01:01 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] ->  connect to
Xymon daemon at 10.106.50.129:1984 failed (Permission denied), referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn

[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->  Recipient
'10.106.50.129', timeout 15, referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->  1st line:
'hostinfo clone=watchdog.stage.ppaws.net', referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn


I have setup the host in /etc/hosts file, the name is resolvable, the 1984
port is opened and accepting connections. The only solution I could find
online was to restart the server but that didn't help.

I'm fairly new to xymon, so if I missed something and if any additional
info is required I'll be happy to provide.

Thanks.
list Paul Jacobs · Fri, 27 Jun 2014 09:48:54 +0000 ·
I had similar problems with RHEL7 and 4.3.17 , it was the apache config that turned out to be the culprit. I had to change some of the options for Xymon directories

Alias /xymon/  "/opt/xymon/server/www/"
<Directory "/opt/xymon/server/www">
Options All
AllowOverride All
Require all granted
</Directory>

ScriptAlias /xymon-cgi/ "/opt/xymon/cgi-bin/"
<Directory "/opt/xymon/cgi-bin">
    Allow from all
Options All
AllowOverride All
Require all granted
</Directory>

ScriptAlias /xymon-seccgi/ "/opt/xymon/cgi-secure/"
<Directory "/opt/xymon/cgi-secure">
    AllowOverride None
    Options ExecCGI Includes
    Order allow,deny
    Allow from all
quoted from Mania Bogdan


From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of mania bogdan
Sent: 27 June 2014 10:07
To: xymon at xymon.com
Subject: [Xymon] xymon server "could not load hostdata" issue

Hi,

I'm facing an issue with the xymon server.

I have setup a fresh installation of xymon 4.3.17 on a RHEL 6 box. I have only the server defined in hosts.cfg. The main page displays ok, but when I click on a "smiley" it just shows "Cannot load host configuration". In the xymonnet.log I get the following:

2014-06-27 04:24:51 ->  Could not connect to Xymon daemon at 10.106.50.129:1984<mailto:daemon at 10.106.50.129:1984> (Connection refused)
quoted from Japheth Cleaver
2014-06-27 04:24:51 ->  Recipient '10.106.50.129', timeout 15
2014-06-27 04:24:51 ->  1st line: 'extcombo 2000 2291 2617'

I also get this in the Apache error_log:

[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] 2014-06-27 05:01:01 , referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn

[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] ->  connect to Xymon daemon at 10.106.50.129:1984<mailto:daemon at 10.106.50.129:1984> failed (Permission denied), referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
quoted from Japheth Cleaver

[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27 05:03:31 , referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->  Recipient '10.106.50.129', timeout 15, referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27 05:03:31 , referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->  1st line: 'hostinfo clone=watchdog.stage.ppaws.net', referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27 05:03:31 , referer: http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn


I have setup the host in /etc/hosts file, the name is resolvable, the 1984 port is opened and accepting connections. The only solution I could find online was to restart the server but that didn't help.

I'm fairly new to xymon, so if I missed something and if any additional info is required I'll be happy to provide.

Thanks.

A copy of the LCH.Clearnet e-mail disclaimer can be found at: www.lchclearnet.com/disclaimer/email

LCH.Clearnet Limited, Registered Office: Aldgate House, 33 Aldgate High Street, London EC3N 1EA. Recognised as a Clearing House under the Financial Services & Markets Act 2000. Reg. in England No. 25932.
LCH.Clearnet SA, Siège Social: 18 rue du Quatre Septembre, 75002 Paris, Chambre de Compensation conformément au Code Monétaire et Financier.
LCH.Clearnet LLC, Principal Office: 17 State Street, New York, NY 10004. Registered with the U.S. Commodity Futures Trading Commission as a derivatives clearing organization under the U.S. Commodity Exchange Act.
list Mania Bogdan · Fri, 27 Jun 2014 06:22:35 -0700 ·
Hi,

Thank you for the quick response. 

@Paul: nothing seems to be wrong with Apache, I played with the configuration to no avail. I'm attaching it for reference.

@JC: It seems xymon daemon is running ok, no errors in xymond.log. I can connect to the server on port 1984 both locally and remote. xymon 10.106.50.129 ping command returns the server version.

In audit.log I have this:

type=SYSCALL msg=audit(1403874936.111:817): arch=c000003e syscall=42 success=no exit=-13 a0=3 a1=7fff0a176f60 a2=10 a3=1999999999999999 items=0 ppid=18345 pid=18518 auid=500 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=1 comm="svcstatus.cgi" exe="/usr/libexec/xymon/svcstatus.cgi" subj=unconfined_u:system_r:httpd_sys_script_t:s0 key=(null)
type=AVC msg=audit(1403874966.329:820): avc:  denied  { name_connect } for  pid=18645 comm="svcstatus.cgi" dest=1984 scontext=unconfined_u:system_r:httpd_sys_script_t:s0 tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket

I need to mention however that I installed xymon from a custom repo found online because, well, I was lazy to build from source :) 

Thanks.
quoted from Paul Jacobs

 


On Friday, June 27, 2014 1:09 PM, J.C. Cleaver <user-87556346d4af@xymon.invalid> wrote:
 

It seems like both xymonnet and the svcstatus.sh CGI are having problems
communicating back with xymond.

First step, can you verify that xymond is in fact up and running OK? Is
there any error output in xymond.log?

Based on the logs below, it seems 10.106.50.129 the server's own
XYMONSERVER IP address? If so, can you connect locally on port 1984 to it?
Or run 'xymon 10.106.50.129 ping' from the command line?

For svcstatus.sh, do you see any possible SELinux errors in
/var/log/audit/audit.log indicated blocks?


HTH,

-jc


On Fri, June 27, 2014 2:06 am, mania bogdan wrote:
Hi,

I'm facing an issue with the xymon server. 

I have setup a fresh installation of xymon 4.3.17 on a RHEL 6 box. I have
only the server defined in hosts.cfg. The main page displays ok, but when
I click on a "smiley" it just shows "Cannot load host configuration". In
the xymonnet.log I get the following:

2014-06-27 04:24:51 ->  Could not connect to Xymon
daemon at 10.106.50.129:1984 (Connection refused)
2014-06-27 04:24:51 ->  Recipient '10.106.50.129', timeout 15
2014-06-27 04:24:51 ->  1st line: 'extcombo 2000 2291 2617'

I also get this in the Apache error_log:

[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] 2014-06-27
05:01:01 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] ->  connect to
Xymon daemon at 10.106.50.129:1984 failed (Permission denied), referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn

[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->  Recipient
'10.106.50.129', timeout 15, referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->  1st line:
'hostinfo clone=watchdog.stage.ppaws.net', referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn


I have setup the host in /etc/hosts file, the name is resolvable, the 1984
port is opened and accepting connections. The only solution I could find
online was to restart the server but that didn't help.

I'm fairly new to xymon, so if I missed something and if any additional
info is required I'll be happy to provide.

Thanks.
Attachments (1)
list Iain M. Conochie · Fri, 27 Jun 2014 15:56:54 +0100 ·
Looks like selinux is denying the request.
quoted from Mania Bogdan

On June 27, 2014 2:22:35 PM GMT+01:00, mania bogdan <user-73cdd2eb67ce@xymon.invalid> wrote:
Hi,

Thank you for the quick response. 

@Paul: nothing seems to be wrong with Apache, I played with the
configuration to no avail. I'm attaching it for reference.

@JC: It seems xymon daemon is running ok, no errors in xymond.log. I
can connect to the server on port 1984 both locally and remote. xymon
10.106.50.129 ping command returns the server version.

In audit.log I have this:

type=SYSCALL msg=audit(1403874936.111:817): arch=c000003e syscall=42
success=no exit=-13 a0=3 a1=7fff0a176f60 a2=10 a3=1999999999999999
items=0 ppid=18345 pid=18518 auid=500 uid=48 gid=48 euid=48 suid=48
fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=1 comm="svcstatus.cgi"
exe="/usr/libexec/xymon/svcstatus.cgi"
subj=unconfined_u:system_r:httpd_sys_script_t:s0 key=(null)
type=AVC msg=audit(1403874966.329:820): avc:  denied  { name_connect }
for  pid=18645 comm="svcstatus.cgi" dest=1984
scontext=unconfined_u:system_r:httpd_sys_script_t:s0
tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket

I need to mention however that I installed xymon from a custom repo
found online because, well, I was lazy to build from source :) 

Thanks.

 


On Friday, June 27, 2014 1:09 PM, J.C. Cleaver <user-87556346d4af@xymon.invalid>
wrote:


It seems like both xymonnet and the svcstatus.sh CGI are having
problems
communicating back with xymond.

First step, can you verify that xymond is in fact up and running OK? Is
there any error output in xymond.log?

Based on the logs below, it seems 10.106.50.129 the server's own
XYMONSERVER IP address? If so, can you connect locally on port 1984 to
it?
Or run 'xymon 10.106.50.129 ping' from the command line?

For svcstatus.sh, do you see any possible SELinux errors in
/var/log/audit/audit.log indicated blocks?


HTH,

-jc


On Fri, June 27, 2014 2:06 am, mania bogdan wrote:
Hi,

I'm facing an issue with the xymon server. 

I have setup a fresh installation of xymon 4.3.17 on a RHEL 6 box. I
have
only the server defined in hosts.cfg. The main page displays ok, but
when
I click on a "smiley" it just shows "Cannot load host configuration".
In
the xymonnet.log I get the following:

2014-06-27 04:24:51 ->  Could not connect to Xymon
daemon at 10.106.50.129:1984 (Connection refused)
2014-06-27 04:24:51 ->  Recipient '10.106.50.129', timeout 15
2014-06-27 04:24:51 ->  1st line: 'extcombo 2000 2291 2617'

I also get this in the Apache error_log:

[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] 2014-06-27
05:01:01 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] ->  connect
to
Xymon daemon at 10.106.50.129:1984 failed (Permission denied), referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->
 Recipient
'10.106.50.129', timeout 15, referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->  1st
line:
'hostinfo clone=watchdog.stage.ppaws.net', referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn

I have setup the host in /etc/hosts file, the name is resolvable, the
1984
port is opened and accepting connections. The only solution I could
find
online was to restart the server but that didn't help.

I'm fairly new to xymon, so if I missed something and if any
additional
info is required I'll be happy to provide.

Thanks.
-- 

Sent from my Android phone with K-9 Mail. Please excuse my brevity.
list Japheth Cleaver · Fri, 27 Jun 2014 08:26:01 -0700 ·
Hmm. Can you run /usr/sbin/setsebool -P httpd_can_network_connect on?
and report the output of: ls -lZ /usr/libexec/xymon/svcstatus.cgi
quoted from Iain M. Conochie

-jc


On Fri, June 27, 2014 7:56 am, Iain M. Conochie wrote:
Looks like selinux is denying the request.

On June 27, 2014 2:22:35 PM GMT+01:00, mania bogdan <user-73cdd2eb67ce@xymon.invalid>
wrote:
Hi,

Thank you for the quick response. 
quoted from Iain M. Conochie

@Paul: nothing seems to be wrong with Apache, I played with the
configuration to no avail. I'm attaching it for reference.

@JC: It seems xymon daemon is running ok, no errors in xymond.log. I

can connect to the server on port 1984 both locally and remote. xymon
quoted from Iain M. Conochie
10.106.50.129 ping command returns the server version.

In audit.log I have this:

type=SYSCALL msg=audit(1403874936.111:817): arch=c000003e syscall=42
success=no exit=-13 a0=3 a1=7fff0a176f60 a2=10 a3=1999999999999999
items=0 ppid=18345 pid=18518 auid=500 uid=48 gid=48 euid=48 suid=48
fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=1 comm="svcstatus.cgi"
exe="/usr/libexec/xymon/svcstatus.cgi"
subj=unconfined_u:system_r:httpd_sys_script_t:s0 key=(null)

type=AVC msg=audit(1403874966.329:820): avc:  denied  { name_connect }
for  pid=18645 comm="svcstatus.cgi" dest=1984
quoted from Iain M. Conochie
scontext=unconfined_u:system_r:httpd_sys_script_t:s0
tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket

I need to mention however that I installed xymon from a custom repo

found online because, well, I was lazy to build from source :) 

Thanks.

 
quoted from Iain M. Conochie


On Friday, June 27, 2014 1:09 PM, J.C. Cleaver <user-87556346d4af@xymon.invalid>
wrote:


It seems like both xymonnet and the svcstatus.sh CGI are having
problems
communicating back with xymond.

First step, can you verify that xymond is in fact up and running OK? Is
there any error output in xymond.log?

Based on the logs below, it seems 10.106.50.129 the server's own
XYMONSERVER IP address? If so, can you connect locally on port 1984 to
it?
Or run 'xymon 10.106.50.129 ping' from the command line?

For svcstatus.sh, do you see any possible SELinux errors in
/var/log/audit/audit.log indicated blocks?


HTH,

-jc


On Fri, June 27, 2014 2:06 am, mania bogdan wrote:
Hi,

I'm facing an issue with the xymon server. 
quoted from Iain M. Conochie

I have setup a fresh installation of xymon 4.3.17 on a RHEL 6 box. I
have
only the server defined in hosts.cfg. The main page displays ok, but
when
I click on a "smiley" it just shows "Cannot load host configuration".
In
the xymonnet.log I get the following:

2014-06-27 04:24:51 ->  Could not connect to Xymon
daemon at 10.106.50.129:1984 (Connection refused)
2014-06-27 04:24:51 ->  Recipient '10.106.50.129', timeout 15
2014-06-27 04:24:51 ->  1st line: 'extcombo 2000 2291 2617'
quoted from Iain M. Conochie

I also get this in the Apache error_log:

[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] 2014-06-27
05:01:01 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] ->  connect
quoted from Iain M. Conochie
to
Xymon daemon at 10.106.50.129:1984 failed (Permission denied), referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->
 Recipient
quoted from Iain M. Conochie
'10.106.50.129', timeout 15, referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->  1st
quoted from Iain M. Conochie
line:
'hostinfo clone=watchdog.stage.ppaws.net', referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn

I have setup the host in /etc/hosts file, the name is resolvable, the
1984
port is opened and accepting connections. The only solution I could
find
online was to restart the server but that didn't help.

I'm fairly new to xymon, so if I missed something and if any
additional
info is required I'll be happy to provide.

Thanks.
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
list Mania Bogdan · Sun, 29 Jun 2014 23:26:56 -0700 ·
Hi,

J.C., the output of the command is:

ls -lZ /usr/libexec/xymon/svcstatus.cgi
-rwxr-xr-x. xymon xymon system_u:object_r:bin_t:s0       /usr/libexec/xymon/svcstatus.cgi

I've disabled selinux though and everything seems in order.

Thanks everyone for the quick and helpful responses.
quoted from Japheth Cleaver


On Friday, June 27, 2014 6:26 PM, J.C. Cleaver <user-87556346d4af@xymon.invalid> wrote:
 

Hmm. Can you run /usr/sbin/setsebool -P httpd_can_network_connect on?
and report the output of: ls -lZ /usr/libexec/xymon/svcstatus.cgi

-jc


On Fri, June 27, 2014 7:56 am, Iain M. Conochie wrote:
Looks like selinux is denying the request.

On June 27, 2014 2:22:35 PM GMT+01:00, mania bogdan <user-73cdd2eb67ce@xymon.invalid>
wrote:
Hi,

Thank you for the quick response. 

@Paul: nothing seems to be wrong with Apache, I played with the
configuration to no avail. I'm attaching it for reference.

@JC: It seems xymon daemon is running ok, no errors in xymond.log. I
can connect to the server on port 1984 both locally and remote. xymon
10.106.50.129 ping command returns the server version.

In audit.log I have this:

type=SYSCALL msg=audit(1403874936.111:817): arch=c000003e syscall=42
success=no exit=-13 a0=3 a1=7fff0a176f60 a2=10 a3=1999999999999999
items=0 ppid=18345 pid=18518 auid=500 uid=48 gid=48 euid=48 suid=48
fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=1 comm="svcstatus.cgi"
exe="/usr/libexec/xymon/svcstatus.cgi"
subj=unconfined_u:system_r:httpd_sys_script_t:s0 key=(null)
type=AVC msg=audit(1403874966.329:820): avc:  denied  { name_connect }
for  pid=18645 comm="svcstatus.cgi" dest=1984
scontext=unconfined_u:system_r:httpd_sys_script_t:s0
tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket

I need to mention however that I installed xymon from a custom repo
found online because, well, I was lazy to build from source :) 

Thanks.

 


On Friday, June 27, 2014 1:09 PM, J.C. Cleaver <user-87556346d4af@xymon.invalid>
wrote:


It seems like both xymonnet and the svcstatus.sh CGI are having
problems
communicating back with xymond.

First step, can you verify that xymond is in fact up and running OK? Is
there any error output in xymond.log?

Based on the logs below, it seems 10.106.50.129 the server's own
XYMONSERVER IP address? If so, can you connect locally on port 1984 to
it?
Or run 'xymon 10.106.50.129 ping' from the command line?

For svcstatus.sh, do you see any possible SELinux errors in
/var/log/audit/audit.log indicated blocks?


HTH,

-jc


On Fri, June 27, 2014 2:06 am, mania bogdan wrote:
Hi,

I'm facing an issue with the xymon server. 

I have setup a fresh installation of xymon 4.3.17 on a RHEL 6 box. I
have
only the server defined in hosts.cfg. The main page displays ok, but
when
I click on a "smiley" it just shows "Cannot load host configuration".
In
the xymonnet.log I get the following:

2014-06-27 04:24:51 ->  Could not connect to Xymon
daemon at 10.106.50.129:1984 (Connection refused)
2014-06-27 04:24:51 ->  Recipient '10.106.50.129', timeout 15
2014-06-27 04:24:51 ->  1st line: 'extcombo 2000 2291 2617'

I also get this in the Apache error_log:

[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] 2014-06-27
05:01:01 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] ->  connect
to
Xymon daemon at 10.106.50.129:1984 failed (Permission denied), referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->
 Recipient
'10.106.50.129', timeout 15, referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] ->  1st
line:
'hostinfo clone=watchdog.stage.ppaws.net', referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn
[Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27
05:03:31 , referer:
http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn

I have setup the host in /etc/hosts file, the name is resolvable, the
1984
port is opened and accepting connections. The only solution I could
find
online was to restart the server but that didn't help.

I'm fairly new to xymon, so if I missed something and if any
additional
info is required I'll be happy to provide.

Thanks.
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.