Commit Graph

57 Commits

Author SHA1 Message Date
Ramon Novoa 9031e95e36 2009-11-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm, lib/PandoraFMS/Core.pm,
          lib/PandoraFMS/DataServer.pm, lib/PandoraFMS/WMIServer.pm,
          bin/pandora_server, util/pandora_db.pl: Fixed all pending tracker
          bugs.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2081 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-04 17:49:42 +00:00
slerena e75d58adec 2009-06-08 Sancho Leren <slerena@artica.es>
* Header updates.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1732 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-08 15:12:32 +00:00
Ramon Novoa 7749e201de 2009-05-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Enabled mysql_auto_reconnect.

        * lib/PandoraFMS/SNMPServer.pm, lib/PandoraFMS/PluginServer.pm,
          lib/PandoraFMS/NetworkServer.pm, lib/PandoraFMS/WMIServer.pm: Log
          error messages when external programs are not found.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1673 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-05-04 12:16:52 +00:00
Ramon Novoa 0207651a64 2009-04-14 Ramon Novoa <rnovoa@artica.es>
* pandora_ctl, pandora_network, pandora_wmi, pandora_plugin,
          pandora_prediction, bin/pandora_wmi, bin/pandora_plugin,
          bin/pandora_prediction, bin/pandora_snmpconsole, bin/pandora_recon,
          bin/pandora_network, pandora_recon, pandora_snmpconsole: Deleted
          from repository. Old server code and startup scripts.

        * Makefile.PL, pandora_server_installer, lib/PandoraFMS/Config.pm
          lib/PandoraFMS/DB.pm, lib/PandoraFMS/Tools.pm, bin/pandora_server,
          pandora_package_installer, pandora_server: Updated to work with the
          new code, removed unneeded dependencies, fixed some bugs etc.

        * lib/PandoraFMS/SNMPServer.pm, lib/PandoraFMS/PluginServer.pm,
          lib/PandoraFMS/ProducerConsumerServer.pm, lib/PandoraFMS/Server.pm,
          lib/PandoraFMS/PredictionServer.pm, lib/PandoraFMS/Core.pm,
          lib/PandoraFMS/ReconServer.pm, lib/PandoraFMS/DataServer.pm,
          lib/PandoraFMS/NetworkServer.pm, lib/PandoraFMS/WMIServer.pm: Added
          to repository. New server code.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1620 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-14 19:13:16 +00:00
slerena cfa4de0782 2009-04-02 Sancho Lerena <slerena@artica.es>
* DB.pm: Function to process SNMP Alerts was not properly exported, so
	SNMP alerts in some environments don't run. Fixed (this is ok in 2.1).
	
	* util/udp_client.pl: Client to connect with pandora windows agent mini
	server and using with alerts to manage remote process / services in Windows
	
	* util/mcast_client.pl: Tool to check the UDP multicast notification 
	service of Pandora.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1593 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 18:58:25 +00:00
slerena e709f07fff 2009-03-05 Sancho Lerena <slerena@artica.es>
* bin/pandora_network: Better management of snmpget binary call, using
	a config setup variable and checking it in startup.
	
	* pandora_server.conf: new options added (snmpget, UDP multicast)
	
	* Config.pm: New options managed (snmpget), new version updated (3.0-dev)
	
	* DB.pm: Fixed two issues that makes me some problems on undefined values.
	
	* Tools.pm: New function to manage numerical data.
	
	* util/plugin/multicast.pl: Fixed plugin for multicast check.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1508 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 17:15:39 +00:00
Ramon Novoa 76a8627ded 2009-03-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Fixed alert recovery custom fields.
          field3_recovery was not being properly set.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1503 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 09:08:10 +00:00
