AMateos Posted January 30, 2008 Share Posted January 30, 2008 If we want to use a external monitor like siteuptime for example. How can we delete Server Load column and modify Uptime column to show a link to our monitoring service? Is it possible to add the monitoring service url like server status files and show the link at uptime? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted January 30, 2008 WHMCS Developer Share Posted January 30, 2008 You can edit what shows on the page by editing the serverstatus.tpl file in your templates 0 Quote Link to comment Share on other sites More sharing options...
AMateos Posted January 30, 2008 Author Share Posted January 30, 2008 Thank you Jrawly. Regards! 0 Quote Link to comment Share on other sites More sharing options...
AMateos Posted January 31, 2008 Author Share Posted January 31, 2008 Hi again, I have edited serverstatus.tpl file in my templates. There is the following code: <p>{$LANG.serverstatusheadingtext}</p> <table class="clientareatable" align="center" cellspacing="1"> <tr class="clientareatableheading"> <td>{$LANG.servername}</td> <td>HTTP</td> <td>FTP</td> <td>POP3</td> <td>{$LANG.serverstatusphpinfo}</td> <td>{$LANG.serverstatusserverload}</td> <td>{$LANG.serverstatusuptime}</td> </tr> {foreach key=num item=server from=$servers} <tr class="clientareatableactive"> <td>{$server.name}</td> <td>{get_port_status num="$num" port="80"}</td> <td>{get_port_status num="$num" port="21"}</td> <td>{get_port_status num="$num" port="110"}</td> <td><a href="{$server.phpinfourl}" target="_blank">{$LANG.serverstatusphpinfo}</a></td> <td>{$server.serverload}</td> <td>{$server.uptime}</td> </tr> {foreachelse} <tr class="clientareatableactive"> <td colspan="7">{$LANG.serverstatusnoservers}</td> </tr> {/foreach} </table> I have bold the important part. How can we get the url to the server status page without the PHP info added? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted January 31, 2008 WHMCS Developer Share Posted January 31, 2008 If you add {debug} to the top of the page you will see a full list of the template variables available in the serverstatus.tpl You may be able to see a variables that aren't being used in the list 0 Quote Link to comment Share on other sites More sharing options...
AMateos Posted January 31, 2008 Author Share Posted January 31, 2008 Thank you JRawly. Ill try and tell you about. 0 Quote Link to comment Share on other sites More sharing options...
AMateos Posted January 31, 2008 Author Share Posted January 31, 2008 JRawly, I have seen what i want but i still have a problem. In {$servers}, phpinfourl, we want to put just the server status url, without the "index.php?action=phpinfo" Can you help me? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted January 31, 2008 WHMCS Developer Share Posted January 31, 2008 You could try replacing the {$server.phpinfourl} with {$server.phpinfourl|replace:'?action=phpinfo':''} 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.