mikelegg Posted October 14, 2009 Share Posted October 14, 2009 (edited) I have no problem getting the services to display accurately on my dedicated servers but I can't get the http/ftp/pop3 status indicators to work on a reseller account. The indicators always show the services as down, when they are actually alive and well. 1) It's not a firewall problem on the remote server. I've contacted the provider of the reseller account and their not blocking my IP. And I assume that if the ports in question were blocked no one on the server would have any http,ftp or pop3 services. 2) It's not the firewall on my server because I can successfully monitor other servers from this machine. 3) I Don't think it's a PHP restriction on the remote server because the server uptime and load are displaying perfectly. I seached the WHMCS code for the get_port_status function but my search returned no results so I'm a bit mystified as to how this code actually works which makes it hard to debug. Does anybody have any suggestions as to what I should check next? Edited October 14, 2009 by mikelegg spelling 0 Quote Link to comment Share on other sites More sharing options...
mikelegg Posted October 15, 2009 Author Share Posted October 15, 2009 (edited) If you want something done, do it yourself. I've rewritten serverstatus.tpl to use PHP's fsockopen for my reseller server and the mysterious "get_port_status" for the others. It's ugly but it works, here's the code for the HTTP port: <td> {if $server.name == 'MyResellerServername'} {php} $fp = fsockopen('resellerserver.hostname',$errno,$errstr,80,10); if($fp){ echo('<img src="images/statusok.gif" width="15" height="15" border="0" />'); }else{ echo('<img src="images/statusfailed.gif" width="15" height="15" border="0" />'); } {/php} {else} {get_port_status num="$num" port="80"} {/if} </td> Edited October 15, 2009 by mikelegg 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.