Commit Graph

1051 Commits

Author SHA1 Message Date
jsatoh 7d71091631 2013-04-02 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Core.pm: Added group ACL to 'Special days list'.
	It is applied when group id is 0 (All) or the same as alert
	template's group id.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7909 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-02 06:38:43 +00:00
slerena ea1235ab0a 2013-04-01 Sancho Lerena <slerena@artica.es>
* DEBIAN/postinst,
	pandora_server.redhat.spec,
	pandora_server.spec,
	pandora_server_installer: Moved maintance process to hourly
	instead daily. Improves performance and avoid locks on heavy 
	loaded systems.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7902 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-01 01:28:14 +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
hkosaka c17f9fd97d 2013-03-25 Hirofumi Kosaka <kosaka@rworks.jp>
* pandora_server_installer: Fixed false recognition of RHEL6.4.
	(it had been recoginzed as Ubuntu incorrecty because of its
	"/etc/lsb-release").


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7886 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-25 05:55:18 +00:00
Ramon Novoa ec65703d8b 2013-03-20 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf,
	  lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/Config.pm,
	  bin/pandora_server: Added the parameter braa_retries, which lets braa
	  retry SNMP modules a number of times before handing it over to the
	  network server.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7873 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-20 15:50:41 +00:00
Ramon Novoa 33dfb15aff 2013-03-19 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Moved a log message to verbosity 10.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-19 18:23:07 +00:00
Ramon Novoa 442bf2013c 2013-03-19 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Style fix.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7867 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-19 18:12:53 +00:00
Ramon Novoa 3c9fe04dc2 2013-03-19 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm,
	  bin/pandora_server,
	  util/pandora_db.pl: Added support for on-demand module status
	  calculation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7865 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-19 17:16:59 +00:00
slerena e06dd5823c 2013-03-15 Sancho Lerena <slerena@artica.es>
* util/pandora_database_check.pl: added to trunk repo. Tool to 
        measure transaction speed in pandora. Merged from 4.x branch.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7862 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-15 16:57:29 +00:00
Ramon Novoa 3063027721 2013-03-13 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: Added support for ranges to server cron
	  modules.

	* lib/PandoraFMS/ProducerConsumerServer.pm: Update queue stats after
	  queuing new new modules.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7850 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-13 18:46:37 +00:00
slerena 136494e89d 2013-03-11 Sancho Lerena <slerena@artica.es>
* util/pandora_xml_stress.conf: Updated conf file to use the new
        threshold values in the generation of xml. Better defaults for
        proc types.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7836 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-11 18:46:46 +00:00
vgilc 00d2fde04c 2013-03-11 Vanessa Gil <vanessa.gil@artica.es>
* util/pandora_revent.pl: Addapted to API's function
	'create_event'.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7833 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-11 17:53:13 +00:00
slerena 4def817b77 2013-03-11 Sancho Lerena <slerena@artica.es>
* util/pandora_xml_stress.conf: Updated conf file to use the new
        threshold values in the generation of xml. 




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7830 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-11 17:23:19 +00:00
Ramon Novoa 22aa8d97e1 2013-03-11 Ramon Novoa <rnovoa@artica.es>
* util/pandora_xml_stress.pl: Added support for critical and warning
	  thresholds.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7829 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-11 16:24:25 +00:00
mdtrooper c1ca4d5aaf 2013-03-07 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: added in the start or end of downtimes
	the event with the id_user.
	
	Fixes: #3607163




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7811 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-07 17:30:26 +00:00
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