Commit Graph

1050 Commits

Author SHA1 Message Date
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
zarzuelo 16b3467e5d 2013-01-11 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Config.pm
	lib/PandoraFMS/Core.pm: clean up the compound alerts from
	server code



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7438 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-11 13:49:50 +00:00
juanmanuelr 8c049f5590 2013-01-11 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* lib/PandoraFMS/Core.pm: Fixed _id_alert_ macro in events.
	
	Merged from branches.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7434 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-11 12:20:16 +00:00
darode 15e733852d 2013-01-10 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/PluginServer.pm: Added log traces for plugin error
        to notice about low memory.
        * util/plugin/mysql_plugin.sh: Added correct exit code for plugin.

        MERGED FROM 4.0.3



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7420 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-10 14:05:39 +00:00
hkosaka b2698a1655 2013-01-10 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/SNMPServer.pm: Rewrite my commit at rev7388 in more
	general way. logger() call was deleted here, because the corresponding
	error message is recorded by pandora_crash(). Merged from 4.0.x.

	* lib/PandoraFMS/Core.pm: Fixed that invalid regex in
	critical_str or warning_str could make server down at worst.
	Not used logger() here, because the corresponding error
        message is recorded by pandora_crash(). Merged from 4.0.x.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-10 09:23:39 +00:00
darode 573fee2b90 2013-01-09 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Added log traces to inform
	about the problem of undefined return of snmpget command.

	MERGED FROM 4.0.3



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7405 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 16:28:05 +00:00
darode d5443e575e 2013-01-09 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Controlled an error if output of
	SNMP command is empty and fixed several error comparing port of SNMP
	as numbers instead as strings.

	MERGED FROM 4.0.3



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 14:35:21 +00:00
slerena f3805014a0 2013-01-09 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Fixed on port 0 (Snmp polling).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7399 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 13:36:46 +00:00
darode bdd55253e3 2013-01-09 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/DataServer.pm: Fixed a bug which creates modules
        with names which have \n\r and later create problems when editing
        the module information.

	MARGED FROM 4.0.3



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7394 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 12:59:11 +00:00
slerena 6e25b117e7 2013-01-09 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Fixed bug #3555223 about
        different UDP ports for SNMP polling. Merged fix from 4.0.x 
        branch. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 11:43:56 +00:00
hkosaka b872a94ad9 2013-01-09 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/SNMPServer.pm: Made sure SNMP filter is valid
	before performing string matching. It could make Pandora Server
	down at worst.  Merged from 4.0 branch.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7389 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 11:16:52 +00:00
juanmanuelr 1effa7b63f 2013-01-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* lib/PandoraFMS/PredictionServer.pm: Fixed prediction modules.
	
	Bug id: #3599200



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7386 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-09 10:37:20 +00:00
mdtrooper d4f7e9c254 2013-01-08 Miguel de Dios <miguel.dedios@artica.es>
* util/pandora_db.pl: fixed the SQL query for the checking modules
	status count.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7378 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-08 17:56:32 +00:00
juanmanuelr 95bb5f9662 2013-01-02 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* lib/PandoraFMS/Core.pm: Added macro _email_tag_ to replace with
	emails associated to module tags.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7346 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-02 10:15:11 +00:00
hkosaka a643fa98c3 2012-12-28 Hirofumi Kosaka <kosaka@rworks.jp>
* util/pandora_manage.pl: Added operation logging by
	logger() with verbose level 10.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7340 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-28 08:26:49 +00:00
Ramon Novoa d4196780e3 2012-12-24 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Re-calculate module status count upon server
          startup.

        * util/pandora_db.pl: Use new not-init status for module status count
          calculation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7326 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-24 12:15:51 +00:00
Ramon Novoa 978bfd2033 2012-12-21 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/DataServer.pm,
	  util/pandora_db.pl: Implemented a real not-init status. Small fixes.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7324 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-21 14:42:15 +00:00
