Commit Graph

1131 Commits

Author SHA1 Message Date
ramonn c4f125e6e7 2013-09-13 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Validate existing events with the same 'ID extra' instead
	  of treating them as a single event.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8765 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-13 13:33:11 +00:00
ramonn db26cb849b 2013-09-12 Ramon Novoa <rnovoa@artica.es>
* NetBSD/pandora_server.conf,
	  FreeBSD/pandora_server.conf,
	  conf/pandora_server.conf.new: Removed an unused token.

	* lib/PandoraFMS/DB.pm,
	  lib/PandoraFMS/Core.pm: Changed the module status macro to return a
	  string instead of the numeric value.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8760 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-12 08:16:35 +00:00
ramonn d9d5678ecc 2013-09-09 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf.new,
	  lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/Core.pm,
	  bin/pandora_server: Added support for event auto-expiry and small
	  fixes.

	* util/pandora_manage.pl: Added support for event custom data.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8753 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-09 16:09:34 +00:00
ramonn 622631b0f2 2013-09-05 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added support for module macros.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8748 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-05 16:46:52 +00:00
mdtrooper 172fc500ec 2013-09-05 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/PluginServer.pm: fixed the lost decode html
	entities for the value in the macros.
	
	* util/plugin/dummy_plugin.pl: added tiny plugin server with only
	purpose to testing.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8744 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-05 09:57:40 +00:00
ramonn d52fdc485f 2013-09-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/Config.pm,
	  conf/pandora_server.conf.new: Added support for custom event texts.

	* lib/PandoraFMS/Server.pm: Fixed a comparison.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8741 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-04 13:28:13 +00:00
ramonn 42eafaf784 2013-09-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added support for treating events with the
	  same id_extra as a single event.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8738 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-04 09:33:33 +00:00
mdtrooper 2e5bdf9149 2013-09-03 Miguel de Dios <miguel.dedios@artica.es>
* util/pandora_revent.pl: fixed the script, now runs fine the tags
	and set correclty the comment and owner user, and other fixes.
	
	Fixes: #2386




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8734 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-03 12:22:57 +00:00
ramonn ce877b6e30 2013-09-03 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added support for tag phone information.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8730 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-03 08:48:26 +00:00
mdtrooper 8ed2e0e43a 2013-09-02 Miguel de Dios <miguel.dedios@artica.es>
* util/pandora_xml_stress.pl: fixed perl warning and set the default
	temp directory correctly.
	
	* util/pandora_xml_stress.conf: added lost parameters
	"directory_confs" and "directory_temp".




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8725 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-02 07:20:10 +00:00
mdtrooper a86e93fa78 2013-08-29 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: into the function "pandora_module_unknown"
	now checks if the module have disable unknown events.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8714 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-29 13:01:12 +00:00
mdtrooper b1c1055982 2013-08-29 Miguel de Dios <miguel.dedios@artica.es>
* util/pandora_manage.pl: added support to disable/enable unknown
	events for modules.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8712 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-29 11:39:05 +00:00
mdtrooper 7e1d8c44d3 2013-08-27 Miguel de Dios <miguel.dedios@artica.es>
* conf/pandora_server.conf.new: set the policy queues as default
	running.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8700 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-27 09:31:15 +00:00
ramonn 58c66071e8 2013-08-13 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Use the agent's address if ip_target
	  is not set.

	* lib/PandoraFMS/Core.pm: Fixed a warning.

	* conf/pandora_server.conf.new,
	  lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/SNMPServer.pm: Added SNMP storm protection.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8658 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-13 17:04:56 +00:00
mdtrooper b3e3d18741 2013-08-05 Miguel de Dios <miguel.dedios@artica.es>
* ChangeLog: lost line about "lib/PandoraFMS/PredictionServer.pm"
	uploaded changes for SLA value of service.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8628 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-05 07:28:00 +00:00
mdtrooper b9641a0ad1 2013-08-05 Miguel de Dios <miguel.dedios@artica.es>
* util/pandora_snmp.sh: added first and weird version of tool to
	generate a lot of traps snmp for Pandora. Needs to improve.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8627 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-05 07:25:33 +00:00
ramonn e9d539874b 2013-08-01 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Changed the name of the self-monitoring XML
	  files. Fixes bug #2365.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8613 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-01 11:03:50 +00:00
ramonn 094defb906 2013-08-01 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm,
	  lib/PandoraFMS/SNMPServer.pm,
	  lib/PandoraFMS/Server.pm,
	  lib/PandoraFMS/PluginServer.pm,
	  lib/PandoraFMS/ProducerConsumerServer.pm,
	  lib/PandoraFMS/PredictionServer.pm,
	  lib/PandoraFMS/ReconServer.pm,
	  lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/WMIServer.pm: Added clean-up code to avoid resource
	  leaks when there is a crash and the server has to auto-restart.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8611 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-01 09:54:21 +00:00
ramonn 54a5a02a39 2013-07-25 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Fixed some parentheses that prevented
	  remote_snmp_string modules from working.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8574 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-25 11:07:59 +00:00
ramonn b313ba8811 2013-07-24 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Search for sub-strings when matching an OID
	  within an SNMP alert. Regular expressions should not be necessary and
	  this avoids having to escape dots inside the OID. Added a couple of new
	  SNMP macros.

	* lib/PandoraFMS/Tools.pm: Added a function to check for valid regular expressions.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8568 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-24 14:09:19 +00:00
juanmanuelr 72d0b1a59e 2013-07-23 Juan Manuel Ramón Vigo <juanmanuel.ramon@artica.es>
* util/pandora_revent_create.pl: Pandora revent only for create events.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8560 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-23 11:30:25 +00:00
ramonn c1db54719f 2013-07-17 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Do not execute more than one alert per trap.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8541 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-17 17:40:08 +00:00
zarzuelo 7972ba3543 2013-07-15 Sergio Martin <sergio.martin@artica.es>
* util/plugin/snmp_remote.pl: Add SNMP remote plugin to the
	default plugins on Pandora FMS server



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-15 12:07:10 +00:00
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