guruevi e33f20f460 2009-02-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandoradb_migrate_20_to_21.sql, pandoradb.sql: Fixed going up/down
	strings
	
	* godmode/setup/setup.php: Fixed event hours display
	
	* operation/events/events.php: Fixed several major bugs with pagination
	and the new event types.
	
	* include/functions.php, include/functions_ui.php, 
	include/functions_html.php: Moved pagination and print_help_tip to 
	functions_ui.php. Repeat id's are now fixed backwards compatible. 
	Also fixed a bug in print_select where type comparisons against would 
	fail since PHP evaluates strings to (int) 0
	
	* include/functions_events.php: Added print_event_type_img () and altered
	the other functions to work with it

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1471 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-20 21:48:09 +00:00
Ramon Novoa 292eaa2e65 2009-02-11 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Combined alerts are working again.

        * bin/pandora_snmpconsole: Moved calcula_alerta_snmp to DB.pm so it
          can be called from other modules.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1445 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-11 18:21:24 +00:00
Ramon Novoa 5a630b38d9 2009-02-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Read template default action on alert
          execution.

        * bin/pandora_snmpconsole: Fixed SNMP alerts.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1425 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-04 20:09:23 +00:00
Ramon Novoa b7efdb8358 2009-02-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Use db_do instead of db_update.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1421 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-04 09:47:19 +00:00
Ramon Novoa 5336f5a808 2009-01-30 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Fixed regexp alerts.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1413 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-30 10:46:24 +00:00
slerena 759260ba22 2009-01-26 Sancho Lerena <slerena@artica.es>
* DB.pm: Fixed NOT behaviour of alerts, now works as supposed to do.
	
	* pandora_db.pl: Deleted pending modules, fixed problems using bad DB
	function. 

	* Config.pm: Version update.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-26 15:05:33 +00:00
Ramon Novoa e49f670e14 2009-01-26 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Added a new alert macro (_address_).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1400 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-26 12:01:27 +00:00
Ramon Novoa 91e66a0b5d 2009-01-21 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Changes in multicast change reports.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1386 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-21 17:25:38 +00:00
guruevi 38513eedf7 2009-01-21 Evi Vanoost <vanooste@rcbi.rochester.edu>
* lib/PandoraFMS/DB.pm: Fixes incremental modules

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1384 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-21 14:53:18 +00:00
Ramon Novoa 7ee00ca354 2009-01-21 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Take into account the alert option
          'matches_value'.

        * bin/pandora_server: Added support for forced alert execution.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1373 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 23:42:21 +00:00
slerena 310f304ca4 2009-01-20 Sancho Lerena <slerena@artica.es>
* Config.pm: Now works without breaking the server :-). Show verbose info
	only when verbosity enabled (>4).
	
	* pandora_server: more issues with verbosity level. Fixed a typo on 
	management of async_proc moduletypes. Freeing a hash reference on keepalive
	solves a memleak.

	* DB.pm: Converting to the same float when comparing two numbers.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1368 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-20 18:56:30 +00:00
slerena 6172955e54 2009-01-16 Sancho Lerena <slerena@artica.es>
* pandora_wmi, pandora_plugin, pandora_recon: Updates merged from
	2.0 version. Different small fixes and improved performance.

	* DB.pm: Support for fixes in wmi/plugin server. Call of enterprise 
	function pandora_mcast_change_report() is done now on real status change
	code not in alert. Added update_on_error() function to update status table
	when remote modules cannot init (update last_try field to avoid unnecesary
	attempts).

	* Config.pm: Build update, some stuff cleaned. Server startup info is show
	only when verbose level is activated.
	
	* pandora_network: Startup messages are not shown if verbose < 5.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1358 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-19 19:36:37 +00:00
Ramon Novoa 7a96ba782b 2009-01-16 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Several fixes.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1351 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-16 11:22:56 +00:00
Ramon Novoa 586f857ab2 2009-01-15 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: min_alerts now works as expected.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1348 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-15 17:19:24 +00:00
Ramon Novoa e5aa8d34e7 2009-01-15 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Partially rewrote the alert core to support the
          new DB schemas. Compound alerts have been temporarily disabled.
          Rewrote alert macro substitution code.

        * lib/PandoraFMS/Tools.pm,
          bin/pandora_snmpconsole: Aesthetic changes to enterprise code.

        * lib/PandoraFMS/Config.pm,
          bin/pandora_network: Added support for UDP multicast status reports
          (enterprise version).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1347 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-15 12:51:26 +00:00