Ramon Novoa f6da945f45 2012-12-19 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Return async modules to normal after
	  twice the module interval has elapsed.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7313 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-19 17:51:15 +00:00
zarzuelo e8628e0e2f 2012-12-19 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Added new function to update 
	replicated events (enterprise feature) and fix some little
	bugs



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7311 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-19 17:02:25 +00:00
slerena ea703fe557 2012-12-17 Sancho Lerena <slerena@artica.es>
* util/pandora_db.pl: Added feature to delete
        inventory data older than X days (taken from
        deletion for regular data).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7293 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-17 17:11:00 +00:00
zarzuelo f7681e76c1 2012-12-17 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DataServer.pm: Unset a missed data of the
	parameters hash when create module on dataserver



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7286 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-17 11:05:50 +00:00
zarzuelo 53162b4e9a 2012-12-13 Sergio Martin <sergio.martin@artica.es>
* conf/pandora_server.conf
	lib/PandoraFMS/Config.pm
	lib/PandoraFMS/DB.pm
	lib/PandoraFMS/Core.pm
	bin/pandora_server: Added new thread to the
	event replication process (enterprise feature) 
	and control this one and the policy queue patrol 
	process with new two configuration parameters



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7278 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-13 17:07:23 +00:00
slerena 6aebffcaab 2012-12-10 Sancho Lerena <slerena@artica.es>
* Core.pm: Applied patch 3576115 from Axel: implemented maintance
        priority from events coming from recovery alerts.

        * Tool.pm: Decode output in all logfile output.

        * Config.pm: Updated version.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7249 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-10 19:09:58 +00:00
jsatoh 8286587bcb 2012-12-09 Junichi Satoh <junichi@rworks.jp>
* FreeBSD/tentacle_server: Changed how to get pid of tentacle_server
	strictly. Updated year.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7241 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-09 14:36:49 +00:00
hkosaka 71a67e8291 2012-11-30 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/SNMPServer.pm: Added missing safe_output()
	for trap filters. This fixed a bug that a backslash could not
	escape its following character.

	Merged from 4.0 branch.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7212 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-30 06:18:29 +00:00
Ramon Novoa cf75f85d7e 2012-11-28 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/Tools.pm: Temporal fix to OID translation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7200 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-28 19:41:24 +00:00
Ramon Novoa e45e45cca4 2012-11-28 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added fired alert count.

	* lib/PandoraFMS/DataServer.pm: Do not process more than one XML from
	  the same agent at the same time.

	* util/pandora_db.pl: Recalculate total module count.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7196 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-28 14:33:26 +00:00
jsatoh cf9b9dcb15 2012-11-26 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Core.pm: Fixed unintended executions and wrong event
	messages in planned downtime.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7182 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-26 07:27:25 +00:00
zarzuelo 47f3dd55fa 2012-11-15 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm
	lib/PandoraFMS/DataServer.pm: Added support for new agent data in
	the XML as custom_id, url_address and custom fields



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7150 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-15 15:20:48 +00:00
Ramon Novoa a996a2e440 2012-11-15 Ramon Novoa <rnovoa@artica.es>
* util/pandora_db.pl: Try to update module status count for all agents.
	  Further performance tests need to be done.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7149 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-15 15:13:13 +00:00
Ramon Novoa fd975c367f 2012-11-14 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm,
	  util/pandora_db.pl: Added support for module status calculation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7147 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-14 18:45:40 +00:00
zarzuelo 90cfd8e652 2012-11-13 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DataServer.pm: Adopt server to the new fields of
	the agents XML



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-13 12:31:14 +00:00
zarzuelo 5fc6415a31 2012-10-30 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Changed the unknown status treatment
	as independent status to fit new needs. Change the internal command
	to create event to have more parameters



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7114 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-30 12:51:13 +00:00
hkosaka 9dc56e9f37 2012-10-30 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/Core.pm, util/pandora_manage.pl: Added
	'description' parameter to '--create_group' CLI.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7111 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-30 09:32:35 +00:00
