diff --git a/libraries/server_status_monitor.lib.php b/libraries/server_status_monitor.lib.php new file mode 100644 index 0000000000..199a406c45 --- /dev/null +++ b/libraries/server_status_monitor.lib.php @@ -0,0 +1,403 @@ +'; + $retval .= '
' . __('Selected time range:'); + $retval .= ' - '; + $retval .= ''; + $retval .= '
'; + $retval .= __('Choose from which log you want the statistics to be generated from.'); + $retval .= '
'; + $retval .= __('Results are grouped by query text.'); + $retval .= '
'; + $retval .= PMA_Util::getImage('s_attention.png'); + $retval .= __( + 'Unfortunately your Database server does not support logging to table,' + . ' which is a requirement for analyzing the database logs with' + . ' phpMyAdmin. Logging to table is supported by MySQL 5.1.6 and' + . ' onwards. You may still use the server charting features however.' + ); + $retval .= '
'; + $retval .= __( + 'Your browser will refresh all displayed charts in a regular interval.' + . ' You may add charts and change the refresh rate under \'Settings\',' + . ' or remove any chart using the cog icon on each respective chart.' + ); + $retval .= '
'; + $retval .= __( + 'To display queries from the logs, select the relevant time span on any' + . ' chart by holding down the left mouse button and panning over the' + . ' chart. Once confirmed, this will load a table of grouped queries,' + . ' there you may click on any occurring SELECT statements to further' + . ' analyze them.' + ); + $retval .= '
'; + $retval .= PMA_Util::getImage('s_attention.png'); + $retval .= ''; + $retval .= __('Please note:'); + $retval .= ''; + $retval .= __( + 'Enabling the general_log may increase the server load by' + . ' 5-15%. Also be aware that generating statistics from the logs is a' + . ' load intensive task, so it is advisable to select only a small time' + . ' span and to disable the general_log and empty its table once' + . ' monitoring is not required any more.' + ); + $retval .= '
'; + $retval .= '' . __('Add this series') . ''; + $retval .= ''; + $retval .= ' | ' . __('Clear series') . ''; + $retval .= ''; + $retval .= '
'; - $retval .= PMA_Util::getImage('s_attention.png'); - $retval .= __( - 'Unfortunately your Database server does not support logging to table,' - . ' which is a requirement for analyzing the database logs with' - . ' phpMyAdmin. Logging to table is supported by MySQL 5.1.6 and' - . ' onwards. You may still use the server charting features however.' - ); - $retval .= '
'; - $retval .= __( - 'Your browser will refresh all displayed charts in a regular interval.' - . ' You may add charts and change the refresh rate under \'Settings\',' - . ' or remove any chart using the cog icon on each respective chart.' - ); - $retval .= '
'; - $retval .= __( - 'To display queries from the logs, select the relevant time span on any' - . ' chart by holding down the left mouse button and panning over the' - . ' chart. Once confirmed, this will load a table of grouped queries,' - . ' there you may click on any occurring SELECT statements to further' - . ' analyze them.' - ); - $retval .= '
'; - $retval .= PMA_Util::getImage('s_attention.png'); - $retval .= ''; - $retval .= __('Please note:'); - $retval .= ''; - $retval .= __( - 'Enabling the general_log may increase the server load by' - . ' 5-15%. Also be aware that generating statistics from the logs is a' - . ' load intensive task, so it is advisable to select only a small time' - . ' span and to disable the general_log and empty its table once' - . ' monitoring is not required any more.' - ); - $retval .= '
'; - $retval .= '' . __('Add this series') . ''; - $retval .= ''; - $retval .= ' | ' . __('Clear series') . ''; - $retval .= ''; - $retval .= '
' . __('Selected time range:'); - $retval .= ' - '; - $retval .= ''; - $retval .= '
'; - $retval .= __('Choose from which log you want the statistics to be generated from.'); - $retval .= '
'; - $retval .= __('Results are grouped by query text.'); - $retval .= '