Commit Graph

1036 Commits

Author SHA1 Message Date
mdtrooper 267de90653 2013-03-07 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/WMIServer.pm: fixed when the wmi query have not a
	password.
	
	Fixes: #3563221




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7805 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-07 10:12:42 +00:00
zarzuelo 45e1716c51 2013-03-06 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Fixed alert fired counts when
	reset internal counter and fired times in threshold loop



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7797 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-06 16:50:50 +00:00
zarzuelo f9496129bb 2013-03-06 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Add macros substitution in all the
	text fields of generate event command



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7793 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-06 12:40:22 +00:00
zarzuelo f64cd6d8b7 2013-03-06 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Change the update count of fired alerts 
	condition to increase the count only when a alert is fired first time
	to avoid broke counts



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7792 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-06 11:50:51 +00:00
Ramon Novoa b31630b986 2013-03-05 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/SNMPServer.pm: Added an option to start the snmptrapd
	  daemon manually.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7788 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-05 17:59:46 +00:00
zarzuelo c8ffcb6db5 2013-03-05 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Add the new fields on snmp alerts
	(now there are 10 fields). Bug 3605775



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7784 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-05 15:09:40 +00:00
zarzuelo e811d4584f 2013-03-05 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Add update counts when validate 
	all the alerts of a policy in CLI option. Bug 3606759



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7779 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-05 10:53:17 +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
zarzuelo 6cb75be3b3 2013-03-04 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Update fired alert counts when 
	use validate_all_alerts option



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7770 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-04 12:57:37 +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
slerena d1d6b53250 2013-02-28 Sancho Lerena <slerena@artica.es>
* Config.pm: updated version.

        * NetworkServer.pm,
        PluginServer.pm: Fixed some more un-init values and removed
        annoying message and not useful warning about empty return on SNMP call.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7760 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-28 17:45:20 +00:00
slerena 38cd6399c0 2013-02-28 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/PluginServer.pm: Removed several "Use of
        uninitialized value in string" errors.

        * lib/PandoraFMS/Core.pm: Fixed more ugly notices due
        uninitialized vars.

        * util/recon_scripts/snmpdevices.pl: Fixed due new interface.
 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7755 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-28 15:52:46 +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
slerena 03cbebaef2 2013-02-28 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/PluginServer.pm: Removed several "Use of
        uninitialized value in string" errors.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7747 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-28 14:21:15 +00:00
Ramon Novoa 0abefef794 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 953a5d30fd 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 d036aa2f22 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
Ramon Novoa d40c9a0b01 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 671618c6f0 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 e737eb5945 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 c2da204b72 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 0fedf42ef7 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 517f8dce89 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 c73bc7e18d 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 14e38c0003 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 ad40156f0e 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
Ramon Novoa 260726fa76 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 1a2310962a 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 c242d90a23 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 83c40c5a7d 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 347f6d25b1 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
Ramon Novoa 66573ac342 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 2c6559bcbd 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 c4af2b67ca 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 66c535cec4 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 caad696367 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 03d65be167 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 4e87e8c2a5 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 31ea02f4ad 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 d2eb095526 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 37c1a95c63 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
Ramon Novoa 272ff3ec26 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 505e83f412 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 73b15d1da9 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 aeb3a3c06c 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
Ramon Novoa 22c04135e2 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 eef32cda40 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 e954a71d10 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 b4184db259 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 69a409d973 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