Page 10 of 10 FirstFirst ... 8910
Results 136 to 149 of 149

Thread: Server Status display wizardry

  1. #136
    Join Date
    Jan 2008
    Posts
    228

    Default

    Quote Originally Posted by knipper View Post
    I too am getting an SMTP problem. I am not using the standard port, and corrected it in the file prior to uploading.

    Suggestions anyone?

    PS... I'm using the code from post #88

    Did you check if you have the server(if remote) in the firewall allow file?

  2. #137
    Join Date
    Jan 2010
    Posts
    77

    Arrow not remote

    Quote Originally Posted by rldev View Post
    Did you check if you have the server(if remote) in the firewall allow file?
    Hi rldev,

    Thanks for the response. Nope, it's on this server, not remote. But I do have CSF firewall, locking it down pretty tightly.

    I tried adding the SMTP port to my tcp_out allowed area. (it obviously was in my tcp_in config) I deleted the templates_c directory, and dumped my browser cache, but still no smtp.

    Any additional suggestions?

  3. #138
    Join Date
    Jan 2008
    Posts
    228

    Default

    Can you telnet into port 25?

    telnet server 25

  4. #139
    Join Date
    Jan 2010
    Posts
    77

    Default yes

    Quote Originally Posted by rldev View Post
    Can you telnet into port 25?

    telnet server 25
    Sorry for the late reply, I was working with no web access! I am able to telnet locally on the server to both port 25 & 26 (Where I have smtp set up).

  5. #140
    Join Date
    Nov 2007
    Posts
    23

    Default

    is there anyway of making the server status page work OUTSIDE of the WHMCS install directory?

    I am currently working on a new version of my site and I was wanting to put it on the server spec page and I dont really wanna have that page running on the whmcs
    John Ferguson
    Managing Director / Lead Designer
    JMF eMedia

  6. #141
    Join Date
    Mar 2010
    Posts
    1

    Default

    Quote Originally Posted by knipper View Post
    Sorry for the late reply, I was working with no web access! I am able to telnet locally on the server to both port 25 & 26 (Where I have smtp set up).
    You probably have SMTP_BLOCK enabled in CSF. This blocks outgoing access to port 25 / 26. Since by default you are using the domain or server hostname to connect, it will be blocked. You need to change the hostname for connecting to SMTP to 'localhost'

  7. #142
    Join Date
    Jun 2008
    Location
    Pakistan
    Posts
    70

    Default

    Quote Originally Posted by epicconstruct View Post
    Here's another version I wrote up. It's based on WHMCS 4.1.2 version of the template. It turns off the PHP Info link, and adds a few extras (basically the same ones as the other script). It's a little bit shorter and cleaner, as it keeps all of the template code separate, it also loads the existing login.tpl so you don't have to maintain it in an additional place.

    Also, if you want to turn off the PHP Info, don't forget to edit the status/index.php file too. Someone can still access the PHP info by going to /status/index.php?action=phpinfo unless you comment out the phpinfo line in the file by putting a // in front of phpinfo();.

    PHP Code:
    {php}
    $query "SELECT DISTINCT tblservers.name FROM `tblservers` JOIN `tblhosting` ON tblhosting.server=tblservers.id WHERE tblhosting.userid='".$_SESSION["uid"]."' AND tblhosting.domainstatus='Active'";
    $result mysql_query($query);
    $servers_new = array();
    $server_names = array();
    while (
    $data mysql_fetch_array($result,MYSQL_ASSOC)) {
      
    $server_names[] .= $data['name'];
    }
    $servers_old $this->_tpl_vars[servers];
    foreach (
    $servers_old AS $key=>$value) {
      if (
    in_array($value['name'],$server_names)) $servers_new[] = $value;
    }
    $this->clear_assign('servers');
    $this->assign('servers',$servers_new);
    {/
    php}
    {if 
    $loggedin}
    <
    p>{$LANG.serverstatusheadingtext}</p>
    <
    table width="100%" border="0" align="center" cellpadding="10" cellspacing="0" class="data">
      <
    tr>
        <
    th>{$LANG.servername}</th>
        <
    th>HTTP</th>
        <
    th>FTP</th>
        <
    th>POP3</th>
        <
    th>IMAP</th>
        <
    th>SMTP</th>
        <
    th>cPanel</th>
        <
    th>{$LANG.serverstatusserverload}</th>
        <
    th>{$LANG.serverstatusuptime}</th>
      </
    tr>
      {foreach 
    key=num item=server from=$servers}
      <
    tr>
        <
    td>{$server.name}</td>
        <
    td>{get_port_status num="$numport="80"}</td>
        <
    td>{get_port_status num="$numport="21"}</td>
        <
    td>{get_port_status num="$numport="110"}</td>
        <
    td>{get_port_status num="$numport="143"}</td>
        <
    td>{get_port_status num="$numport="25"}</td>
        <
    td>{get_port_status num="$numport="2082"}</td>
        <
    td>{$server.serverload}</td>
        <
    td>{$server.uptime}</td>
      </
    tr>
      {
    foreachelse}
      <
    tr>
        <
    td colspan="8">{$LANG.serverstatusnoservers}</td>
      </
    tr>
      {/foreach}
    </
    table><br />
    {else}
    {
    assign var='formaction' value='dologin.php?goto=serverstatus'}
    {include 
    file="$template/login.tpl"}
    {/if} 
    Redrat, thanks for the script. I'm not trying to steal your thunder, just offer another method. Thanks for the inspiration and some really good ideas.

    i pasted this code in serverstatus.tpl but getting this in return
    The table below shows the status of our server. You can use this page to check if any of the services on our servers are down.
    Server HTTP FTP POP3 IMAP SMTP cPanel Server Load Uptime
    No Servers are currently being monitored
    Can some one help me on this?
    I have placed www.xlxhost.com/status/ in my server configuration page.

  8. #143
    Join Date
    Nov 2009
    Location
    Buffalo, NY
    Posts
    28

    Default

    Quote Originally Posted by fakher View Post
    i pasted this code in serverstatus.tpl but getting this in return


    Can some one help me on this?
    I have placed www.xlxhost.com/status/ in my server configuration page.
    The script that I had attached is configured to only display server info for the server that the logged in user has an account. If you're logged out or the logged in user does not have an appropriate package then no data will be returned.

    I hope that helps.

  9. #144
    Join Date
    Jun 2008
    Location
    Pakistan
    Posts
    70

    Default

    Quote Originally Posted by epicconstruct View Post
    The script that I had attached is configured to only display server info for the server that the logged in user has an account. If you're logged out or the logged in user does not have an appropriate package then no data will be returned.
    I created a test user account tested it but it was not working.

    Quote Originally Posted by epicconstruct View Post
    the logged in user does not have an appropriate package then no data will be returned.
    What do you mean by package?
    and also do i have to change my status/index.php too?

  10. #145
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    19

    Default

    Hi
    What am I doing wrong?
    I've entered it as instructed. But if I make a port change does not change the status image.
    For example, from CPanel Port 2082 to Virtualmin Port 10000

  11. #146
    Join Date
    Jan 2011
    Posts
    62

    Default

    Will this work with 4.4.1?
    Has anyone done any script updates to it?

  12. #147
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    19

    Default

    Yes, this works also with 4.4.1
    Meanwhile, I also did it. It was in the wrong servers.php setting.

  13. #148
    Join Date
    Sep 2011
    Posts
    90

    Default

    Hmmm, when I include {include file='yourtemplatename/supportticketslist.tpl'} in the homepage.tpl says "No Records Found". But I do have multiple tickets. Any idea why the database does not seem to be queried correctly on this?

  14. #149
    Join Date
    Nov 2009
    Location
    Salford UK
    Posts
    77

    Default

    is this working in the very latest version of whmcs? Need it for one of our clients...
    Umbrella Host Fast, Affordable and Reliable UK Web Hosting
    FREE Web Hosting + .co.uk Domain & Business Web Hosting
    VPS Cloud Hosting, UK Dedicated Servers, Magento Hosting, Reseller Hosting
    Manchester Web Host Contact: [email protected] Phone: +44 (0)844 585 6005

Page 10 of 10 FirstFirst ... 8910

Similar Threads

  1. Display login status outside whmcs folder
    By weblantis in forum Customisation & Integration Questions
    Replies: 6
    Last Post: 01-11-13, 07:48 PM
  2. display an icon for account status
    By webresellers in forum Feature Requests
    Replies: 5
    Last Post: 10-30-07, 06:31 PM