Commit Graph

497 Commits

Author SHA1 Message Date
zarzuelo 16b3467e5d 2013-01-11 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Config.pm
	lib/PandoraFMS/Core.pm: clean up the compound alerts from
	server code



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7438 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-11 13:49:50 +00:00
juanmanuelr 8c049f5590 2013-01-11 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* lib/PandoraFMS/Core.pm: Fixed _id_alert_ macro in events.
	
	Merged from branches.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7434 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-11 12:20:16 +00:00
darode 15e733852d 2013-01-10 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/PluginServer.pm: Added log traces for plugin error
        to notice about low memory.
        * util/plugin/mysql_plugin.sh: Added correct exit code for plugin.

        MERGED FROM 4.0.3



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7420 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-10 14:05:39 +00:00
hkosaka b2698a1655 2013-01-10 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/SNMPServer.pm: Rewrite my commit at rev7388 in more
	general way. logger() call was deleted here, because the corresponding
	error message is recorded by pandora_crash(). Merged from 4.0.x.

	* lib/PandoraFMS/Core.pm: Fixed that invalid regex in
	critical_str or warning_str could make server down at worst.
	Not used logger() here, because the corresponding error
        message is recorded by pandora_crash(). Merged from 4.0.x.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-10 09:23:39 +00:00
darode 573fee2b90 2013-01-09 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Added log traces to inform
	about the problem of undefined return of snmpget command.

	MERGED FROM 4.0.3



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7405 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 16:28:05 +00:00
darode d5443e575e 2013-01-09 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Controlled an error if output of
	SNMP command is empty and fixed several error comparing port of SNMP
	as numbers instead as strings.

	MERGED FROM 4.0.3



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 14:35:21 +00:00
slerena f3805014a0 2013-01-09 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Fixed on port 0 (Snmp polling).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7399 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 13:36:46 +00:00
darode bdd55253e3 2013-01-09 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/DataServer.pm: Fixed a bug which creates modules
        with names which have \n\r and later create problems when editing
        the module information.

	MARGED FROM 4.0.3



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7394 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 12:59:11 +00:00
slerena 6e25b117e7 2013-01-09 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Fixed bug #3555223 about
        different UDP ports for SNMP polling. Merged fix from 4.0.x 
        branch. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 11:43:56 +00:00
hkosaka b872a94ad9 2013-01-09 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/SNMPServer.pm: Made sure SNMP filter is valid
	before performing string matching. It could make Pandora Server
	down at worst.  Merged from 4.0 branch.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7389 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 11:16:52 +00:00
juanmanuelr 1effa7b63f 2013-01-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* lib/PandoraFMS/PredictionServer.pm: Fixed prediction modules.
	
	Bug id: #3599200



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7386 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 10:37:20 +00:00
juanmanuelr 95bb5f9662 2013-01-02 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* lib/PandoraFMS/Core.pm: Added macro _email_tag_ to replace with
	emails associated to module tags.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7346 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-02 10:15:11 +00:00
Ramon Novoa 978bfd2033 2012-12-21 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/DataServer.pm,
	  util/pandora_db.pl: Implemented a real not-init status. Small fixes.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7324 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-21 14:42:15 +00:00
Ramon Novoa f6da945f45 2012-12-19 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Return async modules to normal after
	  twice the module interval has elapsed.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7313 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-19 17:51:15 +00:00
