Commit Graph

1072 Commits

Author SHA1 Message Date
ramonn 3f51f901b0 2013-02-28 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Undid the previous commit since forking after
	  having launched all server threads can lead to trouble.

	* lib/PandoraFMS/Core.pm: Removed some debugging code that polluted the
	  logs.
	
	* lib/PandoraFMS/NetworkServer.pm: Removed a DISTINCT from the query since
	  module ids are unique.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7741 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-28 10:30:32 +00:00
mdtrooper 2ab21d0dfc 2013-02-27 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: erased lost develop traces.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7731 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-27 15:35:18 +00:00
slerena a1e838ef3f 2013-02-25 Sancho Lerena <slerena@artica.es>
* PandoraFMS/Config.pm: Fixed parsing of mta_from, avoiding problems
        on blank spaces.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7715 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-25 15:29:40 +00:00
ramonn 24361cdfb2 2013-02-25 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Delay the backgrounding of the main process to
	  make log messages available when starting from the init script.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7714 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-25 14:36:01 +00:00
mdtrooper 9076d45d2b 2013-02-25 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: erased the spam traces (useful for the
	developers but not for to users) in the code for the Planned
	Downtimes.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7713 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-25 14:30:16 +00:00
slerena 064fd099f2 2013-02-22 Sancho Lerena <slerena@artica.es>
*  lib/PandoraFMS/Tools.pm: My MacOS boxes was being ignored
        due lack of "darwin" detection here :(




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7707 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-22 17:56:43 +00:00
slerena fcd813fab6 2013-02-20 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Fixed problem with SNMP alerts: they 
        defined custom fields on it's own version of the alert template,
        and actions was overwriting it's information, so in the case
        of snmp alerts, template information has more priority than
        action.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7692 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-20 20:31:50 +00:00
mdtrooper d0a0df86e8 2013-02-18 Miguel de Dios <miguel.dedios@artica.es>
* util/pandora_xml_stress.pl: fixed the output the string module
	data in the XML.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7672 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-18 16:24:39 +00:00
zarzuelo c2050ebe53 2013-02-18 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm
	lib/PandoraFMS/DataServer.pm: Fixed the exception of "status"
	field of the XML deleted from the supported tags in a previous
	fix for bug 3604850



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7669 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-18 11:44:10 +00:00
zarzuelo a7da94db8d 2013-02-18 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/PluginServer.pm: Clean the blank spaces
	from the start and end of the return of the plugin to make
	easier the configuration of numeric modules and not confuse
	with snapshot mode



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7666 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-18 10:57:14 +00:00
zarzuelo 532ee97d4a 2013-02-15 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm
	lib/PandoraFMS/ReconServer.pm
	util/pandora_manage.pl: Encapsulate the code of create
	a module from a network component. Unify calls of CLI
	and Recon Server to dont break module counts



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7660 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-15 10:27:13 +00:00
zarzuelo 7802d9bb1d 2013-02-14 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm
	bin/pandora_server
	util/pandora_db.pl: Adapt status counts querys to use only
	not disabled modules



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7652 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-14 13:11:52 +00:00
ramonn 16bd4d7905 2013-02-13 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NmapParser.pm: Merged with version 1.3 of Nmap::Parser.

	* util/pandora_db.pl: Added the deletion of old netflow and log data.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7646 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-13 15:55:41 +00:00
zarzuelo 540713845f 2013-02-13 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/ReconServer.pm: Fix a crash of the Recon Server
	for bug 3603710



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7645 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-13 13:00:00 +00:00
zarzuelo 53bff9e703 2013-02-13 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm
	lib/PandoraFMS/DataServer.pm: Fixed a problem with the status
	field of the modules (forced status) in the dataserver creation
	of the module because using create_module_from_hash. 
	Order some code of the same part of the Dataserver



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7644 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-13 12:36:08 +00:00
mdtrooper 181a4f24cd 2013-02-12 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: fixed the planned downtime.
	
	Fixes: #3602365




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7637 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-12 18:24:08 +00:00
slerena 28b1d7bd8b 2013-02-12 Sancho Lerena <slerena@artica.es>
* conf/pandora_server.conf: review of all file and removed
        some bad parameters (netflow daemon and other values).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7635 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-12 16:38:01 +00:00
ramonn ee9ed7031b 2013-02-12 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Fixed the verbosity of the "Processing
	  module" message.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7633 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-12 16:27:34 +00:00
slerena eac57ef31d 2013-02-12 Sancho Lerena <slerena@artica.es>
* conf/pandora_server.conf: Review of default configuration
        values and some new description / comments.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7632 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-12 16:07:27 +00:00
zarzuelo 2e785b165b 2013-02-07 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm
	lib/PandoraFMS/DataServer.pm: Clean code on Dataserver,
	improve error message when ignore GIS data, and change the
	way of update parent info (only in learning mode now)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7610 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-07 17:01:10 +00:00
slerena e1b1339dc4 2013-02-07 Sancho Lerena <slerena@artica.es>
* pandora_server_installer: Fixed missing JSON dependecy
        error output (suse, redhat, debian, bsd). Updated version
        strings and banner.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7608 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-07 16:53:01 +00:00
zarzuelo 434d97c8f4 2013-02-06 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/NetworkServer.pm
	lib/PandoraFMS/Tools.pm: Added check to the ping latency
	modules to difference the fail from the 0 latency. Now
	when the IP doenst exist or the ping fail, the module
	doesnt report any data. FIX: 3543467



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7600 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-06 18:01:53 +00:00
slerena 826a1ed377 2013-02-05 Sancho Lerena <slerena@artica.es>
* util/pandora_manage.pl: Added feature for adding
        custom traps. Improved help format syntax.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7590 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-05 17:09:18 +00:00
slerena 963ccd3971 2013-02-04 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Fix a broken query of my last 
	commit



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7581 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-05 09:02:39 +00:00
zarzuelo 305b937cba 2013-02-05 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Set ack utimestamp when create
	a event in validated status (normal status)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7580 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-05 08:39:25 +00:00
zarzuelo 524905407d 2013-02-04 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Fix a broken query of my last 
	commit



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7576 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-04 16:16:18 +00:00
zarzuelo 4034b6589f 2013-02-04 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm:  Set the last_known_status when
	process module to fix an error of "to normal" status
	events generation



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7575 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-04 15:34:02 +00:00
ramonn e61e6afbf0 2013-01-31 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server,
	  conf/pandora_server.conf,
	  lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/Core.pm,
	  util/pandora_manage.pl: Added support for event storm protection and
	  disabling auto event validation.

	* lib/PandoraFMS/Server.pm: Improved the server status update function
	  to use run less queries.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7556 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-31 18:02:41 +00:00
mdtrooper bcdc910f4b 2013-01-28 Miguel de Dios <miguel.dedios@artica.es>
* util/pandora_xml_stress.pl: fixed the typo messages error that
	put \ERROR instead \tERROR and the perl show warnings.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7534 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-28 12:16:16 +00:00
zarzuelo 529d26d729 2013-01-23 Sergio Martin <sergio.martin@artica.es>
* util/plugin/EU_10yrspread.pl: Updated the european countries
	10 years spread plugin to new bloomberg website



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7519 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-23 10:09:55 +00:00
juanmanuelr 218c87584b 2013-01-22 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* util/pandora_xml_stress.conf
	 util/pandora_xml_stress.pl: Added group parameter in pandora stress
	 generator.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7516 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-22 08:59:53 +00:00
ramonn 074f5cf271 2013-01-17 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/DataServer.pm: Added support for log modules.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7499 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-17 14:38:55 +00:00
zarzuelo cb76344d9a 2013-01-16 Sergio Martin <sergio.martin@artica.es>
* util/pandora_db.pl: Added the history events to the 
	maintenance script of database and delete the old events in
	1000 events blocks

	* util/pandora_manage.pl: Added a CLI function to 
	create new netflow filters




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7488 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-16 15:56:31 +00:00
vgilc 40ebb920f0 2013-01-16 Vanessa Gil <vanessa.gil@artica.es>
* util/pandora_revent.pl: Added 'agent_name' and
	'module_name' in option 'create_event'.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7486 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-16 15:52:38 +00:00
slerena 04b9293204 2013-01-11 Sancho Lerena <alerena@artica.es>
* util/pandora_revent.pl: (Moved tool_api.pl), improved
        help.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7478 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-15 17:59:14 +00:00
slerena 42226ed047 2013-01-11 Sancho Lerena <alerena@artica.es>
* util/pandora_csvbridge.pl: Fixed code for CSV bridge too




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7475 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-15 15:45:28 +00:00
zarzuelo b090a914e8 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 a69faed4cf 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 d901e47ee3 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 2280aa6f06 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 54b238ab4f 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 328c3167ef 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 b23c5ea50a 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 3db0805df0 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 a99a222a74 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 fde06b925a 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 2bf5b7126b 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
mdtrooper b981fc6add 2013-01-08 Miguel de Dios <miguel.dedios@artica.es>
* util/pandora_db.pl: fixed the SQL query for the checking modules
	status count.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7378 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-08 17:56:32 +00:00
juanmanuelr 580ca9bff6 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
hkosaka 2a319d8149 2012-12-28 Hirofumi Kosaka <kosaka@rworks.jp>
* util/pandora_manage.pl: Added operation logging by
	logger() with verbose level 10.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7340 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-28 08:26:49 +00:00
ramonn 17e4bc9012 2012-12-24 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Re-calculate module status count upon server
          startup.

        * util/pandora_db.pl: Use new not-init status for module status count
          calculation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7326 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-24 12:15:51 +00:00
ramonn ff0c677b36 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
ramonn e921f70cf7 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 e17e97e033 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
slerena 9b496bbab2 2012-12-17 Sancho Lerena <slerena@artica.es>
* util/pandora_db.pl: Added feature to delete
        inventory data older than X days (taken from
        deletion for regular data).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7293 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-17 17:11:00 +00:00
zarzuelo 4a4bfe9bf5 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 e81cd22b50 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 c7dfb09192 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
jsatoh 700ebcbfe5 2012-12-09 Junichi Satoh <junichi@rworks.jp>
* FreeBSD/tentacle_server: Changed how to get pid of tentacle_server
	strictly. Updated year.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7241 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-09 14:36:49 +00:00
hkosaka 65a347e005 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
ramonn 37ea4a197a 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
ramonn 21dd3eb0e3 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 1f3a911045 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 ed19ee8843 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
ramonn 42ad30cf11 2012-11-15 Ramon Novoa <rnovoa@artica.es>
* util/pandora_db.pl: Try to update module status count for all agents.
	  Further performance tests need to be done.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7149 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-15 15:13:13 +00:00
ramonn 5731186287 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 b31124e3be 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 0be74bdec5 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 6fdde3a7b7 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
ramonn f633265780 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
ramonn 8a6296caa2 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
ramonn 964c124ade 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
ramonn efaa5b4c69 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
darode 6d086d11f4 2012-10-23 Dario Rodriguez <dario.rodriguez@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed an error in snmpdevices.pl
        which has a double safe_input.

        MERGED FROM 4.0.2



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7081 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-23 07:19:40 +00:00
jsatoh 9e8c44dfad 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
slerena 22d8a2d99b 2012-10-09 Sancho Lerena <slerena@artica.es>
* util/plugin/mysql_plugin.sh: Fixed problem on composed
        name variables.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7060 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-09 17:57:22 +00:00
vgilc ff3515d2a2 2012-10-08 Vanessa Gil <vanessa.gil@artica.es>
* util/tool_api.pl: Added: validate events using API.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7048 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-08 08:33:33 +00:00
jsatoh c16d64ba64 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
vgilc 7ccf027acd 2012-10-03 Vanessa Gil <vanessa.gil@artica.es>
* util/tool_api.pl: Changed format for creating events using API.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7035 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-03 13:09:42 +00:00
slerena 4dfc0b52ce 2012-10-01 Sancho Lerena <slerena@artica.es>
* util/pandora_manage.pl: Fixed problem in CLI enabling the eacl from
        command line. Function name was old and not working.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7013 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-01 10:31:54 +00:00
ramonn f4cced2ee0 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
ramonn 780a88ea46 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
darode 1c6ce0ca4f 2012-09-28 Dario Rodriguez <dario.rodriguez@artica.es>
* util/pandora_xml_stress.conf,
	util/pandora_xml_stress.pl,
	util/pandora_xml_stress_module_source.txt: Added new
	features to pandora_xml_stress program.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7007 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-28 11:52:50 +00:00
hkosaka badf6edd94 2012-09-26 Hirofumi Kosaka <kosaka@rworks.jp>
* util/pandora_db.pl: bug fix: 'audit_purge' was used to purge
	tagente_datos_string (instead of 'string_purge'). Also fixed
	the bug that the oldest data on the corresponding table would
	be never purged.

	Merged from 4.0 branch.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7001 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-26 11:35:33 +00:00
vgilc 488297d544 2012-09-25 Vanessa Gil <vanessa.gil@artica.es>
* util/tool_api.pl: Added file to create events using API.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6998 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-25 14:18:22 +00:00
ramonn b28bd1f49d 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 3de323a11a 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 e85867f269 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
darode 7963520b46 2012-09-11 Dario Rodriguez <dario.rodriguez@artica.es>
* util/plugin/iface_bandwith.pl: First version of 
	iface bandwith server plugin.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6959 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-11 17:45:47 +00:00
mdtrooper fe7bd3cad4 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 358e9049e5 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 3ffb3d5a31 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
zarzuelo 2695f5f54c 2012-08-29 Sergio Martin <sergio.martin@artica.es>
* DEBIAN/control
	Makefile.PL
	pandora_server.spec
	pandora_server.redhat.spec: Added the perl JSON dependence
	to specs and the check to Makefile



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6921 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-29 12:07:55 +00:00
mdtrooper dfa6db8688 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 02854636b3 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 d5df22ba1c 2012-08-20 Sergio Martin <sergio.martin@artica.es>
* ChangeLog: Fixed bad description in last commit



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6886 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 10:39:15 +00:00
zarzuelo 3dc3c25f1b 2012-08-20 Sergio Martin <sergio.martin@artica.es>
* util/pandora_migrate_plugins.pl: fixed order of the
	macros fields in the form



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6885 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 08:48:42 +00:00
zarzuelo 67913c1fb9 2012-08-17 Sergio Martin <sergio.martin@artica.es>
* util/plugin/EU_10yrspread.pl
	util/pandora_migrate_plugins.pl: Add plugin to 
	get the 10 year spread of several european countries
	and fix some bugs of the plugin migrate tool



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6876 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-17 12:12:52 +00:00
vgilc 6122a8acd4 2012-08-16 Vanessa Gil <vanessa.gil@artica.es>
* util/recon_scripts/snmpdevices.pl: Added several networks and ips
	to recon scripts.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6870 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-16 15:49:18 +00:00
zarzuelo 6264f59fe4 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