slerena 1326a7904e 2009-01-14 Sancho Lerena <slerena@artica.es>
* DB.pm: Solved an invalid reference to hash variable affecting to
        postprocess calculation.

        * pandora_recon: Now is compatible with the latest changes. Solved a
        problem in eval() block. Also fixed a old bug mixing network profiles.
        This fix will be ported to stable version ASAP.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1342 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-14 18:33:00 +00:00
slerena bcf0d1e1c5 2009-01-12 Sancho Lerena <slerena@artica.es>
This is a MAJOR upgrade that _BREAK_ your current 2.1 trunk version.
	Needs an upgrade of DB Schema. At this time no conversion tool has been
	provided. Libs and console needs also to be re-deployed.
	
	* pandora_server: KeepAlive module is now processed OUTSIDE 
	pandora_lastagentcontact() function, in it's own function. This makes that
	keepalive only be refreshed on agent data, not network. This should 
	make keepalive works as "agent down detector" in a definitive way, also
	it's an important performance improvement operation.
	
	* pandora_db.pl: Performance improvements. If compact days = 0 skip. 
	Compactation and delete needs to be improved in speed.
	
	* DB.pm: Added more generic DB access functions (db_insert, db_update, 
	db_delete). Major rewrite of pandora_writestate(). Now uses three different
	values for status (NORMAL, WARNING, CRITICAL) and manage all modules like
	old monitor modules. Uses new fields for control event flip/flop with a 
	counter. Also uses new WARNING/CRITICAL thresholds to calculate in store-
	time the status.
	
	pandora_accessupdate() Function now uses only utimestamp. Tagente_datos and 
	tagente_datos_string has been updated and do not use timestamp (string) and
	id_agent index anymore. Big improvement has been noticed in performance 
	tests after this change !. tagente_datos_inc has been modified also.
	
	pandora_writedata() needs a lot of improvement :(. Added support for 
	modules without history. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1325 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 02:44:39 +00:00
guruevi 65620ab7dd 2008-12-10 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions.php: format_for_graph is now much simpler and uses 
	format_numeric.
	
	* include/functions_db.php: give_note_author, give_incident_author, 
	dame_numero_notas, borrar_incidencia, event_insert and 
	return_event_description are now in their respective functions_*.php files
	but under a new name. Fixed delete_agent transaction error detection
	
	* include/functions_events.php: Added get_event_description and
	create_event (formerly return_event_description and event_insert)
	
	* include/functions_html.php: print_timestamp attributes should be default
	empty, not required. Added print_username for a consistent username print
	
	* operation/agentes/ver_agente.php: Function renaming (create_event)
	
	* operation/incidents/incident.php: Partial rewrite. Uses new functions. 
	Also added some of feature request #2264838
	
	* operation/incidents/incident_detail.php: Partial rewrite. Uses new 
	functions. Added some of feature request #2264838 functionality.
	
	* operation/incidents/incident_search.php, 
	operation/incidents/incident_statistics.php: Minor style update
	
	* pandoradb.sql: New tincidencia and tnota layout. No use for tnota_inc
	
	* include/functions_incidents.php: All incidents functions. Documentation
	will be online soon. Also includes an upgrade mechanism for SVN users. 
	Mechanism should be removed for a stable version and integrated into 
	install/upgrade tool.

	* lib/PandoraFMS/DB.pm: New table layout doesn't require timestamp anymore

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1286 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-10 20:15:47 +00:00
Ramon Novoa 35820d07ac 2008-11-04 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Config.pm,
          lib/PandoraFMS/DB.pm,
          lib/PandoraFMS/Tools.pm,
          bin/pandora_snmpconsole: Added support for enterprise version
          features.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1214 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-04 11:33:07 +00:00
slerena 1a144f11cb 2008-10-30 Sancho Lerena <slerena@gmail.com>
* lib/PandoraFMS/DB.pm:  Some people reports problems with
        server stop detection. This could help, because has optimized
        way to detect servers, but is not a bugfix because I cannot
        reproduce the problem.

        * Config.pm: Updated version (2.1)

        * server/Launcher scripts: Updated version (2.1)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1205 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-10-30 13:15:18 +00:00
Esteban Sanchez 34195ec2b0 2008-10-20 Esteban Sanchez <estebans@artica.es>
* lib/PandoraFMS/DB.pm: Fixed a strange bug that was causing to
	generate events of servers going down, the solution was to update
	own keepalive before checking others server status. Tab style
	correction, replacing blankspaces with tab.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1173 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-10-20 10:43:21 +00:00
Ramon Novoa 4bc63b5df6 2008-09-18 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Added Export Server support.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1101 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-09-18 12:10:29 +00:00
slerena 82542c0d3f ç2008-09-01 Sancho Lerena <slerena@gmail.com>
* lib/PandoraFMS/DB.pm: Sending mail now replaces macros also
        in the subject.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1054 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-09-01 08:53:01 +00:00
slerena ad2f4f0675 2008-08-21 Sancho Lerena <slerena@gmail.com>
* lib/PandoraFMS/DB.pm, bin/pandora_server: Enabled again 
        downtime scheduler. Now works fine, tested.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1018 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-21 19:03:19 +00:00
slerena b8c5d66e8c 2008-08-05 Sancho Lerena <slerena@gmail.com>
* bin/pandora_recon: New functional recon server. It implements 
	different recon tasks based on OS type. Uses a production/consumer
	thread model, detec OS typew and assign automatically network profiles
	(including new WMI components) and WMI, Plugin, Network and Prediction
	servers, taken the first master server that could found. Uses xprobe2
	external tool to detect remote OS.

	* Makefile.PL: Added new dependencies (HTML::Entities), and new
	binary tool for controlled time executing (pandora_exec), used now
	by pandora_wmi and pandora_plugin.

	* Config.pm: Fixed problem parsing xprobe2 command.

	* DB.pm: Functions pandora_create_agent() and pandora_event() moved
	from Tools.pm to here. Removed some old DEBUG messages.

	* Tools.pm: Moved pandora_create_agent() and pandora_event() to DB.pm



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1002 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-05 10:55:41 +00:00
Ramon Novoa 9aa0c8c85e 2008-07-30 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm,
          bin/pandora_wmi: Small fixes.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@984 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-30 14:21:11 +00:00
slerena fe220658c2 2008-07-30 Sancho Lerena <slerena@gmail.com>
* lib/PandoraFMS/DB.pm: FIXED a stupid bug that makes impossible to
        process any data :(. This bug was introducted by me at 25 July.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@983 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-30 10:44:43 +00:00
slerena df0127985c 2008-07-25 Sancho Lerena <slerena@gmail.com>
* pandora_network: Added a defined() check for tcp_send string.

	* pandora_server: Added call to function pandora_planned_downtime().
	This implements planned downtimes on data server only.

	* DB.pm: Small optimization on bad data: pandora_writedata and 
	pandora_writestate return -1 on bad values and skip processing data. 
	More checks on undefined data (pandora_writestate). 
	Added code for planned downtimes, in function pandora_planned_downtime().
	Patch for adding [RECOVER] on f2/f3 if blank. Submitted by Kato Atsushi
	Now Monitor down has priority Warning and Monitor UP priority normal.

	* pandora_*servers*: Added inmediatly status change in tserver table on 
	controlled shutdown, this could be a ordered shutdown, a kill or a CTRL-C



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@974 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-25 18:52:37 +00:00
slerena 0f1635a2fd 2008-07-23 Sancho Lerena <slerena@gmail.com>
* Makefile.PL: Removed reference to export_server.

        * DB.pm: Fixed bug that causes to do not store string data. Added checks
        for aviod null text and skip max/min checks for string types.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@972 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-24 11:04:55 +00:00
slerena 9bc457226c 2008-07-22 Sancho Lerena <slerena@gmail.com>
* pandora_network: Minimal style changes. Added status change in 
	tserver table on controlled shutdown.

	* pandora_server: Added status change in tserver table on controlled 
	shutdown. Minimal changes and optimizations. Recheck for bad XML is 
	adjusted to 3 instead 10.Fixed problem with "blank" agent names. Added
	support for async types (data, proc and string).

	* config.pm: Added support for new config token: max_log_size. This
	stablish a max log filesize.

	* DB.pm: Added support for postprocess (as simple multiplier value). 
	Fixed problem with continuous update of laststart in server keepalive.
	Updated also several logger priorities (raise them).

	* Config.pm: pandora_get_os() fixed for void OSes. Logger() implements
	a file-rotation system with a maximum in bytes for PandoraFMS log file.
	
	* pandora_server.conf: Updated with new options and removed some from 1.3.1
 	
	* pandora_export: Deleted skeleton file por export server. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@967 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-22 15:52:34 +00:00
slerena a980bb32cf 2008-06-18 Sancho Lerena <slerena@gmail.com>
* pandora_dbstress.pl: Added suppor for "text" moduletypes.
    
    * pandora_recon: Now is multithreaded. Better management of already
    registered IP's. Better status update. Some fixes (xprobe2 crash).

    * Config.pm: Added support for recon_threads token.

    * Tools.pm: added pandora_trash_ascii(), autocreate
    set agent in learning mode automatically.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@879 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-19 00:14:17 +00:00
slerena 6de72c6dac 2008-06-17 Sancho Lerena <slerena@artica.es>
* config.pm: Added options for xprobe2, and autocreate.

	* tools.pm: Added functions pandora_create_agent(), pandora_get_os(),
	and pandora_event() (this has been moved from DB.pm).

	* pandora_server.conf: Added options for xprobe2, autocreate and
	autocreate_group.

	* pandora_network: Added support for TCP scanning (not implemented in
	console yet), parent detection using traceroute, OS fingerprinting with
	xprobe2, event creation using central functions, and some optimizations.

	* pandora_server: Added support for agent autocreation, OS detection from
	the XML header, and event notification "new_agent" type.

	* pandora_recon: First code to implement traceroute functionality
	using Pureperl module.  Added code for remote OS fingerprinting.





git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@874 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-17 17:26:03 +00:00
slerena 9920b0609f 2008-06-13 Sancho Lerena <slerena@artica.es>
* conf/pandora_server.conf: Added new internal MTA feature config tokens .
    
    * pandora_server_installer: Copy default plugins to /usr/share/pandora/util
    
    * Config.pm: New MTA feature tokens, and added event when starting server.
    
    * DB.pm: Changes in execute_alert function (now passes several hash refs).
    Alerts and events now use new format of events. Add support for new inter-
    nal MTA/SMTP alert feature. Discovered and FIXED a very annoying bug on
    need_update usage in write_state function that was making a HUGE 
    degradation when too many non-init modules in network server.
        
    * Tools.pm: Added pandora_sendmail() function. Needs Mail::Sendmail dep.
    
    * All servers: Support for pandora_shutdown notify on event database.
    
    * pandora_snmpconsole: Updated SNMP alert mechanism. Need to be tested!.
    
    * pandora_recon: Now generate an event when discover a new host.
    
    * util/pandora_db.pl: Added support to automatically delete events.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@859 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-13 16:42:35 +00:00
slerena 68424bb75e 2008-04-17 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Config.pm: Shorten description in help.

        * lib/PandoraFMS/DB.pm: Data server module autocreation don't
        assign a id_module to tagente_module record. Fixed.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@809 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-17 15:05:35 +00:00
Ramon Novoa 1280425526 2008-04-16 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Small code optimization. Took a couple
          of prepare statements out of a loop.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@808 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-16 16:52:34 +00:00
Ramon Novoa 86bb8b22fc 2008-04-16 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Rewrote the alert engine. Small fixes.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@807 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-16 11:03:03 +00:00
slerena 1a88c6d931 2008-04-01 Sancho Lerena <slerena@gmail.com>
* bin/pandora_prediction: Fixed several problems with
        prediction on anomaly detection. Tested and works fine for me.

        * DB.pm: Fixed problem in combined alerts. Removed some
        log entries. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@784 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-01 17:00:09 +00:00
Ramon Novoa e06c11aef0 2008-03-27 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Config.pm, lib/PandoraFMS/DB.pm: Added
	  compound alert support.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@773 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-27 17:38:10 +00:00
slerena b2ece3be75 2008-03-13 Sancho Lerena <slerena@gmail.com>
* lib/PandoraFMS/Config.pm: New pandora_startlog function. Added support to manage PID
    in daemon mode. Added support for quiet mode. Added prediction_threads option. 

    * lib/PandoraFMS/Tools.pm: daemonize function now manages PID and store in a file when
    it forks. 

    * lib/PandoraFMS/DB.pm: Removed some gotos.  Modified generic-access DB functions and 
    added one to manage entire row in a hash: get_db_free_row ().

    * bin/pandora_plugin: A lot of fixes. This code actually works fine :-)

    * bin/pandora_prediction: First version of usable code. Works but not seriously tested.

    * bin/pandora_network: Adjusted to work with new features (quiet mode) and new db 
    schema. Some code cleanup.

    * util/pandora_dbstress.pl: Updated default values.

    * util/pandora_dbstress.README: Improved README documentation for dbstress tool.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@747 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-13 18:33:44 +00:00
slerena 111c842b62 2008-03-06 Sancho Lerena <slerena@gmail.com>
*  conf/pandora_server.conf: New tokens for the new servers.

        * lib/PandoraFMS/Config.pm: Added support for WMI Server.

        * lib/PandoraFMS/DB.pm: Updated pandora_updateserver function.

        * bin/pandora_wmi: Skeleton of WMI server, not functional, only
        a concept proof and initializacion for create a WMI server.

        * bin/pandora_plugin: Almost functional code, fully skeleton,
        initializacion and modules.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@740 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 16:25:50 +00:00
slerena 92f5f37291 2008-02-25 Sancho Lerena <slerena@gmail.com>
* conf/pandora_server.conf: Added new tokens.

        * lib/PandoraFMS/Config.pm: Code cleanup and add support for 
        new prediction and plugin server. Added better checks to clean  
        blank spaces inside config tokens.

        * lib/PandoraFMS/DB.pm: Added comment to the only generic function
        to database we have.            

        * lib/PandoraFMS/Tools.pm: Created a new function to clean 
        blank spaces, and used to clean setup file parsing.

        * bin/pandora_plugin: New plugin server skeleton, not functional
        yet. Need much more improvement, but code skeleton is done.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@725 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-02-25 18:00:09 +00:00
slerena f128742b02 2008-02-20 Sancho Lerena <slerena@gmail.com>
* Merged latest changes on stable branch to trunk. Let's go to
        1.4 version !!



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@722 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-02-20 02:09:36 +00:00
slerena bb4745b955 2008-01-08 Sancho Lerena <slerena@gmail.com>
* Config.pm: Updated version to 1.3.1-dev
        
        * DB.pm: Added generic db function give_db_free(). keepalive modules area
        managed differently. Now have type 100 and update only tagente_estado table
        discarding historic data, but are managed like other module. Update data (OK)
        when updating tagent_access. Old Keepalive modules are deprecated and not used
        since from 1.2 version was not working :(

        * pandora_snmpconsole: Some small fixes from unknown user.

        * pandora_server: Ignore files with size 0 (expect to solve problems with 
        zerobyte BADXML files, need more testing...). Keepalive module management
        are now managed in a different way. This works for me but needs more testing.

        * pandora_network: Minimal optimization in locking for SNMP threads.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@687 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-01-08 18:32:03 +00:00