Ramon Novoa 7a85fd1b8a 2012-10-29 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/Tools.pm: Added support for custom timeouts and retries
	  to remote modules.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7109 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-29 18:42:39 +00:00
Ramon Novoa 3324c8a7f9 2012-10-24 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf,
	  lib/PandoraFMS/Config.pm,
	  lib/PandoraFMS/DataServer.pm: Added a new configuration option to
	  make the data server process XML files in a stack instead of a queue.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7086 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-24 09:38:08 +00:00
Ramon Novoa cc65703429 2012-10-23 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added new macros. Execute alerts after the
	  module status is updated.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7085 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-24 09:07:10 +00:00
Ramon Novoa 44264d3177 2012-10-23 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/Tools.pm: Added support for remote cron modules. Small
	  fixes.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7082 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-23 09:50:39 +00:00
darode 7a6752e3bc 2012-10-23 Dario Rodriguez <dario.rodriguez@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed an error in snmpdevices.pl
        which has a double safe_input.

        MERGED FROM 4.0.2



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7081 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-23 07:19:40 +00:00
jsatoh 33cb2abf1e 2012-10-10 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Core.pm: Fixed bug: periodic (monthly and weekly)
	planned downtime is not stopped at expected time.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7062 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-10 06:02:25 +00:00
slerena c69b2c47ee 2012-10-09 Sancho Lerena <slerena@artica.es>
* util/plugin/mysql_plugin.sh: Fixed problem on composed
        name variables.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7060 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-09 17:57:22 +00:00
vgilc 1c4984af41 2012-10-08 Vanessa Gil <vanessa.gil@artica.es>
* util/tool_api.pl: Added: validate events using API.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7048 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-08 08:33:33 +00:00
jsatoh d0caed28b3 2012-10-04 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Core.pm: Fixed unexpected execution with monthly
	planned downtime.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7041 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-04 04:55:06 +00:00
vgilc a7efd4a1cc 2012-10-03 Vanessa Gil <vanessa.gil@artica.es>
* util/tool_api.pl: Changed format for creating events using API.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7035 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-03 13:09:42 +00:00
slerena 4d12cb8ee5 2012-10-01 Sancho Lerena <slerena@artica.es>
* util/pandora_manage.pl: Fixed problem in CLI enabling the eacl from
        command line. Function name was old and not working.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7013 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-01 10:31:54 +00:00
Ramon Novoa 7b9c64468d 2012-09-28 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Tools.pm: Fixed an SQL query.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7010 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-28 14:06:55 +00:00
Ramon Novoa 229d03bc28 2012-09-28 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/Tools.pm: Disable a module if a text obj tag cannot
	  be converted to an OID.

	* lib/PandoraFMS/ReconServer.pm: Small improvements.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7008 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-28 14:04:33 +00:00
darode c888327967 2012-09-28 Dario Rodriguez <dario.rodriguez@artica.es>
* util/pandora_xml_stress.conf,
	util/pandora_xml_stress.pl,
	util/pandora_xml_stress_module_source.txt: Added new
	features to pandora_xml_stress program.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7007 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-28 11:52:50 +00:00
hkosaka cd36aacd02 2012-09-26 Hirofumi Kosaka <kosaka@rworks.jp>
* util/pandora_db.pl: bug fix: 'audit_purge' was used to purge
	tagente_datos_string (instead of 'string_purge'). Also fixed
	the bug that the oldest data on the corresponding table would
	be never purged.

	Merged from 4.0 branch.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7001 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-26 11:35:33 +00:00
vgilc 918198756e 2012-09-25 Vanessa Gil <vanessa.gil@artica.es>
* util/tool_api.pl: Added file to create events using API.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6998 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-25 14:18:22 +00:00
Ramon Novoa 85f1fe1b08 2012-09-17 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added support for inverse intervals when calculating
	  the status of a module.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6978 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-17 15:05:48 +00:00
