Commit Graph

1108 Commits

Author SHA1 Message Date
ramonn 5cd2e75710 2013-07-10 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added support to filter 10 binding vars.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8510 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-10 16:43:25 +00:00
ramonn 5dd055457b 2013-07-10 Ramon Novoa <rnovoa@artica.es>
* util/pandora_db.pl: Ignore reports if the metaconsole is enabled, since
	  agents are never local.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8504 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-10 09:27:21 +00:00
mdtrooper ba37e0195b 2013-07-09 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/PredictionServer.pm, util/pandora_xml_stress.pl:
	improved the source code style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8499 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-09 09:28:10 +00:00
ramonn be5f351268 2013-07-05 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added macros _snmp_oid_ and _snmp_value_ to
	  SNMP alerts. Changed the behaviour of _snmp_fx_ to act as filters
	  and not as user defined macros.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8485 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-05 14:20:34 +00:00
zarzuelo 07925f3c50 2013-07-05 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/PluginServer.pm: Fixed subst_alert_macros assignation
	to variable.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8482 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-05 10:15:41 +00:00
ramonn 40cd8e5c44 2013-07-05 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Exported subst_alert_macros. Added support
	  for an arbitrarily large number of _snmp_fx_ macros.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8481 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-05 09:56:08 +00:00
ramonn 15396dd458 2013-07-05 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/PluginServer.pm: Added agent and module macros to
	  plugins.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8480 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-05 09:45:47 +00:00
ramonn 78efe6244f 2013-07-03 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Assign default values to the _snmp_fx_ macros
	  from variable bindings.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8469 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-03 17:26:27 +00:00
ramonn 5617c3c512 2013-07-01 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Resolve numeric ids to strings before writing
	  events to an external log file.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-01 17:03:36 +00:00
ramonn 23d4b3fd8a 2013-07-01 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/Core.pm,
	  conf/pandora_server.conf.new: Added support for writing events to an
	  external log file.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8442 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-01 14:05:44 +00:00
slerena d22cbc4b4d 2013-06-26 Sancho Lerena <slerena@artica.es>
* util/plugin/pandora_loadgen.pl,
        util/plugin/ssh_pandoraplugin.sh: Fixed small problems with
        plugins provided as sample.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8420 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-26 16:21:36 +00:00
ramonn bd68fc21b3 2013-06-26 Ramon Novoa <rnovoa@artica.es>
* pandora_server.redhat.spec,
	  pandora_server.spec: Fixed directory permissions.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8414 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-26 09:22:10 +00:00
ramonn 307788383b 2013-06-24 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/ReconServer.pm: Merged from 4.0 branch. Fixed a call
	  to get_agent_from_addr that prevented parents from being properly
	  detected.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8378 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-24 11:07:21 +00:00