zarzuelo e8628e0e2f 2012-12-19 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Added new function to update 
	replicated events (enterprise feature) and fix some little
	bugs



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7311 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-19 17:02:25 +00:00
zarzuelo f7681e76c1 2012-12-17 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DataServer.pm: Unset a missed data of the
	parameters hash when create module on dataserver



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7286 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-17 11:05:50 +00:00
zarzuelo 53162b4e9a 2012-12-13 Sergio Martin <sergio.martin@artica.es>
* conf/pandora_server.conf
	lib/PandoraFMS/Config.pm
	lib/PandoraFMS/DB.pm
	lib/PandoraFMS/Core.pm
	bin/pandora_server: Added new thread to the
	event replication process (enterprise feature) 
	and control this one and the policy queue patrol 
	process with new two configuration parameters



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7278 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-13 17:07:23 +00:00
slerena 6aebffcaab 2012-12-10 Sancho Lerena <slerena@artica.es>
* Core.pm: Applied patch 3576115 from Axel: implemented maintance
        priority from events coming from recovery alerts.

        * Tool.pm: Decode output in all logfile output.

        * Config.pm: Updated version.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7249 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-10 19:09:58 +00:00
hkosaka 71a67e8291 2012-11-30 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/SNMPServer.pm: Added missing safe_output()
	for trap filters. This fixed a bug that a backslash could not
	escape its following character.

	Merged from 4.0 branch.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7212 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-30 06:18:29 +00:00
Ramon Novoa cf75f85d7e 2012-11-28 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/Tools.pm: Temporal fix to OID translation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7200 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-28 19:41:24 +00:00
Ramon Novoa e45e45cca4 2012-11-28 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added fired alert count.

	* lib/PandoraFMS/DataServer.pm: Do not process more than one XML from
	  the same agent at the same time.

	* util/pandora_db.pl: Recalculate total module count.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7196 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-28 14:33:26 +00:00
jsatoh cf9b9dcb15 2012-11-26 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Core.pm: Fixed unintended executions and wrong event
	messages in planned downtime.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7182 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-26 07:27:25 +00:00
zarzuelo 47f3dd55fa 2012-11-15 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm
	lib/PandoraFMS/DataServer.pm: Added support for new agent data in
	the XML as custom_id, url_address and custom fields



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7150 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-15 15:20:48 +00:00
Ramon Novoa fd975c367f 2012-11-14 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm,
	  util/pandora_db.pl: Added support for module status calculation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7147 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-14 18:45:40 +00:00
zarzuelo 90cfd8e652 2012-11-13 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DataServer.pm: Adopt server to the new fields of
	the agents XML



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-13 12:31:14 +00:00
zarzuelo 5fc6415a31 2012-10-30 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Changed the unknown status treatment
	as independent status to fit new needs. Change the internal command
	to create event to have more parameters



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7114 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-30 12:51:13 +00:00
hkosaka 9dc56e9f37 2012-10-30 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/Core.pm, util/pandora_manage.pl: Added
	'description' parameter to '--create_group' CLI.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7111 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-30 09:32:35 +00:00
Ramon Novoa 7a85fd1b8a 2012-10-29 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/Tools.pm: Added support for custom timeouts and retries
	  to remote modules.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7109 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-29 18:42:39 +00:00
Ramon Novoa 3324c8a7f9 2012-10-24 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf,
	  lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/DataServer.pm: Added a new configuration option to
	  make the data server process XML files in a stack instead of a queue.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7086 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-24 09:38:08 +00:00
Ramon Novoa cc65703429 2012-10-23 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added new macros. Execute alerts after the
	  module status is updated.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7085 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-24 09:07:10 +00:00
Ramon Novoa 44264d3177 2012-10-23 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/Tools.pm: Added support for remote cron modules. Small
	  fixes.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7082 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-23 09:50:39 +00:00
jsatoh 33cb2abf1e 2012-10-10 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Core.pm: Fixed bug: periodic (monthly and weekly)
	planned downtime is not stopped at expected time.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7062 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-10 06:02:25 +00:00
jsatoh d0caed28b3 2012-10-04 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Core.pm: Fixed unexpected execution with monthly
	planned downtime.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7041 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-04 04:55:06 +00:00
Ramon Novoa 7b9c64468d 2012-09-28 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: Fixed an SQL query.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7010 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-28 14:06:55 +00:00
Ramon Novoa 229d03bc28 2012-09-28 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/Tools.pm: Disable a module if a text obj tag cannot
	  be converted to an OID.

	* lib/PandoraFMS/ReconServer.pm: Small improvements.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7008 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-28 14:04:33 +00:00