vgilc 0b8051a75e 2012-09-17 Vanessa Gil <vanessa.gil@artica.es>
* lib/PandoraFMS/ReconServer.pm: Added new fields
	to modules.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6976 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-17 11:50:30 +00:00
zarzuelo c00d9761bc 2012-09-13 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Generate events when a
	module changes to unknown status



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6970 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-13 14:27:11 +00:00
darode eeb662ee2c 2012-09-11 Dario Rodriguez <dario.rodriguez@artica.es>
* util/plugin/iface_bandwith.pl: First version of 
	iface bandwith server plugin.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6959 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-11 17:45:47 +00:00
mdtrooper f7c574f939 2012-09-11 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: changed to use own code instead the
	external module Time::Piece.
	
	* lib/PandoraFMS/Tools.pm: added function "month_have_days" for
	to get the count of days for any month in any year.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6955 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-11 16:30:55 +00:00
vgilc 744801a63b 2012-09-10 Vanessa Gil <vanessa.gil@artica.es>
* lib/PandoraFMS/Core.pm: Added several fields
	to events.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6949 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-10 16:09:27 +00:00
mdtrooper 9467c58ebc 2012-08-30 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: refactoriced the code for the new Planned
	Downtime, now check the downtimes once and periodical and the
	subtypes of downtimes.
	
	* bin/pandora_server: cleaned source code style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6925 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-30 16:35:24 +00:00
zarzuelo ed1710b95c 2012-08-29 Sergio Martin <sergio.martin@artica.es>
* DEBIAN/control
	Makefile.PL
	pandora_server.spec
	pandora_server.redhat.spec: Added the perl JSON dependence
	to specs and the check to Makefile



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6921 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-29 12:07:55 +00:00
mdtrooper 5cd7b95996 2012-08-21 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: added in the modules the same feature to
	set agent in "Quiet" mode.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6899 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-21 19:06:47 +00:00
mdtrooper 59ddc74a16 2012-08-21 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Server.pm:: added the feature to set a agent in
	"Quiet" mode.
	
	* lib/PandoraFMS/Core.pm, bin/pandora_server: cleaned source code
	style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6897 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-21 17:33:46 +00:00
zarzuelo 9b0b909ef5 2012-08-20 Sergio Martin <sergio.martin@artica.es>
* ChangeLog: Fixed bad description in last commit



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6886 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 10:39:15 +00:00
zarzuelo 5c8763962f 2012-08-20 Sergio Martin <sergio.martin@artica.es>
* util/pandora_migrate_plugins.pl: fixed order of the
	macros fields in the form



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6885 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 08:48:42 +00:00
zarzuelo 66786d4cfa 2012-08-17 Sergio Martin <sergio.martin@artica.es>
* util/plugin/EU_10yrspread.pl
	util/pandora_migrate_plugins.pl: Add plugin to 
	get the 10 year spread of several european countries
	and fix some bugs of the plugin migrate tool



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6876 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-17 12:12:52 +00:00
vgilc be135f8cdb 2012-08-16 Vanessa Gil <vanessa.gil@artica.es>
* util/recon_scripts/snmpdevices.pl: Added several networks and ips
	to recon scripts.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6870 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-16 15:49:18 +00:00
zarzuelo b2e7e74fee 2012-08-16 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/PluginServer.pm: Adapted the plugin server to
	new macros system and add check to timeout == 0

	* util/pandora_migrate_plugins.pl: Add a new migration script 
	MANDATORY when upgrade Pandora FMS 4.0.x to 5.0 to adapt the 
	existing plugins to new macros system



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6866 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-16 12:24:09 +00:00
vgilc ca71a9ebb1 2012-08-16 Vanessa Gil <vanessa.gil@artica.es>
* util/recon_scripts/snmpdevices.pl: Added several communities
	to recon scripts.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6865 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-16 11:55:18 +00:00
