<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:8pt"><div class="" style=""><span class="" style="">Hi,</span></div><div style="color: rgb(0, 0, 0); font-size: 11px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><span class="" style=""><br class="" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 11px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class="">J.C., the output of the command is:</div><div style="color: rgb(0, 0, 0); font-size: 11px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><br class="" style=""></div><div
 style="background-color: transparent;" class="">ls -lZ /usr/libexec/xymon/svcstatus.cgi</div><div style="background-color: transparent;" class="">-rwxr-xr-x. xymon xymon system_u:object_r:bin_t:s0       /usr/libexec/xymon/svcstatus.cgi</div><div style="background-color: transparent;" class=""><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 11px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class="">I've disabled selinux though and everything seems in order.</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 11px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;" class=""><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 11px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande',
 sans-serif; font-style: normal;" class="">Thanks everyone for the quick and helpful responses.</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 8pt;" class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;" class=""> <div dir="ltr" class="" style=""> <font size="2" face="Arial" class="" style=""> On Friday, June 27, 2014 6:26 PM, J.C. Cleaver <cleaver@terabithia.org> wrote:<br class="" style=""> </font> </div>  <br class="" style=""><br class="" style=""> <div class="" style=""><br clear="none" class="" style="">Hmm. Can you run /usr/sbin/setsebool -P httpd_can_network_connect on?<br clear="none" class="" style="">and report the output of: ls -lZ /usr/libexec/xymon/svcstatus.cgi<br clear="none" class="" style=""><br
 clear="none" class="" style="">-jc<br clear="none" class="" style=""><br clear="none" class="" style=""><br clear="none" class="" style="">On Fri, June 27, 2014 7:56 am, Iain M. Conochie wrote:<br clear="none" class="" style="">> Looks like selinux is denying the request.<br clear="none" class="" style="">><br clear="none" class="" style="">> On June 27, 2014 2:22:35 PM GMT+01:00, mania bogdan <<a shape="rect" ymailto="mailto:bogymel@yahoo.com" href="mailto:bogymel@yahoo.com" class="" style="">bogymel@yahoo.com</a>><br clear="none" class="" style="">> wrote:<br clear="none" class="" style="">>>Hi,<br clear="none" class="" style="">>><br clear="none" class="" style="">>>Thank you for the quick response. <br clear="none" class="" style="">>><br clear="none" class="" style="">>>@Paul: nothing seems to be wrong with Apache, I played with the<br clear="none" class="" style="">>>configuration to no
 avail. I'm attaching it for reference.<br clear="none" class="" style="">>><br clear="none" class="" style="">>>@JC: It seems xymon daemon is running ok, no errors in xymond.log. I<br clear="none" class="" style="">>>can connect to the server on port 1984 both locally and remote. xymon<br clear="none" class="" style="">>>10.106.50.129 ping command returns the server version.<br clear="none" class="" style="">>><br clear="none" class="" style="">>>In audit.log I have this:<br clear="none" class="" style="">>><br clear="none" class="" style="">>>type=SYSCALL msg=audit(1403874936.111:817): arch=c000003e syscall=42<br clear="none" class="" style="">>>success=no exit=-13 a0=3 a1=7fff0a176f60 a2=10 a3=1999999999999999<br clear="none" class="" style="">>>items=0 ppid=18345 pid=18518 auid=500 uid=48 gid=48 euid=48 suid=48<br clear="none" class="" style="">>>fsuid=48 egid=48 sgid=48
 fsgid=48 tty=(none) ses=1 comm="svcstatus.cgi"<br clear="none" class="" style="">>>exe="/usr/libexec/xymon/svcstatus.cgi"<br clear="none" class="" style="">>>subj=unconfined_u:system_r:httpd_sys_script_t:s0 key=(null)<br clear="none" class="" style="">>>type=AVC msg=audit(1403874966.329:820): avc: Â denied Â { name_connect }<br clear="none" class="" style="">>>for Â pid=18645 comm="svcstatus.cgi" dest=1984<br clear="none" class="" style="">>>scontext=unconfined_u:system_r:httpd_sys_script_t:s0<br clear="none" class="" style="">>>tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket<br clear="none" class="" style="">>><br clear="none" class="" style="">>>I need to mention however that I installed xymon from a custom repo<br clear="none" class="" style="">>>found online because, well, I was lazy to build from source :) <br clear="none" class="" style="">>><br
 clear="none" class="" style="">>>Thanks.<br clear="none" class="" style="">>><br clear="none" class="" style="">>> <br clear="none" class="" style="">>><br clear="none" class="" style="">>><br clear="none" class="" style="">>>On Friday, June 27, 2014 1:09 PM, J.C. Cleaver <<a shape="rect" ymailto="mailto:cleaver@terabithia.org" href="mailto:cleaver@terabithia.org" class="" style="">cleaver@terabithia.org</a>><br clear="none" class="" style="">>>wrote:<br clear="none" class="" style="">>><br clear="none" class="" style="">>><br clear="none" class="" style="">>><br clear="none" class="" style="">>>It seems like both xymonnet and the svcstatus.sh CGI are having<br clear="none" class="" style="">>>problems<br clear="none" class="" style="">>>communicating back with xymond.<br clear="none" class="" style="">>><br clear="none" class="" style="">>>First step,
 can you verify that xymond is in fact up and running OK? Is<br clear="none" class="" style="">>>there any error output in xymond.log?<br clear="none" class="" style="">>><br clear="none" class="" style="">>>Based on the logs below, it seems 10.106.50.129 the server's own<br clear="none" class="" style="">>>XYMONSERVER IP address? If so, can you connect locally on port 1984 to<br clear="none" class="" style="">>>it?<br clear="none" class="" style="">>>Or run 'xymon 10.106.50.129 ping' from the command line?<br clear="none" class="" style="">>><br clear="none" class="" style="">>>For svcstatus.sh, do you see any possible SELinux errors in<br clear="none" class="" style="">>>/var/log/audit/audit.log indicated blocks?<br clear="none" class="" style="">>><br clear="none" class="" style="">>><br clear="none" class="" style="">>>HTH,<br clear="none" class="" style="">>><br
 clear="none" class="" style="">>>-jc<br clear="none" class="" style="">>><br clear="none" class="" style="">>><br clear="none" class="" style="">>><br clear="none" class="" style="">>>On Fri, June 27, 2014 2:06 am, mania bogdan wrote:<br clear="none" class="" style="">>>> Hi,<br clear="none" class="" style="">>>><br clear="none" class="" style="">>>> I'm facing an issue with the xymon server. <br clear="none" class="" style="">>>><br clear="none" class="" style="">>>> I have setup a fresh installation of xymon 4.3.17 on a RHEL 6 box. I<br clear="none" class="" style="">>>have<br clear="none" class="" style="">>>> only the server defined in hosts.cfg. The main page displays ok, but<br clear="none" class="" style="">>>when<br clear="none" class="" style="">>>> I click on a "smiley" it just shows "Cannot load host configuration".<br clear="none"
 class="" style="">>>In<br clear="none" class="" style="">>>> the xymonnet.log I get the following:<br clear="none" class="" style="">>>><br clear="none" class="" style="">>>> 2014-06-27 04:24:51 -> Â Could not connect to Xymon<br clear="none" class="" style="">>>> <a shape="rect" ymailto="mailto:daemon@10.106.50.129" href="mailto:daemon@10.106.50.129" class="" style="">daemon@10.106.50.129</a>:1984 (Connection refused)<br clear="none" class="" style="">>>> 2014-06-27 04:24:51 -> Â Recipient '10.106.50.129', timeout 15<br clear="none" class="" style="">>>> 2014-06-27 04:24:51 -> Â 1st line: 'extcombo 2000 2291 2617'<br clear="none" class="" style="">>>><br clear="none" class="" style="">>>> I also get this in the Apache error_log:<br clear="none" class="" style="">>>><br clear="none" class="" style="">>>> [Fri Jun 27 05:01:01 2014]
 [error] [client 10.106.0.214] 2014-06-27<br clear="none" class="" style="">>>> 05:01:01 , referer:<br clear="none" class="" style="">>>><br clear="none" class="" style="">>><a shape="rect" href="http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn" target="_blank" class="" style="">http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn</a><br clear="none" class="" style="">>>> [Fri Jun 27 05:01:01 2014] [error] [client 10.106.0.214] -> Â connect<br clear="none" class="" style="">>>to<br clear="none" class="" style="">>>> Xymon <a shape="rect" ymailto="mailto:daemon@10.106.50.129" href="mailto:daemon@10.106.50.129" class="" style="">daemon@10.106.50.129</a>:1984 failed (Permission denied), referer:<br clear="none" class="" style="">>>><br clear="none" class="" style="">>><a shape="rect"
 href="http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn" target="_blank" class="" style="">http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn</a><br clear="none" class="" style="">>>><br clear="none" class="" style="">>>> [Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27<br clear="none" class="" style="">>>> 05:03:31 , referer:<br clear="none" class="" style="">>>><br clear="none" class="" style="">>><a shape="rect" href="http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn" target="_blank" class="" style="">http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn</a><br clear="none" class="" style="">>>> [Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] -><br clear="none" class=""
 style="">>> Recipient<br clear="none" class="" style="">>>> '10.106.50.129', timeout 15, referer:<br clear="none" class="" style="">>>><br clear="none" class="" style="">>><a shape="rect" href="http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn" target="_blank" class="" style="">http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn</a><br clear="none" class="" style="">>>> [Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27<br clear="none" class="" style="">>>> 05:03:31 , referer:<br clear="none" class="" style="">>>><br clear="none" class="" style="">>><a shape="rect" href="http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn" target="_blank" class=""
 style="">http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn</a><br clear="none" class="" style="">>>> [Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] -> Â 1st<div class="" id="yqtfd69767" style=""><br clear="none" class="" style="">>>line:<br clear="none" class="" style="">>>> 'hostinfo clone=watchdog.stage.ppaws.net', referer:<br clear="none" class="" style="">>>><br clear="none" class="" style="">>><a shape="rect" href="http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn" target="_blank" class="" style="">http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn</a><br clear="none" class="" style="">>>> [Fri Jun 27 05:03:31 2014] [error] [client 10.106.0.214] 2014-06-27<br clear="none" class="" style="">>>> 05:03:31 , referer:<br
 clear="none" class="" style="">>>><br clear="none" class="" style="">>><a shape="rect" href="http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn" target="_blank" class="" style="">http://watchdog.stage.ppaws.net/xymon-cgi/svcstatus.sh?HOST=watchdog.stage.ppaws.net&SERVICE=conn</a><br clear="none" class="" style="">>>><br clear="none" class="" style="">>>><br clear="none" class="" style="">>>> I have setup the host in /etc/hosts file, the name is resolvable, the<br clear="none" class="" style="">>>1984<br clear="none" class="" style="">>>> port is opened and accepting connections. The only solution I could<br clear="none" class="" style="">>>find<br clear="none" class="" style="">>>> online was to restart the server but that didn't help.<br clear="none" class="" style="">>>><br clear="none" class="" style="">>>>
 I'm fairly new to xymon, so if I missed something and if any<br clear="none" class="" style="">>>additional<br clear="none" class="" style="">>>> info is required I'll be happy to provide.<br clear="none" class="" style="">>>><br clear="none" class="" style="">>>> Thanks._______________________________________________<br clear="none" class="" style="">>>> Xymon mailing list<br clear="none" class="" style="">>>> <a shape="rect" ymailto="mailto:Xymon@xymon.com" href="mailto:Xymon@xymon.com" class="" style="">Xymon@xymon.com</a><br clear="none" class="" style="">>>> <a shape="rect" href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank" class="" style="">http://lists.xymon.com/mailman/listinfo/xymon</a><br clear="none" class="" style="">>><br clear="none" class="" style="">>>><br clear="none" class="" style="">>><br clear="none" class=""
 style="">>>------------------------------------------------------------------------<br clear="none" class="" style="">>><br clear="none" class="" style="">>>_______________________________________________<br clear="none" class="" style="">>>Xymon mailing list<br clear="none" class="" style="">>><a shape="rect" ymailto="mailto:Xymon@xymon.com" href="mailto:Xymon@xymon.com" class="" style="">Xymon@xymon.com</a><br clear="none" class="" style="">>><a shape="rect" href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank" class="" style="">http://lists.xymon.com/mailman/listinfo/xymon</a><br clear="none" class="" style="">><br clear="none" class="" style="">> --<br clear="none" class="" style="">> Sent from my Android phone with K-9 Mail. Please excuse my brevity.<br clear="none" class="" style=""><br clear="none" class="" style=""><br clear="none" class="" style=""></div><br class="" style=""><br
 class="" style=""></div>  </div> </div>  </div> </div></body></html>