mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
2012-06-06 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* operation/agentes/ver_agente.php pandora_console/godmode/alerts/alert_list.builder.php: Fixed alert creation when metaconsole is activated. Merged from branches. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6425 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
be8d87e9e7
commit
2a9ab14a42
@ -1,3 +1,11 @@
|
|||||||
|
2012-06-06 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
|
* operation/agentes/ver_agente.php
|
||||||
|
pandora_console/godmode/alerts/alert_list.builder.php: Fixed alert
|
||||||
|
creation when metaconsole is activated.
|
||||||
|
|
||||||
|
Merged from branches.
|
||||||
|
|
||||||
2012-06-06 Vanessa Gil <vanessa.gil@artica.es>
|
2012-06-06 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
* operation/agentes/exportdata.php: Fixed bug:
|
* operation/agentes/exportdata.php: Fixed bug:
|
||||||
|
@ -180,6 +180,8 @@ $(document).ready (function () {
|
|||||||
inputs.push ('filter=delete_pending = 0 AND id_agente_modulo NOT IN (SELECT id_agente_modulo FROM tagente_estado WHERE utimestamp = 0)');
|
inputs.push ('filter=delete_pending = 0 AND id_agente_modulo NOT IN (SELECT id_agente_modulo FROM tagente_estado WHERE utimestamp = 0)');
|
||||||
inputs.push ("get_agent_modules_json=1");
|
inputs.push ("get_agent_modules_json=1");
|
||||||
inputs.push ("page=operation/agentes/ver_agente");
|
inputs.push ("page=operation/agentes/ver_agente");
|
||||||
|
/* This will force to get local modules although metaconsole is active */
|
||||||
|
inputs.push ("force_local_modules=1");
|
||||||
jQuery.ajax ({
|
jQuery.ajax ({
|
||||||
data: inputs.join ("&"),
|
data: inputs.join ("&"),
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
|
@ -259,6 +259,8 @@ if (is_ajax ()) {
|
|||||||
$indexed = (bool) get_parameter ('indexed', true);
|
$indexed = (bool) get_parameter ('indexed', true);
|
||||||
$agentName = (string) get_parameter ('agent_name', null);
|
$agentName = (string) get_parameter ('agent_name', null);
|
||||||
$server_name = (string) get_parameter ('server_name', null);
|
$server_name = (string) get_parameter ('server_name', null);
|
||||||
|
/* This will force to get local modules although metaconsole is active, by default get all modules from all nodes */
|
||||||
|
$force_local_modules = (int) get_parameter ('force_local_modules', 0);
|
||||||
|
|
||||||
if ($agentName != null) {
|
if ($agentName != null) {
|
||||||
$search = array();
|
$search = array();
|
||||||
@ -267,7 +269,7 @@ if (is_ajax ()) {
|
|||||||
else
|
else
|
||||||
$search = false;
|
$search = false;
|
||||||
|
|
||||||
if ($config ['metaconsole'] == 1) {
|
if ($config ['metaconsole'] == 1 and !$force_local_modules) {
|
||||||
if (enterprise_include_once ('include/functions_metaconsole.php') !== ENTERPRISE_NOT_HOOK) {
|
if (enterprise_include_once ('include/functions_metaconsole.php') !== ENTERPRISE_NOT_HOOK) {
|
||||||
$connection = metaconsole_get_connection($server_name);
|
$connection = metaconsole_get_connection($server_name);
|
||||||
if (metaconsole_load_external_db($connection) == NOERR) {
|
if (metaconsole_load_external_db($connection) == NOERR) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user