Jump to content

Adding Ports to Server Status


Scott

Recommended Posts

I have read in the forums that you can customer the Server status to monitor different ports, and I have altered the serverstatus.tpl page the way I would think it would need to be altered, however the changes are not appearing. I would like to add the ability to monitor Port 25 for instance. So I changed the code to (not a big coder by the way!):

 

 

 

{$LANG.serverstatusheadingtext}</p>

 

<table id="serverstatus" align="center" cellspacing="1">

<tr>

<td width="15%" id="serverstatusheading">{$LANG.servername}</td>

<td width="11%" id="serverstatusheading">HTTP</td>

<td width="11%" id="serverstatusheading">FTP</td>

<td width="11%" id="serverstatusheading">POP3</td>

<td width="11%" id="serverstatusheading">SMTP</td>

<td width="11%" id="serverstatusheading">{$LANG.serverstatusphpinfo}</td>

<td width="15%" id="serverstatusheading">{$LANG.serverstatusserverload}</td>

<td width="15%" id="serverstatusheading">{$LANG.serverstatusuptime}</td>

</tr>

{foreach key=num item=server from=$servers}

<tr>

<td width="15%" id="serverstatusrow">{$server.name}</td>

<td width="11%" id="serverstatusrow">{get_port_status num="$num" port="80"}</td>

<td width="11%" id="serverstatusrow">{get_port_status num="$num" port="21"}</td>

<td width="11%" id="serverstatusrow">{get_port_status num="$num" port="110"}</td>

<td width="11%" id="serverstatusrow">{get_port_status num="$num" port="25"}</td>

<td width="11%" id="serverstatusrow">{$LANG.serverstatusphpinfo}</td>

<td width="15%" id="serverstatusrow">{$server.serverload}</td>

<td width="15%" id="serverstatusrow">{$server.uptime}</td>

</tr>

{foreachelse}

<tr>

<td id="serverstatusrow" colspan="8">{$LANG.serverstatusnoservers}</td>

</tr>

{/foreach}

</table>

 

I dumped the cache from the templaces_c file but still nothing. What am I doing wrong?

Link to comment
Share on other sites

Matt,

 

I think I figured it out. For some reason, despite the fact that I can see the colspan'8" in the above code, it didn't take in the actual template. Re-inserted that change back in the template and it works.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated