Postado Julho 2, 2015 em 01:03 Jul 2, 2015 Ola vi em um site hoje, ele mostra os status do servidor, alguem sabe como fazer isso se tem algum painel especifico ou se tem que pedir para um programador mesmo o site em que eu vi foi esse >>>> https://www.exall-host.com/painel/serverstatus.php Espero que me ajudem tenho interesse de colocar um status de rede
Postado Julho 2, 2015 em 01:59 Jul 2, 2015 Isso é no próprio whmcs, na configuração de cada "server" tem essa opção.
Postado Julho 2, 2015 em 02:05 Jul 2, 2015 Cria um arquivo php com este código envie ele pro seu servidor , depois só pegar o link de onde vc hospedou o arquivo ex: http://central.foxsolucoes.net/status/index.php <?php /* ************************************************************************* * * * WHMCS - The Complete Client Management, Billing & Support Solution * * Copyright (c) WHMCS Ltd. All Rights Reserved, * * Release Date: 24th November 2011 * * Version 5.0 * * * ************************************************************************* * * * Email: info@whmcs.com * * Website: htttp://www.whmcs.com * * * ************************************************************************* This file can be uploaded to each of your linux web servers in order to display current load and uptime statistics for the server in the Server Status page of the WHMCS Client Area and Admin Area Homepage */ error_reporting(0); $action = (isset($_GET['action'])) ? $_GET['action'] : ''; if ($action=="phpinfo") { /* Uncoment the line below to allow users to view PHP Info for your server. This potentially allows access to information a malicious user could use to find weaknesses in your server. */ #phpinfo(); } else { $load = file_get_contents("/proc/loadavg"); $load = explode(' ',$load); $load = $load[0]; if (!$load && function_exists('exec')) { $reguptime=trim(exec("uptime")); if ($reguptime) if (preg_match("/, *(\d) (users?), .*: (.*), (.*), (.*)/",$reguptime,$uptime)) $load = $uptime[3]; } $uptime_text = file_get_contents("/proc/uptime"); $uptime = substr($uptime_text,0,strpos($uptime_text," ")); if (!$uptime && function_exists('shell_exec')) $uptime = shell_exec("cut -d. -f1 /proc/uptime"); $days = floor($uptime/60/60/24); $hours = str_pad($uptime/60/60%24,2,"0",STR_PAD_LEFT); $mins = str_pad($uptime/60%60,2,"0",STR_PAD_LEFT); $secs = str_pad($uptime%60,2,"0",STR_PAD_LEFT); $phpver = phpversion(); $mysqlver = (function_exists("mysql_get_client_info")) ? mysql_get_client_info() : '-'; $zendver = (function_exists("zend_version")) ? zend_version() : '-'; echo "<load>$load</load>\n"; echo "<uptime>$days Days $hours:$mins:$secs</uptime>\n"; /** * WHMCS does not rely on the following version information for tracking * server status. * * Some 3rd-party integrations may rely on previous revisions of this file that * exposed said information. Users who have 3rd-party functionality which * require this may uncomment the lines at their own risk. * * Future revisions to this file may remove those commented lines and this * documentation block entirely. If a 3rd-party integration that you use * relies on this, please notify them that access to that information via * this script is deprecated as of WHMCS 5.3.9-release.1. * * Anyone is free to contact WHMCS Support for further information or help * resolving integration issues. */ //echo "<phpver>$phpver</phpver>\n"; //echo "<mysqlver>$mysqlver</mysqlver>\n"; //echo "<zendver>$zendver</zendver>\n"; } Ai coloca no seu whmcs desse modo: Resultado Final: FOX SOLUÇÕES | Transforme problemas em soluções | www.foxsolucoes.com -> Gerenciamento Linux especializado para quem não pode parar. -> Consultoria, otimização e operação completa de ambientes VPS, dedicados e cloud.
Postado Julho 16, 2021 em 14:19 Jul 16, 2021 Consegui. vlw Editado Julho 16, 2021 em 15:19 Jul 16, 2021 por chrorius
Postado Julho 16, 2021 em 14:25 Jul 16, 2021 @chrorius Seria exatamente oque expliquei acima FOX SOLUÇÕES | Transforme problemas em soluções | www.foxsolucoes.com -> Gerenciamento Linux especializado para quem não pode parar. -> Consultoria, otimização e operação completa de ambientes VPS, dedicados e cloud.
Postado Julho 16, 2021 em 14:51 Jul 16, 2021 Deu certo Editado Julho 16, 2021 em 15:19 Jul 16, 2021 por chrorius
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.
Nota: Sua postagem exigirá aprovação do moderador antes de ficar visível.