mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch 'develop' of https://github.com/pandorafms/pandorafms into develop
This commit is contained in:
commit
a19e4cdbf5
@ -859,6 +859,7 @@ function events_print_event_table ($filter = "", $limit = 10, $width = 440, $ret
|
|||||||
echo ui_print_info_message ( __('No events') );
|
echo ui_print_info_message ( __('No events') );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
$table = new stdClass();
|
||||||
$table->id = 'latest_events_table';
|
$table->id = 'latest_events_table';
|
||||||
$table->cellpadding = 0;
|
$table->cellpadding = 0;
|
||||||
$table->cellspacing = 0;
|
$table->cellspacing = 0;
|
||||||
|
@ -82,6 +82,7 @@ $total_agentes = 0;
|
|||||||
$monitor_ok = 0;
|
$monitor_ok = 0;
|
||||||
$monitor_warning = 0;
|
$monitor_warning = 0;
|
||||||
$monitor_critical = 0;
|
$monitor_critical = 0;
|
||||||
|
$monitor_unknown = 0;
|
||||||
$agents_unknown = 0;
|
$agents_unknown = 0;
|
||||||
foreach ($result_groups as $data) {
|
foreach ($result_groups as $data) {
|
||||||
$total_agentes += $data["_total_agents_"];
|
$total_agentes += $data["_total_agents_"];
|
||||||
|
@ -243,7 +243,7 @@ if ($is_admin) {
|
|||||||
require($config['homedir'] . '/godmode/servers/servers.build_table.php');
|
require($config['homedir'] . '/godmode/servers/servers.build_table.php');
|
||||||
|
|
||||||
}
|
}
|
||||||
$out .= '<table cellpadding=0 cellspacing=0 class="databox pies" style="margin-top:15px;" width=100%><tr><td>';
|
$out = '<table cellpadding=0 cellspacing=0 class="databox pies" style="margin-top:15px;" width=100%><tr><td>';
|
||||||
$out .= '<fieldset class="databox tactical_set">
|
$out .= '<fieldset class="databox tactical_set">
|
||||||
<legend>' .
|
<legend>' .
|
||||||
__('Event graph') .
|
__('Event graph') .
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
if(!isset($table->width)) {
|
if(!isset($table->width)) {
|
||||||
|
$table = new stdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,6 +25,8 @@ require_once ($config['homedir'].'/include/functions_ui.php');
|
|||||||
|
|
||||||
check_login ();
|
check_login ();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (! check_acl ($config["id_user"], 0, "ER")) {
|
if (! check_acl ($config["id_user"], 0, "ER")) {
|
||||||
db_pandora_audit("ACL Violation",
|
db_pandora_audit("ACL Violation",
|
||||||
"Trying to access event viewer");
|
"Trying to access event viewer");
|
||||||
@ -46,10 +48,7 @@ if (!$meta) {
|
|||||||
if (isset($config['event_replication']) &&
|
if (isset($config['event_replication']) &&
|
||||||
$config['event_replication'] == 1) {
|
$config['event_replication'] == 1) {
|
||||||
|
|
||||||
if ($config['show_events_in_local'] == 0) {
|
if ((bool)$config['show_events_in_local']) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$readonly = true;
|
$readonly = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -223,6 +222,8 @@ $date_from = (string)get_parameter('date_from', '');
|
|||||||
$date_to = (string)get_parameter('date_to', '');
|
$date_to = (string)get_parameter('date_to', '');
|
||||||
$server_id = (int)get_parameter('server_id', 0);
|
$server_id = (int)get_parameter('server_id', 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$text_agent = (string) get_parameter("text_agent");
|
$text_agent = (string) get_parameter("text_agent");
|
||||||
$id_agent = get_parameter('id_agent', 0);
|
$id_agent = get_parameter('id_agent', 0);
|
||||||
if ($id_agent != 0) {
|
if ($id_agent != 0) {
|
||||||
@ -243,6 +244,7 @@ if ($id_agent_module != 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$tag_with_json = base64_decode(get_parameter("tag_with", '')) ;
|
$tag_with_json = base64_decode(get_parameter("tag_with", '')) ;
|
||||||
$tag_with_json_clean = io_safe_output($tag_with_json);
|
$tag_with_json_clean = io_safe_output($tag_with_json);
|
||||||
$tag_with_base64 = base64_encode($tag_with_json_clean);
|
$tag_with_base64 = base64_encode($tag_with_json_clean);
|
||||||
@ -263,6 +265,8 @@ users_get_groups ($config["id_user"], "ER");
|
|||||||
|
|
||||||
$ids = (array) get_parameter ("eventid", -1);
|
$ids = (array) get_parameter ("eventid", -1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$params = "search=" . rawurlencode(io_safe_input($search)) .
|
$params = "search=" . rawurlencode(io_safe_input($search)) .
|
||||||
"&event_type=" . $event_type .
|
"&event_type=" . $event_type .
|
||||||
"&severity=" . $severity .
|
"&severity=" . $severity .
|
||||||
@ -295,6 +299,8 @@ if ($meta) {
|
|||||||
|
|
||||||
$url = "index.php?sec=eventos&sec2=operation/events/events&" . $params;
|
$url = "index.php?sec=eventos&sec2=operation/events/events&" . $params;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
if ($config["pure"] == 0 || $meta) {
|
if ($config["pure"] == 0 || $meta) {
|
||||||
$pss = get_user_info($config['id_user']);
|
$pss = get_user_info($config['id_user']);
|
||||||
|
@ -41,6 +41,7 @@ if(defined('METACONSOLE')){
|
|||||||
else {
|
else {
|
||||||
$jump = "<br>";
|
$jump = "<br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_ajax()) {
|
if (is_ajax()) {
|
||||||
$get_filter_values = get_parameter('get_filter_values', 0);
|
$get_filter_values = get_parameter('get_filter_values', 0);
|
||||||
$save_event_filter = get_parameter('save_event_filter', 0);
|
$save_event_filter = get_parameter('save_event_filter', 0);
|
||||||
@ -141,7 +142,7 @@ $strict_user = db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_use
|
|||||||
$tags = tags_get_user_tags($config['id_user'], 'ER');
|
$tags = tags_get_user_tags($config['id_user'], 'ER');
|
||||||
|
|
||||||
|
|
||||||
if ($id_agent == 0 && $text_agent != '') {
|
if ($id_agent == 0 && $text_agent != __('All')) {
|
||||||
$id_agent = -1;
|
$id_agent = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -419,6 +420,7 @@ else {
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
//- INI ADVANCE FILTER -------------------------------------------------
|
//- INI ADVANCE FILTER -------------------------------------------------
|
||||||
|
$table_advanced = new stdClass();
|
||||||
$table_advanced->id = 'events_filter_form_advanced';
|
$table_advanced->id = 'events_filter_form_advanced';
|
||||||
$table_advanced->width = '98%';
|
$table_advanced->width = '98%';
|
||||||
$table_advanced->cellspacing = 4;
|
$table_advanced->cellspacing = 4;
|
||||||
@ -542,6 +544,7 @@ $table_advanced->rowclass[] = '';
|
|||||||
//- END ADVANCE FILTER -------------------------------------------------
|
//- END ADVANCE FILTER -------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
$table = new stdClass();
|
||||||
$table->id = 'events_filter_form';
|
$table->id = 'events_filter_form';
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->cellspacing = 4;
|
$table->cellspacing = 4;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user