mdtrooper 745e1a3662 2012-08-10 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/PredictionServer.pm: changed for the SLA service
	calculate alone instead before it was calculate for the module
	service.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6857 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-10 09:05:34 +00:00
jsatoh faba4f649c 2012-07-29 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/DB.pm: Added missing '%'.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6825 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-29 00:24:35 +00:00
mdtrooper c55f83c4ef 2012-07-27 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/DB.pm: added function "get_agentmodule_data" to
	get some data in a time period from a module.
	
	* lib/PandoraFMS/PredictionServer.pm: into the function
	"exec_prediction_module" avoid to fill the service modules with
	"subtype" SLA because this modules fill automallity after process
	the main modules for the service.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6823 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-27 09:05:16 +00:00
koichirok d56491c1de 2012-07-27 KIKUCHI Koichiro <koichiro@rworks.jp>
* lib/PandoraFMS/Core.pm: fixed bug: added missing decode_entities for
	 SNMP alert evaluation. Also cleaned source code style.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6818 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-27 03:10:13 +00:00
mdtrooper c23539ae46 2012-07-25 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/DB.pm: cleaned source code style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6810 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-25 15:14:36 +00:00
mdtrooper 28bca04079 2012-07-24 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm, lib/PandoraFMS/Tools.pm,
	lib/PandoraFMS/PredictionServer.pm: cleaned source code style.
	
	* lib/PandoraFMS/DB.pm: added functions "get_agent_status",
		"get_agent_modules" and "get_agentmodule_status".




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6803 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-24 13:23:27 +00:00
darode ab854ea07f 2012-07-16 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/Core.pm: Updated statistic queries from php
        code to unify this calculus.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6780 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-16 16:13:20 +00:00
koichirok b0b18689c5 2012-06-27 Koichiro Kikuchi <koichiro@rworks.jp>
* pandora_server.redhat.spec: Small fixes: removed duplicated useradd
	 line, don't remove pandora user after uninstall, added collections
	 directory.

	Merged from 4.0 branch.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6719 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-27 07:02:52 +00:00
juanmanuelr 5c65625159 2012-06-25 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* lib/PandoraFMS/Core.pm: Added deletion of tags when a module is
	being deleted.

	Merged from branches.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6700 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-25 15:20:23 +00:00
Ramon Novoa f987b23920 2012-06-21 Ramon Novoa <rnovoa@artica.es>
* DEBIAN/control,
	  DEBIAN/make_deb_package.sh,
	  conf/pandora_server.conf,
	  pandora_server.spec,
	  lib/PandoraFMS/Config.pm,
	  pandora_server.redhat.spec,
	  util/pandora_db.pl,
	  util/pandora_manage.pl: Updated version strings.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6671 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-21 17:39:54 +00:00
Ramon Novoa 94335b1e8c 2012-06-21 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: merged from 4.0 branch. Added inventory server
	  statistics.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6659 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-21 13:19:49 +00:00
juanmanuelr 783e241dc5 2012-06-21 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* ChangeLog: Forgot to update ChangeLog in my last commit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6654 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-21 11:51:32 +00:00
slerena d5a5a717f6 2012-06-21 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/NetworkServer.pm: SNMP values starting with quotes
        are now stripped of starting/ending double quotes. This will help to
        get numeric (float data) as strings.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6646 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-21 10:06:19 +00:00
darode e3130cca1e 2012-06-12 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/Core.pm: Fixed an error with group_statistics agent
        queries.

	MERGED FROM 4.0.2



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6534 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-13 11:20:31 +00:00
Ramon Novoa a142941f28 2012-06-12 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Merged from 4.0 branch. Added export server
	  stats.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6511 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-12 13:28:26 +00:00
