mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Fixed bug in diagnostic info
Former-commit-id: 0318eabdf8cbf60267667ba1b4d74d8e476d0b3d
This commit is contained in:
parent
ca414d30b6
commit
c5c5ba9403
@ -122,8 +122,8 @@ function get_logs_size($file){
|
||||
|
||||
function get_status_logs($path){
|
||||
$status_server_log = "";
|
||||
$size_server_log = get_logs_size($path);
|
||||
if ($size_server_log <= 10240){
|
||||
$size_server_log = number_format(get_logs_size($path));
|
||||
if ($size_server_log <= 1048576){
|
||||
$status_server_log = "<a style ='color: green;text-decoration: none;'>Normal Status</a><a style ='text-decoration: none;'>   You have less than 10 MB of logs</a>";
|
||||
}else{
|
||||
$status_server_log = "<a class= 'content' style= 'color: red;text-decoration: none;'>Warning Status</a><a style ='text-decoration: none;'>   You have more than 10 MB of logs</a>";
|
||||
@ -344,11 +344,7 @@ render_info_data ("SELECT COUNT(*) FROM tagente","Total agents");
|
||||
render_info_data ("SELECT COUNT(*) FROM tagente_modulo","Total modules");
|
||||
render_info_data ("SELECT COUNT(*) FROM tgrupo","Total groups");
|
||||
render_info_data ("SELECT COUNT(*) FROM tagente_datos","Total module data records");
|
||||
// render_info_data ("SELECT COUNT(*) FROM tagente_datos_string","Total module string data records");
|
||||
// render_info_data ("SELECT COUNT(*) FROM tagente_datos_log4x","Total module log4x data records");
|
||||
render_info_data ("SELECT COUNT(*) FROM tagent_access","Total agent access record");
|
||||
// render_info ("tagente_estado");
|
||||
// render_info ("talert_template_modules");
|
||||
render_info_data ("SELECT COUNT(*) FROM tevento","Total events");
|
||||
|
||||
if($config['enterprise_installed'])
|
||||
@ -570,9 +566,9 @@ render_row (status_fragmentation_tables($tables_fragmentation_max_rec_value, $ta
|
||||
|
||||
echo "<tr><th style='background-color:#b1b1b1;font-weight:bold;font-style:italic;border-radius:2px;' align=center colspan='2'>".__(" Pandora FMS logs dates")."</th></tr>";
|
||||
|
||||
render_row(number_format(get_logs_size($path_server_logs)/1024, 2) . "M", 'Size server logs (current value)');
|
||||
render_row(number_format(get_logs_size($path_server_logs)/1048576, 3) . "M", 'Size server logs (current value)');
|
||||
render_row(get_status_logs($path_server_logs),'Status server logs');
|
||||
render_row(number_format(get_logs_size($path_console_logs)/1024, 2) . "M", 'Size console logs (current value)');
|
||||
render_row(number_format(get_logs_size($path_console_logs)/1048576, 3) . "M", 'Size console logs (current value)');
|
||||
render_row(get_status_logs($path_console_logs),'Status console logs');
|
||||
|
||||
echo "<tr><th style='background-color:#b1b1b1;font-weight:bold;font-style:italic;border-radius:2px;' align=center colspan='2'>".__(" Pandora FMS Licence Information")."</th></tr>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user