<html><head></head><body>Looks like selinux is denying the request.<br><br><div class="gmail_quote">On June 27, 2014 2:22:35 PM GMT+01:00, mania bogdan <bogymel@yahoo.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<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=""><span class="" style="">Thank you for the quick response. </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=""><span class="" style="">@Paul: nothing seems to be wrong with Apache, I played with the configuration to no avail. I'm attaching it for reference.</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=""><span class="" style="">@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.</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=""><span class="" style="">In audit.log I have this:</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="background-color:
transparent;" class="">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)</div><div style="background-color: transparent;" class=""><span class="" style=""></span></div><div style="background-color: transparent;" class="">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</div><div style="background-color: transparent;" class=""><br class="" style="" /></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 need to mention however that I installed xymon from a custom repo found online because, well, I was lazy to build from source :) </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.</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=""><span style="font-size:
 8pt;"><br /></span></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=""><span style="font-size: 8pt;"> </span></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 1:09 PM, J.C. Cleaver <cleaver@terabithia.org> wrote:<br class="" style="" /> </font> </div>  <br class="" style="" /><br class="" style="" /> <div class="" style="">It seems like both xymonnet and the svcstatus.sh CGI are having
 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 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="" /><div class="" id="yqtfd79964" 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 have<br clear="none" class="" style="" />> only the server defined in hosts.cfg. The main page displays ok, but when<br clear="none" class="" style="" />> I click on a "smiley" it just shows "Cannot load host configuration". 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="" />> <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 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="" />> <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="" />> <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] ->  Recipient<br clear="none" class="" style="" />> '10.106.50.129', timeout 15, referer:<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="" />> <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 line:<br clear="none" class="" style="" />> 'hostinfo clone=watchdog.stage.ppaws.net', referer:<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="" />> <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 1984<br clear="none" class="" style="" />> port is opened and accepting connections. The only solution I could 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 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._______________________________________________</div><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><div class="" id="yqtfd20999" style=""><br clear="none" class="" style="" />><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><p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />Xymon mailing list<br
/>Xymon@xymon.com<br /><a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br /></pre></blockquote></div><br>
-- <br>
Sent from my Android phone with K-9 Mail. Please excuse my brevity.</body></html>