Пример #1
0
function print_health()
{
    $up = xmlCall("base.getUptime");
    $up = trim($up[0]);
    $mem = xmlCall("base.getMemoryInfos");
    echo format_health($up, $mem);
}
Пример #2
0
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC.  If not, see <http://www.gnu.org/licenses/>.
 */
/* common ajax includes */
require "../includes/ajaxcommon.inc.php";
$t = new TitleElement(_T("Status", "imaging"), 3);
$t->display();
$customMenu_count = xmlrpc_getCustomMenuCount($location);
$global_status = xmlrpc_getGlobalStatus($location);
if (!empty($global_status)) {
    $disk_info = format_disk_info($global_status['disk_info']);
    $health = format_health($global_status['uptime'], $global_status['mem_info']);
    $short_status = $global_status['short_status'];
    ?>

    <div class="status">
        <div class="status_block">
            <h3><?php 
    echo _T('Space available on server', 'imaging');
    ?>
</h3>
            <?php 
    echo $disk_info;
    ?>
        </div>
        <div class="status_block">
            <h3><?php