Commit Graph

138 Commits

Author SHA1 Message Date
fermin831 cedf825526 [Server] [Linux Agent] Added cron_interval to modules XML to avoid cron blocked modules go to unknown 2018-02-20 18:31:08 +01:00
vgilc 227eb2b9cb Merge branch '1465-optimizacion-en-el-procesado-de-xml' into 'develop'
Performance improvements. Rewrote safe_input and safe_output.

See merge request artica/pandorafms!925
2017-11-29 17:08:03 +01:00
fermin831 f1cbaec98b Added safe_output to server events 2017-10-25 12:11:56 +02:00
Ramon Novoa 90366e7e58 Performance improvements. Rewrote safe_input and safe_output.
Ref pandora_enterprise#1465.
2017-10-13 15:50:26 +02:00
Arturo Gonzalez 1e6f3a9d9b Borja fix this error 2017-10-10 11:44:15 +02:00
Arturo Gonzalez 391655f6fe Added images and Borsha fix 2017-10-09 17:11:08 +02:00
Ramon Novoa 96a3dfab43 Set @Parser::Expat::Encoding_Path instead of calling load_encoding.
Parser::Expat::load_encoding doesn't seem to be thread safe. Set
@Parser::Expat::Encoding_Path instead to avoid problems.

Ref pandora_enterprise#1340.
2017-09-28 15:18:21 +02:00
fermin831 787fb00d16 Avoid to overwrite the os_version when is empty 2017-09-11 17:46:56 +02:00
Ramon Novoa 48d303cf8f Fix a warning when there are multiple empty addresses. 2017-07-10 12:20:23 +02:00
Ramon Novoa dff80fed84 Add a new Recon module that will be used by the Satellite Server too. 2017-03-08 13:20:00 +01:00
Ramon Novoa e3205226e1 Make sure the alias is always set. 2017-02-21 14:24:50 +01:00
Daniel Maya d39b108c1f Merge branch 'develop' into feature/alias_freandly_name
Conflicts:
	pandora_agents/unix/pandora_agent
	pandora_console/extras/pandoradb_migrate_6.0_to_6.1.mysql.sql
	pandora_console/extras/pandoradb_migrate_6.0_to_6.1.oracle.sql
	pandora_console/godmode/agentes/agent_manager.php
	pandora_console/godmode/agentes/modificar_agente.php
	pandora_console/godmode/agentes/planned_downtime.editor.php
	pandora_console/godmode/massive/massive_delete_modules.php
	pandora_console/godmode/massive/massive_edit_modules.php
	pandora_console/include/class/Tree.class.php
	pandora_console/include/functions_graph.php
	pandora_console/include/functions_treeview.php
	pandora_console/include/functions_ui.php
	pandora_console/operation/agentes/estado_agente.php
	pandora_console/operation/agentes/status_monitor.php
	pandora_console/pandoradb.sql
2017-02-16 16:05:21 +01:00
Ramon Novoa 9fef698df4 Do not add module_parent to extended_info. 2017-02-16 11:44:02 +01:00
fbsanchez 83ca7e898f Minor fix (performance)
Moved transactional subsystem enabled update to "new module" section
2017-02-09 10:15:50 +01:00
Ramon Novoa af276ab7ac Do not constrain UTC time offsets. 2017-02-02 12:50:24 +01:00
Ramon Novoa 93d7cc5253 Remove debugging code. 2016-12-22 11:35:21 +01:00
Ramon Novoa 01217fe3b2 Add support to link modules via XML data files. 2016-12-14 12:59:31 +01:00
Ramon Novoa c11b1c1150 Parse group_id XML attributes. 2016-12-13 15:03:30 +01:00
m-lopez-f 9e5fe175a0 Fixed problems with module group when not exicts.
(cherry picked from commit 62028a0b47)
2016-12-05 10:08:05 +01:00
Ramon Novoa a8b113a6fc Added group password support. 2016-11-25 12:41:48 +01:00
Ramon Novoa f81af8b437 Added support for loading .enc files for XML::Parser.
(cherry picked from commit 11e1f5eb1f)
2016-11-15 11:31:59 +01:00
fbsanchez 2db5823746 Feature: Transactional agent flag
When a module Transactional subsystem status is received, the agent
turns into transactional_agent
2016-10-27 18:33:27 +02:00
Ramon Novoa 72e22dfc3a Read ff threshold related fields from XML data files. 2016-10-26 12:15:17 +02:00
Ramon Novoa 0987b7a1f6 Updated the Data Server to process agent aliases. 2016-09-27 15:52:27 +02:00
daniel 2100a72c47 ticket integria: 3542 fixed token autocreate allow create modules in agent if exist 2016-08-22 12:17:07 +02:00
fermin831 8c30cbd756 Added AUTODISABLE mode to agents Tickets #3497 2016-06-03 11:58:13 +02:00
fermin831 f397b657f1 Added new server_keepalive column to have individual keepalive TICKETS #3273 2016-03-15 16:02:27 +01:00
fermin831 55140d06dd Fixed cron updating problem TICKETS #3329
In addition, linux agent send crontab token and in data modules, cron
information is displayed grayed
2016-02-05 09:56:37 +01:00
fermin831 6ebba6377c Added several alert_templates support TICKET: #3310
and agent reads module_alert_template in conf file
2016-02-01 17:24:31 +01:00
Hirofumi Kosaka 5679fa3f48 Updated DataServer to accept 'alert_template' directive. 2016-01-13 15:25:47 +09:00
Ramon Novoa 86c900b196 Added support for server XML files. 2015-10-14 14:58:34 +02:00
Ramon Novoa 4ae14282ff Sort .data files by filename if modification times are the same.
(cherry picked from commit a87a1f8750)
2015-08-11 12:20:33 +02:00
Ramon Novoa e113c7e850 Sort queued files before applying the one XML per agent limit. 2015-08-10 16:46:10 +02:00
Ramon Novoa 6592e0f5b9 Return from the data server consumer if the XML file was not found. 2015-07-22 10:38:20 +02:00
Ramon Novoa 15fb7ff2e3 Create an event when an agent can't be created because it can't be assigned to a group. 2014-09-16 16:58:37 +02:00
Ramon Novoa 5282d9ef9a Added constants for server types. 2014-09-10 18:05:33 +02:00
jsatoh aabc528c01 2014-08-12 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Core.pm, lib/PandoraFMS/DataServer.pm: Fixed sql
	error with MySQL 5.6 and its default sql_mode.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10400 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-08-12 01:07:29 +00:00