mdtrooper d666e24144 2012-06-12 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/ReconServer.pm: fixed the recode into html entities
	the name of network component into the function
	"create_network_profile_modules".
	
	MERGED FROM 4.0.2




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6507 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-12 12:34:51 +00:00
mdtrooper 7603298f9c 2012-06-11 Miguel de Dios <miguel.dedios@artica.es>
* pandora_server/util/pandora_xml_stress.pl: cleaned source code
	style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6476 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-11 10:25:58 +00:00
darode 2b07cf6461 2012-06-08 Dario Rodriguez <dario.rodriguez@artica.es>
* lib/PandoraFMS/Core.pm: Fixed an error counting 
	unknown agents in groups.

	MERGED FROM 4.0.2



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6458 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-08 12:13:26 +00:00
Ramon Novoa 6895f62af4 2012-05-31 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/WMIServer.pm: Merged from 4.0 branch. Hide wmic error
	  messages and improved error checking.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6386 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-05-31 11:29:33 +00:00
slerena f42cec7299 2012-05-30 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Updated batch statistic queries to get
        information about groups. SQL code taken from new functions in
        functions_group.php. Unified criteria to calculate information.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6377 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-05-30 17:15:25 +00:00
koichirok f313e1a1e2 2012-05-29 Koichiro Kikuchi <koichiro@rworks.jp>
* util/pandora_db.pl: Don't delete non-initialized modules which
	 belong to disabled agent.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6353 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-05-29 07:12:09 +00:00
zarzuelo a24f7ed111 2012-05-21 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Added new Internal Command for
	actions to validate the events of one module given 
	the agent name (field1) and the module name (field2)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6325 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-05-21 08:40:53 +00:00
koichirok 0fcd6f8641 2012-05-21 Koichiro Kikuchi <koichiro@rworks.jp>
* util/pandora_db.pl: Merged from 4.0.2: Set default DB port
	 number when it's not specified in the configuration file.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6324 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-05-21 06:37:12 +00:00
zarzuelo 22ffc92411 2012-05-17 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Added --create_network_module_from_component
	option to CLI passing component and target agent names



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6308 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-05-17 09:42:52 +00:00
darode 9b096f7a4a 2012-05-16 Dario Rodriguez <dario.rodriguez@artica.es>
* util/pandora_xml_stress.conf: Fixed a wrong default configuration file
	for pandora_xmk_stress

	MERGED FROM 4.0.2



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6303 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-05-16 04:59:22 +00:00
jsatoh 8092ef8403 2012-05-11 Junichi Satoh <junichi@rworks.jp>
* ChangeLog: Fixed conflict with previous commit. (Added lost lines.)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6291 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-05-11 04:47:57 +00:00
zarzuelo 4897288d66 2012-05-10 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/DB.pm
	lib/PandoraFMS/Core.pm: Added the macro _alert_text_severity_ to
	the alerts



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6284 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-05-10 12:18:43 +00:00
darode 500528937d 2012-05-09 Dario Rodriguez <dario.rodriguez@artica.es>
* util/plugin/ipmi-plugin.pl,
	util/recon_scripts/ipmi-recon.pl: Fixed some bugs of plugin and
	recon

	MERGED FROM 4.0.2



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6275 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-05-09 07:40:24 +00:00
slerena 55c99f3a4d 2012-05-08 Sancho Lerena <slerena@artica.es>
* conf/pandora_server.conf: Better default values.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6272 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-05-08 15:47:19 +00:00
jsatoh 492e93da57 2012-04-28 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Core.pm: Added a missing argument to process_data()
	call.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6216 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-28 01:43:04 +00:00
zarzuelo 466726a59e 2012-04-26 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Added call to delete the agent
	related nodes of the network map enterprise



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6193 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-26 13:31:53 +00:00
Ramon Novoa 27dec04695 2012-04-23 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Merged from 4.0 branch. Do not insert zeroes
	  when something goes wrong while processing an inc module. Fixes bug
	  #3519591.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6102 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-23 14:12:35 +00:00