hkosaka 59ddf0fb07 2013-05-22 Hirofumi Kosaka <kosaka@rworks.jp>
* pandoradb.sql: (workaround to avoid mysql's warning
	'Specified key was too long; max key length is 767 bytes'
	(warning code=1071).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8350 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-19 09:53:28 +00:00
mdtrooper 5650007350 2013-06-19 Miguel de Dios <miguel.dedios@artica.es>
* util/pandora_xml_stress.pl: fixed the send across tentacle, now
	when it can not send the file almost the log have a error entry.
	And added local send method.
	
	* util/pandora_xml_stress.conf: added confs for local send method.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8349 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-19 08:53:56 +00:00
zarzuelo c8c5ed5199 2013-06-14 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Fixed comments addition in the
	events with the internal action Create Pandora FMS event



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8328 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-14 10:47:26 +00:00
slerena 233963865f 2013-06-13 SAncho Lerena <alerena@artica.es>
* pandora_server.redhat.spec: Fixed some path permissions.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8315 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-13 11:58:30 +00:00
ramonn 92555eed2d 2013-06-12 Ramon Novoa <rnovoa@artica.es>
* util/pandora_db.pl: Message logging abstraction layer and several
	  improvements.

	* lib/PandoraFMS/DB.pm: Removed debugging code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8299 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-12 13:00:48 +00:00
mdtrooper d267b07bcd 2013-06-12 Miguel de Dios <miguel.dedios@artica.es>
* util/pandora_xml_stress.pl: cleaned source code style.
	
	* pandora_server.redhat.spec: added the directories of collections
	and remote configuration into the list of chmod perms.
	
	Fixes: #2290
	
	MERGED FROM THE BRANCH PANDORA_4.0




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8298 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-12 12:16:44 +00:00
ramonn f6fedff71b 2013-06-07 Ramon Novoa <rnovoa@artica.es>
* pandora_server_installer: Fixed a bug that created
	  pandora_server.conf.new even if pandora_server.conf did not exists.
	  Remove PERL libs when uninstalling.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8274 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-07 11:43:34 +00:00
ramonn 044748c8b1 2013-06-07 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Return undef from get_agent_from_name if the
	  agent was not found.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8272 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-07 10:12:16 +00:00
ramonn ad99ea5ee9 2013-06-06 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/ReconServer.pm: Merged from 4.0 branch. Create agents
	  before trying to assign addresses.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8266 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-06 18:33:38 +00:00
ramonn 39ab521c71 2013-05-28 Ramon Novoa <rnovoa@artica.es>
* util/pandora_db.pl: Use $BIG_OPERATION_STEP for event deletion.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8220 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-28 14:32:21 +00:00
ramonn ce2fab6c99 2013-05-27 Ramon Novoa <rnovoa@artica.es>
* util/pandora_db.pl: Several fixes. Save the last compact date
	  to avoid compacting the same interval twice.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8215 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-27 17:58:00 +00:00
slerena e2c182283b 2013-05-23 Sancho Lerena <slerena@artica.es>
* util/pandora_logrotate: Fixed several problems due rotation.
        Now there is no need to restart any process, much safer.
        Added correct paths for pandora console log on centos and debian.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8193 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-23 00:54:35 +00:00
ramonn 3b779d72c9 2013-05-22 Ramon Novoa <rnovoa@artica.es>
* pandora_server.spec,
	  pandora_server.redhat.spec,
	  DEBIAN/postinst,
	  DEBIAN/conffiles,
	  DEBIAN/make_deb_package.sh,
	  conf/pandora_server.conf.new,
	  pandora_server_installer: Merged Sancho's changes from 4.0 branch.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8191 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-22 16:58:14 +00:00
ramonn cc9212220c 2013-05-20 Ramon Novoa <rnovoa@artica.es>
* util/pandora_xml_stress.pl: Added support for strictly incremental
	  modules.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8172 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-20 19:01:35 +00:00
ramonn 51a3692415 2013-05-20 Ramon Novoa <rnovoa@artica.es>
* util/pandora_xml_stress.pl,
	  util/pandora_xml_stress.conf: Added support for data attenuation on
	  certain days.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8163 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-20 11:20:39 +00:00
ramonn 6d0394f7fe 2013-05-16 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Added information about the loading of the
	  enterprise module to the log.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8138 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-16 08:39:44 +00:00
ramonn 5a6db8188b 2013-05-14 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Added the Pandora FMS's console MIB
	  to snmp* calls.

	* pandora_server_installer,
	  pandora_server.spec,
	  lib/PandoraFMS/Tools.pm,
	  lib/PandoraFMS/Config.pm,
	  Makefile.PL,
	  pandora_server.redhat.spec,
	  DEBIAN/control: Removed PERL's SNMP lib from the deps.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8131 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-14 13:56:43 +00:00
ramonn c5de827411 2013-05-13 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: Merged from 4.0 branch. Directly call
	  snmptranslate, since SNMP::translateObj does not seem to load
	  enterprise MIBs.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8123 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-13 10:29:03 +00:00
slerena 04dfc6736b 2013-05-13 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Fixes crash on inverse resolution for
        GIS information on openstreetmaps. This was due function was moved from
        Dataserver to Core.pm and include for LWP::Simple not :(




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8121 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-13 02:40:28 +00:00
ramonn e07b3e4aef 2013-05-10 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: Check that inet_aton does not return undef.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8118 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-10 11:19:02 +00:00
ramonn 1a41d7c1c4 2013-05-07 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: Added a function to resolve hostnames.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8111 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-07 17:02:02 +00:00
ramonn a69e949a25 2013-05-07 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm,
	  util/pandora_db.pl: Several improvements. Added support for detecting
	  other running instances of the script.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8110 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-07 15:38:11 +00:00
ramonn 16ca79f181 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
ramonn d160ac4230 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 62a10bfaf8 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 b750ffe177 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 6848d031cb 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 a1c708597e 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 c7df413fba 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 d7b54dc29f 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 78c84a0c4b 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 ca1a7770e4 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 267d26ac02 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 1a41b942b8 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 5fef09e515 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
ramonn 76d756c40e 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
ramonn 658f0c8620 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