mdtrooper f679cec04c 2014-07-25 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/GIS.pm, lib/PandoraFMS/DB.pm,
	lib/PandoraFMS/Core.pm, lib/PandoraFMS/ReconServer.pm,
	lib/PandoraFMS/DataServer.pm: tiny fixes for to improve the support
	of PostgreSQL.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10356 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-07-25 13:15:24 +00:00
Ramon Novoa 73494d9f82 2014-05-30 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Config.pm
	  lib/PandoraFMS/DataServer.pm: Ignore the agent group coming from the XML
	  if autocreate_group is set.

	* util/recon_scripts/snmp-recon.pl: Changed the default value for a
	  router-less scan.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10045 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-05-30 10:01:23 +00:00
Ramon Novoa e537124ec8 2014-01-08 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm: Fixed a typo that prevented timestamps in
	  datalists from being read. Fixes bug #2404.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9297 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-01-08 15:46:44 +00:00
Ramon Novoa 651811b1d9 2013-11-13 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm: Fixed a bug when a parent was defined but
	  empty in the XML and an agent with an empty address existed in the
	  database.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9071 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-11-13 12:09:28 +00:00
zarzuelo 3aa5403921 2013-10-28 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DataServer.pm: Add check to update
	adopted unlinked data modules



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8971 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-10-28 15:03:00 +00:00
Ramon Novoa 87e009308a 2013-08-01 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm,
	  lib/PandoraFMS/SNMPServer.pm,
	  lib/PandoraFMS/Server.pm,
	  lib/PandoraFMS/PluginServer.pm,
	  lib/PandoraFMS/ProducerConsumerServer.pm,
	  lib/PandoraFMS/PredictionServer.pm,
	  lib/PandoraFMS/ReconServer.pm,
	  lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/WMIServer.pm: Added clean-up code to avoid resource
	  leaks when there is a crash and the server has to auto-restart.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8611 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-01 09:54:21 +00:00
Ramon Novoa 8184f73ae3 2013-05-03 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm: Add a default module_interval.

	* util/pandora_db.pl: Moved data deletion code to a generic function.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8097 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-03 18:00:53 +00:00
Ramon Novoa a99f32ebb6 2013-04-17 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm: Update the module interval. Fixes bug
	  #3610666.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8007 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-17 17:59:49 +00:00
Ramon Novoa 7236978fac 2013-04-17 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/WMIServer.pm: Style fix.

	* lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/DataServer.pm: Added support for multiple ip
	  addresses.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8001 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-17 10:49:47 +00:00
Ramon Novoa 9154814f2c 2013-03-26 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/Tools.pm,
	  lib/PandoraFMS/DataServer.pm,
	  lib/PandoraFMS/ReconServer.pm,
	  bin/pandora_server: Improved pandora_get_os to support custom operating
	  systems and moved it from Tools.pm to Core.pm.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7889 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-26 16:13:15 +00:00
zarzuelo 541d99fdd1 2013-03-04 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm
	lib/PandoraFMS/DataServer.pm: Clean code and fix some
	forgotten changes in last GIS code



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7774 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-04 18:06:46 +00:00
Ramon Novoa caed0f345c 2013-03-01 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/DB.pm,
	  lib/PandoraFMS/DataServer.pm: Refactored some GIS code. Still needs
	  testing.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7768 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-01 14:27:52 +00:00
darode 6c61f61ead 2013-02-28 Dario Rodriguez <dario@artica.es>
* lib/PandoraFMS/DataServer.pm: Added feature to update custom
        * field
        on every XML process only with learning mode enabled.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7753 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-28 15:38:23 +00:00