loadavg($loadbar) : $sysinfo->loadavg());
for ($i = 0; $i < count($ar_buf['avg']); $i++) {
$load_avg .= $ar_buf['avg'][$i] . ' ';
}
$_text = "
" . create_bargraph($XPath->getData("/phpsysinfo/Vitals/CPULoad"), 100, $scale_factor) . " " . $XPath->getData("/phpsysinfo/Vitals/CPULoad") . "%";
$_text = "
" . $text['hostname'] . " | \n" . "" . $XPath->getData("/phpsysinfo/Vitals/Hostname") . " | \n" . " \n" . "
" . $text['ip'] . " | \n" . "" . $XPath->getData("/phpsysinfo/Vitals/IPAddr") . " | \n" . "
" . $text['kversion'] . " | \n" . "" . $XPath->getData("/phpsysinfo/Vitals/Kernel") . " | \n" . "
" . $text['dversion'] . " | \n" . "|
" . $text['uptime'] . " | \n" . "" . uptime($XPath->getData('/phpsysinfo/Vitals/Uptime')) . " | \n" . "
" . $text['users'] . " | \n" . "" . $XPath->getData("/phpsysinfo/Vitals/Users") . " | \n" . "
" . $text['loadavg'] . " | \n" . "" . $XPath->getData("/phpsysinfo/Vitals/LoadAvg") . $loadbar . " | \n" . "
" . $text['hostname'] . ":
\n"
. "- " . $XPath->getData("/phpsysinfo/Vitals/Hostname") . "
" . $text['ip'] . ":
\n"
. "- " . $XPath->getData("/phpsysinfo/Vitals/IPAddr") . "
" . $text['kversion'] . ":
\n"
. "- " . $XPath->getData("/phpsysinfo/Vitals/Kernel") . "
" . $text['uptime'] . ":
\n"
. "- " . uptime($XPath->getData('/phpsysinfo/Vitals/Uptime')) . "
" . $text['users'] . ":
"
. "- " . $XPath->getData("/phpsysinfo/Vitals/Users") . "
" . $text['loadavg'] . ":
"
. "- " . $XPath->getData("/phpsysinfo/Vitals/LoadAvg") . "