Merge branch 'pandora_6.0' of https://192.168.50.5:8081/artica/pandorafms into pandora_6.0
This commit is contained in:
commit
70bae90a02
|
@ -251,7 +251,7 @@ if ($get_module_detail) {
|
||||||
|
|
||||||
foreach ($columns as $col => $attr) {
|
foreach ($columns as $col => $attr) {
|
||||||
if ($attr[1] != "modules_format_data") {
|
if ($attr[1] != "modules_format_data") {
|
||||||
$data[] = date('d F Y - h:i:s A', $row['utimestamp']);
|
$data[] = date('d F Y h:i:s A', $row['utimestamp']);
|
||||||
|
|
||||||
}
|
}
|
||||||
elseif (($config['command_snapshot']) && (preg_match ("/[\n]+/i", $row[$attr[0]]))) {
|
elseif (($config['command_snapshot']) && (preg_match ("/[\n]+/i", $row[$attr[0]]))) {
|
||||||
|
@ -294,7 +294,17 @@ if ($get_module_detail) {
|
||||||
$data[] = 'No data';
|
$data[] = 'No data';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
if(is_snapshot_data($row[$attr[0]])){
|
||||||
$data[] = "<a target='_blank' href='".io_safe_input($row[$attr[0]])."'><img style='width:300px' src='".io_safe_input($row[$attr[0]])."'></a>";
|
$data[] = "<a target='_blank' href='".io_safe_input($row[$attr[0]])."'><img style='width:300px' src='".io_safe_input($row[$attr[0]])."'></a>";
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$data[] = $row[$attr[0]];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
|
@ -8,13 +8,13 @@ msgstr ""
|
||||||
"Project-Id-Version: pandora-fms\n"
|
"Project-Id-Version: pandora-fms\n"
|
||||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"POT-Creation-Date: 2016-11-03 10:13+0100\n"
|
"POT-Creation-Date: 2016-11-03 10:13+0100\n"
|
||||||
"PO-Revision-Date: 2016-11-03 10:53+0000\n"
|
"PO-Revision-Date: 2016-11-07 12:05+0000\n"
|
||||||
"Last-Translator: artu30 <gonzalez.arturo1991@gmail.com>\n"
|
"Last-Translator: artu30 <gonzalez.arturo1991@gmail.com>\n"
|
||||||
"Language-Team: Spanish <es@li.org>\n"
|
"Language-Team: Spanish <es@li.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Launchpad-Export-Date: 2016-11-03 11:04+0000\n"
|
"X-Launchpad-Export-Date: 2016-11-07 12:11+0000\n"
|
||||||
"X-Generator: Launchpad (build 18246)\n"
|
"X-Generator: Launchpad (build 18246)\n"
|
||||||
|
|
||||||
#: ../../general/links_menu.php:20 ../../godmode/menu.php:284
|
#: ../../general/links_menu.php:20 ../../godmode/menu.php:284
|
||||||
|
@ -10976,7 +10976,7 @@ msgstr "Siguiente IP disponible"
|
||||||
|
|
||||||
#: ../../enterprise/extensions/csv_import_group.php:27
|
#: ../../enterprise/extensions/csv_import_group.php:27
|
||||||
msgid "CSV import group"
|
msgid "CSV import group"
|
||||||
msgstr "Importar el grupo a CSV"
|
msgstr "Importar grupos de CSV"
|
||||||
|
|
||||||
#: ../../enterprise/extensions/resource_exportation/functions.php:19
|
#: ../../enterprise/extensions/resource_exportation/functions.php:19
|
||||||
#: ../../extensions/resource_exportation.php:350
|
#: ../../extensions/resource_exportation.php:350
|
||||||
|
@ -33565,47 +33565,3 @@ msgstr "Nodo principal"
|
||||||
|
|
||||||
#~ msgid "Agent max"
|
#~ msgid "Agent max"
|
||||||
#~ msgstr "Máximo agente"
|
#~ msgstr "Máximo agente"
|
||||||
|
|
||||||
#~ msgid "Show percentil 95º"
|
|
||||||
#~ msgstr "Mostrar porcentaje 95º"
|
|
||||||
|
|
||||||
#~ msgid "Combined%20Sample%20Graph"
|
|
||||||
#~ msgstr "Gráfico de Muestra Combinado"
|
|
||||||
|
|
||||||
#~ msgid "Update manager » Messages"
|
|
||||||
#~ msgstr "Administrador de actualizaciones » Mensajes"
|
|
||||||
|
|
||||||
#~ msgid "Update manager » Online"
|
|
||||||
#~ msgstr "Administrador de actualizaciones » Conectado"
|
|
||||||
|
|
||||||
#~ msgid "Update manager » Offline"
|
|
||||||
#~ msgstr "Administrador de actualizaciones » Sin conexión"
|
|
||||||
|
|
||||||
#~ msgid "Update manager » Setup"
|
|
||||||
#~ msgstr "Administrador de actualizaciones » Configuración"
|
|
||||||
|
|
||||||
#, php-format
|
|
||||||
#~ msgid "Percentile %dº"
|
|
||||||
#~ msgstr "Porcentaje %dº"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "This happen when you have just created a module and it's not executed at "
|
|
||||||
#~ "first time. Usually in a few seconds should be initialized and you will be "
|
|
||||||
#~ "able to see in main view. If you keep non-init modules for more than 24hr "
|
|
||||||
#~ "(due a problem in it's execution or configuration) they will be "
|
|
||||||
#~ "automatically deleted by the system. Non-init are not visible in the “main "
|
|
||||||
#~ "view”, you can see/edit them in the module administration section, in the "
|
|
||||||
#~ "agent administrator."
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "Esto pasa cuando se acaba de crear un método y no se ejecuta la primera vez. "
|
|
||||||
#~ "Habitualmente en unos segundos debería estar iniciado para que lo pueda ver "
|
|
||||||
#~ "en la vista principal. Si se mantiene en la lista de módulos no iniciados "
|
|
||||||
#~ "más tiempo de 24hrs (debido a un problema en su ejecución o configuración) "
|
|
||||||
#~ "serán borrados automáticamente por el sistema."
|
|
||||||
|
|
||||||
#~ msgid "Create group if doesn’t exist in destination"
|
|
||||||
#~ msgstr "Crear grupo si no existe en el destino"
|
|
||||||
|
|
||||||
#, php-format
|
|
||||||
#~ msgid "® Ártica soluciones Pandora FMS %s - Build %s"
|
|
||||||
#~ msgstr "® Ártica soluciones Pandora FMS %s - Versión %s"
|
|
||||||
|
|
|
@ -694,3 +694,11 @@ else {
|
||||||
win32_service_run();
|
win32_service_run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Kill any scripts started by the Pandora FMS Server that are still running.
|
||||||
|
################################################################################
|
||||||
|
END {{
|
||||||
|
local $SIG{HUP} = "IGNORE";
|
||||||
|
kill("HUP", -$$);
|
||||||
|
}}
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,9 @@ sub new ($$$$$$) {
|
||||||
$Sem = Thread::Semaphore->new;
|
$Sem = Thread::Semaphore->new;
|
||||||
$TaskSem = Thread::Semaphore->new (0);
|
$TaskSem = Thread::Semaphore->new (0);
|
||||||
|
|
||||||
|
db_do ($dbh, 'UPDATE trecon_task SET utimestamp = 0 WHERE id_recon_server = ? AND status <> -1',
|
||||||
|
get_server_id ($dbh, $config->{'servername'}, RECONSERVER));
|
||||||
|
|
||||||
# Call the constructor of the parent class
|
# Call the constructor of the parent class
|
||||||
my $self = $class->SUPER::new($config, RECONSERVER, \&PandoraFMS::ReconServer::data_producer, \&PandoraFMS::ReconServer::data_consumer, $dbh);
|
my $self = $class->SUPER::new($config, RECONSERVER, \&PandoraFMS::ReconServer::data_producer, \&PandoraFMS::ReconServer::data_consumer, $dbh);
|
||||||
|
|
||||||
|
@ -517,8 +520,8 @@ sub exec_recon_script ($$$) {
|
||||||
logger ($pa_config, "Cannot execute recon task command $command.");
|
logger ($pa_config, "Cannot execute recon task command $command.");
|
||||||
}
|
}
|
||||||
|
|
||||||
# Notify this recon task is ended
|
# Only update the timestamp in case something went wrong. The script should set the status.
|
||||||
update_recon_task ($dbh, $task->{'id_rt'}, -1);
|
db_do ($dbh, 'UPDATE trecon_task SET utimestamp = ? WHERE id_rt = ?', time (), $task->{'id_rt'});
|
||||||
|
|
||||||
logger($pa_config, 'Done executing recon script ' . safe_output($script->{'name'}), 10);
|
logger($pa_config, 'Done executing recon script ' . safe_output($script->{'name'}), 10);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue