From 3f75198665a2620ee64723911554fd3dfd0a49a9 Mon Sep 17 00:00:00 2001 From: Tony Roman Date: Sat, 8 Sep 2007 05:55:21 +0000 Subject: [PATCH] Added database check and more items git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@4123 860744bd-22fc-0310-8c96-e9fe5004b5ca --- utilities.php | 43 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/utilities.php b/utilities.php index 90e71bb647..5c6c02f4af 100644 --- a/utilities.php +++ b/utilities.php @@ -169,6 +169,8 @@ function utilities_php_modules() { function utilities_view_tech($php_info = "") { global $colors, $config; + $table_status = db_fetch_assoc("SHOW TABLE STATUS"); + html_start_box("Technical Support", "100%", $colors["header"], "3", "center", ""); html_header(array("Cacti Information"), 2); print "\n"; @@ -184,6 +186,12 @@ function utilities_view_tech($php_info = "") { print " " . $config["cacti_server_os"] . "\n"; print "\n"; print "\n"; + print " Poller Interval\n"; + print " " . read_config_option("poller_interval") . "\n"; + print "\n"; + + html_header(array("PHP Information"), 2); + print "\n"; print " PHP Version\n"; print " " . phpversion() . "\n"; print "\n"; @@ -207,17 +215,44 @@ function utilities_view_tech($php_info = "") { } print "\n"; print "\n"; - - html_header(array("PHP Settings"), 2); - print " \n"; + print "\n"; print " max_execution_time\n"; print " " . ini_get("max_execution_time") . "\n"; print "\n"; - print " \n"; + print "\n"; print " memory_limit\n"; print " " . ini_get("memory_limit") . "\n"; print "\n"; + html_header(array("MySQL Table Information"), 2); + print "\n"; + print " "; + if (sizeof($table_status) > 0) { + print "\n"; + print "\n"; + print " \n"; + print " \n"; + print " \n"; + print " \n"; + print " \n"; + print "\n"; + foreach ($table_status as $item) { + print "\n"; + print " \n"; + print " \n"; + print " \n"; + print " \n"; + print " \n"; + print "\n"; + } + print "
NameRowsEngineCollationCheck Status
" . $item["Name"] . "" . $item["Rows"] . "" . $item["Engine"] . "" . $item["Collation"] . "" . db_fetch_cell("CHECK TABLE " . $item["Name"], "Msg_text") . "
\n"; + }else{ + print "Unable to retrieve table status"; + } + + print "\n"; + print "\n"; + html_header(array("PHP Module Information"), 2); print "\n"; print " " . $php_info . "\n";