mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-01 01:27:14 +09:00
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@4007 860744bd-22fc-0310-8c96-e9fe5004b5ca
21 lines
604 B
PHP
21 lines
604 B
PHP
<?
|
|
|
|
/* do NOT run this script through a web browser */
|
|
if (!isset($_SERVER["argv"][0]) || isset($_SERVER['REQUEST_METHOD']) || isset($_SERVER['REMOTE_ADDR'])) {
|
|
die("<br><strong>This script is only meant to run at the command line.</strong>");
|
|
}
|
|
|
|
$no_http_headers = true;
|
|
|
|
include(dirname(__FILE__) . "/../include/global.php");
|
|
|
|
if ($database_password == "") {
|
|
$sql = `mysqladmin -h $database_hostname -u $database_username status | awk '{print $6 }'`;
|
|
}else{
|
|
$sql = `mysqladmin -h $database_hostname -u $database_username -p$database_password status | awk '{print $6 }'`;
|
|
}
|
|
|
|
print trim($sql);
|
|
|
|
?>
|