Ramon Novoa 85f1fe1b08 2012-09-17 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added support for inverse intervals when calculating
	  the status of a module.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6978 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-17 15:05:48 +00:00
vgilc 0b8051a75e 2012-09-17 Vanessa Gil <vanessa.gil@artica.es>
* lib/PandoraFMS/ReconServer.pm: Added new fields
	to modules.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6976 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-17 11:50:30 +00:00
zarzuelo c00d9761bc 2012-09-13 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Generate events when a
	module changes to unknown status



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6970 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-13 14:27:11 +00:00
mdtrooper f7c574f939 2012-09-11 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: changed to use own code instead the
	external module Time::Piece.
	
	* lib/PandoraFMS/Tools.pm: added function "month_have_days" for
	to get the count of days for any month in any year.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6955 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-11 16:30:55 +00:00
vgilc 744801a63b 2012-09-10 Vanessa Gil <vanessa.gil@artica.es>
* lib/PandoraFMS/Core.pm: Added several fields
	to events.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6949 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-10 16:09:27 +00:00
mdtrooper 9467c58ebc 2012-08-30 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: refactoriced the code for the new Planned
	Downtime, now check the downtimes once and periodical and the
	subtypes of downtimes.
	
	* bin/pandora_server: cleaned source code style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6925 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-30 16:35:24 +00:00
mdtrooper 5cd7b95996 2012-08-21 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: added in the modules the same feature to
	set agent in "Quiet" mode.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6899 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-21 19:06:47 +00:00
mdtrooper 59ddc74a16 2012-08-21 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Server.pm:: added the feature to set a agent in
	"Quiet" mode.
	
	* lib/PandoraFMS/Core.pm, bin/pandora_server: cleaned source code
	style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6897 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-21 17:33:46 +00:00
zarzuelo b2e7e74fee 2012-08-16 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/PluginServer.pm: Adapted the plugin server to
	new macros system and add check to timeout == 0

	* util/pandora_migrate_plugins.pl: Add a new migration script 
	MANDATORY when upgrade Pandora FMS 4.0.x to 5.0 to adapt the 
	existing plugins to new macros system



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6866 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-16 12:24:09 +00:00
mdtrooper 745e1a3662 2012-08-10 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/PredictionServer.pm: changed for the SLA service
	calculate alone instead before it was calculate for the module
	service.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6857 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-10 09:05:34 +00:00
jsatoh faba4f649c 2012-07-29 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/DB.pm: Added missing '%'.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6825 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-29 00:24:35 +00:00
mdtrooper c55f83c4ef 2012-07-27 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/DB.pm: added function "get_agentmodule_data" to
	get some data in a time period from a module.
	
	* lib/PandoraFMS/PredictionServer.pm: into the function
	"exec_prediction_module" avoid to fill the service modules with
	"subtype" SLA because this modules fill automallity after process
	the main modules for the service.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6823 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-27 09:05:16 +00:00
koichirok d56491c1de 2012-07-27 KIKUCHI Koichiro <koichiro@rworks.jp>
* lib/PandoraFMS/Core.pm: fixed bug: added missing decode_entities for
	 SNMP alert evaluation. Also cleaned source code style.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6818 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-27 03:10:13 +00:00
mdtrooper c23539ae46 2012-07-25 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/DB.pm: cleaned source code style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6810 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-25 15:14:36 +00:00
mdtrooper 28bca04079 2012-07-24 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm, lib/PandoraFMS/Tools.pm,
	lib/PandoraFMS/PredictionServer.pm: cleaned source code style.
	
	* lib/PandoraFMS/DB.pm: added functions "get_agent_status",
		"get_agent_modules" and "get_agentmodule_status".




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6803 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-24 13:23:27 +00:00