Ramon Novoa b3c1a4a3b9 2012-04-23 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm,
	  lib/PandoraFMS/WMIServer.pm,
	  lib/PandoraFMS/PluginServer.pm: Simplified the calculation of
	  time_left to make sure it is always positive. Fixes bug #3519099.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6094 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-23 12:16:20 +00:00
Ramon Novoa af9225f72f 2012-04-20 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Merged from 4.0 branch. Do not try to reset
	  the internal counter unless it is > 0. Fixed a warning.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6083 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-23 09:44:48 +00:00
zarzuelo d9ba943e58 2012-04-20 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/Core.pm: Setted last_reference to current utimestamp
	in the alert table when create it



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6068 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-20 12:10:10 +00:00
koichirok 08cdb6b994 2012-04-20 Koichiro Kikuchi <koichiro@rworks.jp>
* ChangeLog: Fixed date and message.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6056 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-20 07:20:11 +00:00
koichirok 151024c1c3 2012-04-19 Koichiro Kikuchi <koichiro@rworks.jp>
* conf/pandora_server.conf.windows,
	  conf/pandora_server.conf,
	  lib/PandoraFMS/DB.pm
	  lib/PandoraFMS/Core.pm
	  lib/PandoraFMS/SNMPServer.pm
	  lib/PandoraFMS/Config.pm
	  lib/PandoraFMS/ProducerConsumerServer.pm
	  bin/pandora_server
	  FreeBSD/pandora_server.conf
	  util/pandora_db.pl
	  util/recon_scripts/snmpdevices.pl
	  util/recon_scripts/ipmi-recon.pl
	  util/plugin/pandora_inventory_change.pl
	  util/plugin/pandora_server_status.pl
	  util/pandora_manage.pl
	  util/pandora_recode_db.pl
	  util/pandora_dbstress.pl: Now pandora_server supports MySQL
	 server running on non-standard port.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6054 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-20 03:56:09 +00:00
slerena 1dd53a6733 2012-04-19 Sancho Lerena <slerena@artica.es>
(Merged from 4.0.x Branch)

        * util/pandora_xml_stress.conf: default path for default agentname list.

        * lib/PandoraFMS/DataServer.pm: Units are not overwrite by an empty XML
        parameter.

        * lib/PandoraFMS/ReconServer.pm: Fixed creation of network components
        with double encoding.

        * lib/PandoraFMS/Core.pm: Applied Junichi patch (from trunk) for detecting
        keepalive in some newer SQL systems. Added a lot of safe_output in logfile.
        Added aditional check for INC types on date collision (same date for different
        data). Fixed generation of some events with double encoding.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6052 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-19 18:47:57 +00:00
slerena fb53a163aa 2012-04-18 Sancho Lerena <slerena@artica.es>
* pandora_server_installer: Fixed version.

	* lib/PandoraFMS/Config.pm: Updated version.

	* util/pandora_db.pl: Updated version.

	* util/plugin/SMTP_check.pl: New remote plugin to check SMTP.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6026 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-18 17:04:53 +00:00
koichirok dc3e1ab41e 2012-04-18 Koichiro Kikuchi <koichiro@rworks.jp>
* util/pandora_db.pl: Fixed syntax error.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6009 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-18 09:24:56 +00:00
darode 75b4d5739d 2012-04-18 Dario Rodriguez <dario.rodriguez@artica.es>
* pandora_server_installer: Fixed a problem setting permissions
	for /var/spool/pandora directory because an incorrect web server
	group mathcing

	MERGED FROM 4.0.2



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6007 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-18 09:21:28 +00:00
zarzuelo e90e66f7e5 2012-04-17 Sergio Martin <sergio.martin@artica.es>
* util/pandora_db.pl: Fixed parameters gathering and
	clean undeveloped options from help for bug 3486190



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5997 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-17 11:38:41 +00:00
zarzuelo 8b2f13d112 2012-04-13 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Fixed entities trouble in the action
	exist check



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5966 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-13 08:36:08 +00:00
Ramon Novoa cc0b52a12c 2012-04-12 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm,
	  lib/PandoraFMS/Core.pm,
	  lib/PandoraFMS/ReconServer.pm: Improved Recon Server to detect
	  hostnames that resolve to multiple IP addresses. Fixes bug #3052350.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5952 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-12 10:04:35 +00:00
