Commit Graph

1073 Commits

Author SHA1 Message Date
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 e5270b9e90 2013-04-26 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Adjusted module counts.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8067 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-26 11:26:28 +00:00
slerena a99f0aba2c 2013-04-24 Sancho Lerena <slerena@artica.es>
* util/pandora_db.pl: patched the code of tagente_datos purge to have n chunks, 
        and in each chunk run a DELETE of only 1000 records at a time (with a LIMIT), 
        adding a 0,0001 second usleep() there, gives time to MySQL to put other 
        operations between, and locks doesn't appear to be a problem anymore. This
        should solve many problems detected in the past.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8040 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-24 01:12:50 +00:00
pandora-release 327ec4d7b2 Auto-updated build strings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8030 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-23 10:12:47 +00:00
pandora-release 548c15ddea Auto-updated build strings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8029 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-22 22:02:23 +00:00
pandora-release 0d04b80005 Auto-updated build strings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-21 22:01:40 +00:00
jsatoh 76f2bfa3f8 2013-04-21 Junichi Satoh <junichi@rworks.jp>
* FreeBSD/pandora_server.conf, NetBSD/pandora_server.conf: Updated
	default settings as the same as Linux ones.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8022 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-21 01:22:03 +00:00
pandora-release 34c15c02f5 Auto-updated build strings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8020 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-20 22:01:24 +00:00
pandora-release fcbd647a76 Auto-updated build strings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8018 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-19 22:01:29 +00:00
pandora-release 52ce01e970 Auto-updated build strings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8015 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-18 22:01:35 +00:00
slerena 702cb84227 2013-04-18 Sancho Lerena <slerena@artica.es>
* util/pandora_db.pl: Added a usleep() inside loops to aliviate
        SQL transactions. This should help to improve performance and
        avoid lockings.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8014 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-18 18:09:28 +00:00
pandora-release c3e5805834 Auto-updated build strings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8012 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-18 16:01:37 +00:00
mdtrooper 6fc9724e8d 2013-04-18 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: cleaned source code style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8011 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-18 15:19:35 +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 cfb7bc2c90 2013-04-17 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Server.pm,
	  bin/pandora_server: Moved server tasks to their own thread. Fixes
	  bug #3609450.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8003 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-17 14:58:50 +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
hkosaka d4f1c91483 2013-04-08 Hirofumi Kosaka <kosaka@rworks.jp>
* util/tentacle_serverd: Tiny improvement. Changed to use
	target process id to check if the process has been stopped.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7942 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-08 08:43:44 +00:00
hkosaka ff01d9ec90 2013-04-08 Hirofumi Kosaka <kosaka@rworks.jp>
* util/pandora_server: Small improvement. Pinned target
	process id to be killed when stopping Pandora Server, to avoid
	to kill other processes that could be invoked in different
	session by chance.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7939 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-08 03:09:05 +00:00
jsatoh 8698407ad9 2013-04-07 Junichi Satoh <junichi@rworks.jp>
* Makefile.PL: Changed library installation path for NetBSD.

	* pandora_server_installer: Fixed wrong permission of tentacle_server
	for BSD.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7937 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-07 06:37:29 +00:00
jsatoh 171f3a0171 2013-04-04 Junichi Satoh <junichi@rworks.jp>
* pandora_server_installer: As the same as Linux, changed cron setting
	of maintenance process for BSD to hourly.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7924 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-04 00:35:54 +00:00
jsatoh c2d8858d79 2013-04-03 Junichi Satoh <junichi@rworks.jp>
* pandora_server_installer, Makefile.PL: Added support for NetBSD.

	* NetBSD/pandora_server, NetBSD/pandora_server.conf,
	NetBSD/tentacle_server: Added launcher scripts and configuration
	file for NetBSD.

	Contributed by Hiroki SHIMIZU. Thanks!



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7920 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-03 04:59:01 +00:00
Ramon Novoa 0f7f5fd1da 2013-04-02 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added a suffix to the auto-monitoring XML
	  so that it does not conflict with a local agent.

	* util/pandora_manage.pl: Fixed a couple of bugs.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7912 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-02 14:54:13 +00:00
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