Ramon Novoa e3878ec855 2012-04-10 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm: Check for single tag XMLs. Fixes bug #3514207.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5922 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-10 14:21:56 +00:00
Ramon Novoa e1160b15e4 2012-04-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/WMIServer.pm: Put a regexp that could crash the server
	  inside an eval. Fixes bug #3509354.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5900 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-04 13:28:21 +00:00
Ramon Novoa 355862b78a 2012-04-03 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Fixed the return value of
	  pandora_query_snmp when an OID cannot be translated.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5880 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-03 12:06:25 +00:00
jsatoh bf71c942b7 2012-03-24 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Core.pm: Fixed pandora_server process down with
	version 8.3 or later of PostgreSQL.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5826 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-03-24 12:35:30 +00:00
mdtrooper 8ab6ed98cb 2012-03-20 Miguel de Dios <miguel.dedios@artica.es>
* util/pandora_db.pl: added lines to purge the contents in the report that
	have not a modules or agents.
	
	Merged from the branch pandora_4.0
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5799 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-03-20 12:23:39 +00:00
slerena 5880035220 2012-03-12 Sancho Lerena <slerena@artica.es>
* util/pandora_xml_stress.agents
        util/pandora_xml_stress.conf: Added default file for agent
        dictionary. Better defaults on modules. Ready to be used for
        testing Pandora FMS servers.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5748 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-03-12 19:04:49 +00:00
koichirok 43c01be337 2012-03-08 Koichiro Kikuchi <koichiro@rworks.jp>
* util/pandora_db.pl: Fixed wrong SQL of my previous commit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5718 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-03-08 07:12:22 +00:00
koichirok 64830409b7 2012-03-08 Koichiro Kikuchi <koichiro@rworks.jp>
* util/pandora_db.pl: Don't delete alerts if non-init/unknown
	 module to which these alerts assigned has not been deleted.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5716 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-03-08 06:35:48 +00:00
slerena bac18b070d 2012-03-07 Sancho Lerena <slerena@artica.es>
* util/pandora_xml_stress.conf
        util/pandora_xml_stress.pl: Now xml_stress tool can use units
        in the XML generated files. Default configuration file is useful
        to generate "real" scenarios.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5714 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-03-07 20:00:56 +00:00
slerena 02a3b2882a 2012-03-07 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Updated version.

        * lib/PandoraFMS/DataServer.pm: Support for "UNIT" tag in the
        XML to update module data units from the XML.

        * util/pandora_csvbridge.pl: New tool to create XML data files
        from CSV files containing data.

        * util/pandora_watchdog.sh: Watchdog for Pandora FMS server,
        taken from the documentation and updated.

        *  util/pandora_dbstress.pl, 
        util/pandora_db.pl: Updated version strings.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5713 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-03-07 19:42:28 +00:00
vgilc ac17560e17 2012-02-29 Vanessa Gil <vanessa.gil@artica.es>
* bin/PandoraFMS/Core.pm: Fixed bug: HTML entities in alert name.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5676 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-02-29 15:04:15 +00:00
juanmanuelr ee6a60c71d 2012-02-28 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* util/pandora_manage.pl: Modify call to function 
	pandora_delete_not_policy_modules adding md5 filename like a 
	parameter.

	Fixes: #3486481



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5668 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-02-28 17:41:01 +00:00