Commit Graph

249 Commits

Author SHA1 Message Date
Pablo de la Concepción Sanz 2f575d378e 2010-02-15 Pablo de la Concepción <pablo.concepcion@artica.es>
* conf/pandora_server.conf, lib/PandoraFMS/Config.pm: New configuration
    parameters: recon_reverse_geolocation_mode, recon_reverse_geolocation_file,
    recon_location_scatter_radius. As now the Recon Server can try to geolocate
    an agent when it's found by revers geoip location.

    * lib/PandoraFMS/Core.pm: Added first version of POD documentation to
    create the manpage and to have most of the subrutines documented. Also
    it's possible to add the description of the location to the GIS information
    on the pandora_update_agent and pandora_create_agent subroutines. And
    finaly moved away the GIS related functions (distance_moved) to their own
    new module PandoraFMS::GIS

    * lib/PandoraFMS/GIS.pm: New module to keep all the GIS related functions
    of Pandora FMS. Now it exports distance_moved, get_reverse_geoip_sql,
    get_reverse_geoip_file and  get_random_close_point.

    * lib/PandoraFMS/ReconServer.pm: Updated to get GIS information by doing
    reverse IP geolocation using GIS module.

    * man/man3/PandoraFMS::Core.pm.3, man/man3/PandoraFMS::GIS.pm.3: New
    manpages for Core and GIS modules.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2368 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-15 20:34:57 +00:00
slerena 70feefaf5c 2010-02-10 Sancho Lerena <slerena@artica.es>
* bin/pandora_server: Better error management, avoiding to show Enterprise
	loading errors, and showing in console critical errors, helping to identify
	silly errors like DB credentials, etc.
	Added usage of pandora_get_sharedconfig() to get configuration from DB.

	* Config.pm: Updated build. Added pandora_get_sharedconfig(). Force three
	config tokens to be readed from DB, using default values if cannot be readen
	from database (agentaccess, realtimestat and stats_interval).

	* Core.pm: Added new parameter to pandora_event() to pass status of the 
	event (validated, not validated). Implemented auto-validation of low 
	priority events: normal/ok events will be always shown as autovalidated, and
	warning and normal events will be validated with critical events, and when
	a module is restored (normal/ok), all it's warning/critical pending events
	will be validated. 

	Fixed also bug with FF Threshold who doesnt' trigger events until FF + 1 
	instead FF value.

	* Server.pm,
	NetworkServer.pm,
	Dataserver.pm,
	ReconServer.pm: Raise event with status 0 (non validated) by default.

	* NetworkServer.pm: Implemented support for SNMP v3.

	* util/pandora_db.pm: Very important upgrade to this script. Now will
	delete all huge tables (tagente_datos, tagente_datos_string and 
	tagent_acccess) using several independent blocks (by default 100) avoiding
	mysql locks which happen in the past. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2341 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-10 17:32:10 +00:00
Pablo de la Concepción Sanz efc19eb943 2010-01-29 Pablo de la Concepción <pablo.concepcion@artica.es>
* conf/pandora_server.conf, lib/PandoraFMS/Config.pm: Added
    location_error parameter

    * lib/PandoraFMS/Core.pm: Fixed bugs in the creation and update of
    the agent that where messing with the locations. Fixed distance on the
    earth formula. Use of the location_error parameter to decide if an
    agent has moved or not.

    * util/pandora_xml_stress.pl, util/pandora_xml_stress.README: added
    parameter timezone_offset_range to let the timezone be random in the
    range given, and added the code to use it.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2332 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-05 15:27:25 +00:00
Pablo de la Concepción Sanz 7d37597db7 2010-01-25 Pablo de la Concepción <pablo.concepcion@artica.es>
* conf/pandora_server.conf, lib/PandoraFMS/Config.pm,
	lib/PandoraFMS/Core.pm, lib/PandoraFMS/DataServer.pm: Added activate_gis
	configuration parameter, and modified Core.pm and Dataserver.pm to skip
	positional data processing when activate_gis is not activated



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2305 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-25 18:36:23 +00:00
slerena 72653518fc 2009-12-18 Sancho Lerena <slerena@artica.es>
* pandora_server.spec: Added xprobe2 dep (we made the xprobe2 rpm package
	so now it's possible to satisfy dependency). Alter all paths to binary from
	/usr/local/bin to /usr/bin. Other minor issues in RPM fixed.

	* pandora_server_installer: Added description to get deps from zypper and yum.
	Installing services in debian/ubunty systems with update-rc.d. 
	Make check to link from /usr/local/bin to /usr/bin if install
	deploy binary at /usr/local. /usr/bin is the new default.

	* pandora_server_upgrade: /usr/bin as new default. Link issue fixed.

	* DEBIAN/make_deb_package.sh: Fixed Makefile replace regexp to replace all 
	target binary to put then in the jail under /usr/bin path.

	* DEBIAN/postinst: Fixed path for tentacle_server at /usr/bin

	* DEBIAN/prerm: Using native debian commands to remove services.

	* Tools.pm: If there is a problem loading something in the enterprise, show it
	to log.

	* util/pandora_server,
	util/tentacle_serverd: new path to /usr/bin/
	
	* pandora_server.conf: new path for pandora_exec to /usr/bin/

	* util/plugin/udp_nmap_plugin.sh: Check parameters before calling to namp.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2220 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-12-18 18:22:33 +00:00
Ramon Novoa 287a76b751 2009-11-13 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf: Updated configuration tokens.

        * lib/PandoraFMS/SNMPServer.pm, lib/PandoraFMS/Config.pm,
          lib/PandoraFMS/PluginServer.pm, lib/PandoraFMS/PredictionServer.pm,
          lib/PandoraFMS/Core.pm, lib/PandoraFMS/ReconServer.pm,
          lib/PandoraFMS/DataServer.pm, lib/PandoraFMS/NetworkServer.pm,
          lib/PandoraFMS/Tools.pm, lib/PandoraFMS/WMIServer.pm,
          bin/pandora_server: Standardized and improved logging.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-13 13:52:48 +00:00
slerena 80160587a7 2009-10-13 Sancho Lerena <slerena@artica.es>
* util/pandora_server: Incremented shutting down grace time to 60 secs
        because in some systems could take a lot of time to close all threads.

        * conf/pandora_server.conf: Better defaults for Pandora FMS server default
        install.

        * Config.pm: Hey, this is officially RC1....



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2018 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-13 22:47:53 +00:00
slerena 8e5fd3281a 2009-09-25 Sancho Lerena <slerena@artica.es>
* pandora_server.spec: Some fixes to SUSE RPM.

        * conf/pandora_server.conf: Added some missing default values

        * lib/PandoraFMS/Config.pm: Added some missing default values.

        * util/tentacle_serverd, util/pandora_server: SUSE rc.status 
        addon. Need working, SUSE continues giving erratic problems inn
        startup :(




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1972 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-25 00:09:15 +00:00
Ramon Novoa 7097b6ace8 2009-09-02 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf,
          lib/PandoraFMS/Config.pm,
          lib/PandoraFMS/Core.pm: Removed the inhibit_alerts configuration
          token. Alert inhibition is configured on a per-agent basis.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1903 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-02 10:52:57 +00:00
Ramon Novoa 176ae0f6ac 2009-09-02 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf: Added sample configurations for
          inhibit_alerts and use_xml_timestamp.

        * lib/PandoraFMS/Config.pm: Added the inhibit_alerts configuration
          token.

        * lib/PandoraFMS/Core.pm: Added the option to inhibit agent alerts if
          the parent has fired a critical alert.

        * lib/PandoraFMS/DataServer.pm: Use the XML file last modification time 
          if no timestamp is specified.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1902 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-02 09:52:55 +00:00
slerena 8c3452ab60 2009-08-19 Sancho lerena <slerena@artica.es>
* pandora_server.spec: Added nmap to required packages, removed xprobe2.
	
	* lib/PandoraFMS/Config.pm, conf/pandora_server.conf: New token for nmap.
	 
	* lib/PandoraFMS/ReconServer.pm: New parent detection, TCP scanning imple-
	mented using NMAP. Implemented TCP profile scanning.
	
	* lib/PandoraFMS/Tools.pm: Some reordering in pandora_get_os() gives
	more accurate OS guessing. enterprise_hook() now don't yell when enterprise
	is not found :-)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1868 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-19 19:49:55 +00:00
slerena 19d602054c 2009-08-10 Sancho Lerena <slerena@artica.es>
* pandora_server.conf: Removed deprecated parameter: Alert_threshold.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1834 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-10 11:06:09 +00:00
slerena 8af37fc32a 2009-06-23 Sancho Lerena <slerena@artica.es>
* lib/pandoraFMS/DataServer.pm, Config.pm: Fixes bug #2811605. This
        add a new config token to define max files queued to avoid problems
        reading incoming dir with huge number of files.

        * lib/PandoraFMS/Core.pm: Adds new feature to have optional agent
        access graph & data. Included to improve the performance in huge systems



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1766 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-24 16:53:17 +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
slerena ea57a76272 2008-11-11 Sancho Lerena <slerena@artica.es>
* conf/pandora_server.conf: Added mta_user parameter who defines
        mail address used for alerts.

        * pandora_ctl: General control script to start/stop Pandora FMS
        daemons.

        * util/SLES10/*: Alternative start/stop daemons for SUSE and
        other systems that don't work fine with standard scripts.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1239 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-11 12:32:58 +00:00
slerena 39c7377f03 2008-08-28 Manuel Arostegui <marostegui@artica.es>
* conf/pandora_server.conf: Fixed small typo.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1044 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-28 13:47:48 +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 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 24d3cf4077 2007-10-04 Sancho Lerena <slerena@gmail.com>
* conf/pandora_server.conf, lib/PandoraFMS/Config.pm, bin/pandora_network:

        Merged code from NG branch: Added multiping check (global setting 'icmp_checks')
        on network server because in some WAN enviroments with erratic packet loss on non TCP
        connections would cause recurrent false positives. New config token added to config
        file (icmp_checks). Updated default .conf



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@667 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-10-04 10:45:46 +00:00
slerena 45b4556b5e 2007-08-21 Sancho Lerena <slerena@gmail.com>
* conf/pandora_server.conf: Final fixes for default file.

        * lib/PandoraFMS/Config.pm: Fixed stupid typo in snmpconsole parameter.

        * bin/*: Disabled flush for each I/O (ready for production).

	This should be last commit before Beta2 :-)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@607 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-08-21 18:14:40 +00:00
slerena 36c0b32258 2007-07-31 Sancho Lerena <slerena@gmail.com>
* pandora_snmpconsole: Fixed startup scripts. Many checks added to
        manage NetSNMP Trap daemon. Now uses /usr/sbin/snmptrapd by
        default. Solved many problems. This also solve bug #1763691.

        * conf/pandora_server.conf: Added snmp_logfile token (before
        inside CODE!, UGLY!).

        * bin/pandora_network.pl: I hope Fixed BUG #1763305 with Master Server.

        * bin/PandoraFMS/Config.pm: Support for config token snmp_logfile.

        * bin/PandoraFMS/DB.pm: Fixed (stupid) BUG #1763304 with alerts.

        * bin/pandora_snmpconsole.pl: Removed logfile filename from code
        (VERY ugly!).

        * pandora_server, pandora_network, pandora_recon: This also solve
        bug #1763691. Some additional checks included.

        * util/pandora_SNMP_test.pl: Removed, old stuff.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@576 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-07-31 17:26:09 +00:00
slerena 373a98a350 2007-07-20 Sancho Lerena <slerena@artica.es>
* pandora_network.pl: Fixed a typo in pandora_ping_latency function.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@572 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-07-20 10:53:19 +00:00
slerena 3ca171e000 2007-07-18 Sancho Lerena <slerena@artica.es>
* pandora_network.pl: BugFix: SNMP calls that was causing segfauls was
        because NetSNMP (SNMP) library is not thread safe !. Simple locking
        mechanism was enough to run code safely !. Main SQL sentence fixed,
        removed some debug code.

        * pandora_server.conf: added sample of network_thread token



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@566 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-07-18 17:53:17 +00:00
slerena 78dac4b5f2 2007-07-17 Sancho Lerena <slerena@artica.es>
* pandora_server.pl: Small indenting changes.

        * PandoraFMS/DB.pm: Added generic access to database using
        give_db_value() function.

        * pandora_network.pl: Porting code from 2.0 trunk, code from 1.3 was
        too slow. Solved many issues of stability. Changed entire balancing
        and task assigment algorithm.

        * PandoraFMS/Config.pm: Added network_thread config option to
        fine-tune network server.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@565 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-07-17 18:34:38 +00:00
raulmateos 8e3beb755a 2007-06-29 Raul Mateos <raulofpandora@gmail.com>
Pandora Console:
	  * images/lupa.png: better image
	  * operation/reporting/reporting.php: New summary file for reportings
	  * operation/menu.php: Changed code to show new reporting file.
	Pandora Agents:
	  * linux/pandora_agent.conf: Changed log and temp paths.
	Pandora Server:
	  * conf/pandora_server.conf: Changed default incomming dir and log.
	Fixed small bug with dbuser.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@549 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-29 21:25:37 +00:00
marostegui 51eaa1d642 2007-06-28 Manuel Arostegui <marostegui@artica.es>
* pandora_doc/en/pandora_install.xml: Added explanation about
          the new directory which must be created to works
          with the #1744248 feature request.

        * conf/pandora_server.conf: Fixed bug #1744240

        * pandora_server: Added feature request #1744248

        * pandora_recon: Added feature request #1744248

        * pandora_network: Added feature request #1744248



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@547 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-28 12:27:36 +00:00
slerena 2452a7e164 2007-06-07 Sancho Lerena <slerena@artica.es>
Important update. Now all PM files (library) goes on PandoraFMS
        subdirectory from /bin. This should be copied/moved to system
        default Perl libraries (like /usr/lib/perl). All .PM files changes
        it's name.

        We also replace Net::Ping for Alive checks because recently
        problems discovered in packet lenght payload and problems with
        threads. We fallback to Net::Ping::External, now rewrapped to
        PandoraFMS::PingExternal and distributed with PandoraFMS for easy
        deployment.

        bin/*.pm: Renamed to equivalent files in ./bin/PandoraFMS dir

        * bin/pandora_network.pl: Now uses ping() from PingExternal to
        make alive checks. Latency checks is the only function that
        actually needs root now. External Ping could be executed from any
        user (it uses PING from system).

        * bin/PandoraFMS: Now contains all .PM files for PandoraFMS.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@490 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-07 10:30:03 +00:00
slerena 026ffbece4 2007-06-05 Sancho Lerena <slerena@gmail.com>
* pandora_network.pm: Small bug that causes some hosts to do not reply
        at ICMP request with a small payload (1 byte). Now uses by default
        32 bytes per reply.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@486 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-05 18:33:47 +00:00
slerena 5a7cc6bb9f 2007-05-24 Sancho Lerena <slerena@artica.es>
* conf/pandora_server.conf: Added support for dbname option.

        * pandora_snmpconsole: Version and bash header updated.

        * bin/pandora_config.pm: Added support for dbname option. Added
        some default options for DB.

        * bin/pandora_db.pm: Fixed stupid bug in alert execution.  Added
        support for dbname option and other minor fixes.

        * bin/pandora_server.pl,
        bin/pandora_network.pl,
        bin/pandora_snmpconsole.pl,
        bin/pandora_recon.pl:  Added support for dbname option.

        * pandora_server: Version update



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@468 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-05-24 21:14:06 +00:00
slerena 9ebfe51efd 2007-05-03 Sancho Lerena <slerena@artica.es>
* bin/pandora_network.pl: Fix problem with ICMP timeouts.

        * util/pandora_dbstress.pl: Update for new needsupdate fix in some
        DB code. Needs to be improved for specific module/agent selection.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@449 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-05-03 02:15:42 +00:00
marostegui 675964ade9 2007-04-11 Manuel Arostegui <marostegui@artica.es>
* linux/pandora_agent.conf: Changed PATHS to
           adapt them to the upcoming 1.3 release.

        * bsd-ipso/pandora_agent.conf: Changed PATHS to
           adapt them to the upcoming 1.3 release

        * aix/pandora_agent.conf: Changed PATHS to
           adapt them to the upcoming 1.3 release

        * hp-ux/pandora_agent.conf: Changed PATHS to
           adapt them to the upcoming 1.3 release

        * win32/bin/pandora_agent.conf: Changed PATHS to
           adapt them to the upcoming 1.3 release

        * meta_agent/pandora_agent_1.conf, pandora_agent_2.conf,
          pandora_agent_3.conf, pandora_agent_4.conf,
          pandora_agent_5.conf: Changed PATHS to
           adapt them to the upcoming 1.3 release

        * solaris/pandora_agent.conf: Changed PATHS to
           adapt them to the upcoming 1.3 release

        * pandora_server/conf/pandora_server.conf: Changed PATHS
          to adapt them to the upcoming 1.3 release

        * pandora_server/INSTALL: Changed PATHS to adapt them to
          the upcoming 1.3 release



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@420 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-11 14:14:32 +00:00
marostegui 3e5dbe6adc 2007-04-11 Manuel Arostegui <marostegui@artica.es>
* conf/pandora_server.conf: Changed PATHS to adapt them to the
          upcoming 1.3 release.

        * INSTALL: Adapted instructions in order to work with new PATHS
          of the upcoming 1.3 version.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@419 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-11 13:36:43 +00:00
slerena 5774503503 2007-03-29 Sancho Lerena <slerena@artica.es>
* pandora_config.pm: Now stores $pa_config->{'server_id'}
	available for any function in Pandora FMS Server.

	* pandora_db.pm: Several verbosity level adjustements in logger
	functions in all code. Some debug code purged. Alert code now
	should store group correctly in events. Renamed
	"processed_by_server" field from tagente_estado by "running_by",
	updated some code. pandora_updateserver() now stores also server
	version.

	* pandora_network.pm: pandora_serverkeepaliver now run more
	exactly and does not apply any delay. Module selection now uses
	utimestamp AND the new running_by to know that other instance of
	server is currently running this module. TCP code has moved to
	function pandora_query_tcp() -code cleanup-. UDP code deleted
	(doesn't work, and never used!). Fixed important bug in ICMP Proc
	that causes constant FLIPFLOP in monitors since last commit. Fixed
	also a problem from that version updating status timestamp. Lastry
	field only be used now for checking 24hr without updating tdata
	table.

	* pandora_server.conf: Updated some text and formatting, more
	clear now.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@406 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-03-29 10:42:34 +00:00
slerena ea13822a9e 2007-03-23 Sancho Lerena <slerena@artica.es>
* pandora_tools.pm: Added sqlWrap function to manage quotes.

	* pandora_network.pm: MAJOR changes in internal architecture: Now
	uses 10 threads for manage network tasks and one only to keep
	server alive. Now catch TERM signal and log it. New function to
	check UDP services. This should be enought for improve network
	server performance until 2.0 version :-)

	* pandora_db.pm: pandora_calcula_alerta now calls execute_alert
	and clenanup alert code. Fixed bug with Internal audit
	alert. Addded fix from Dassing to pandora_writestate and added
	more fixes for 24hr data problem that include fix
	odule_generic_data.. functions.  pandora_audit () now uses
	utimestamp also.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-03-23 16:04:53 +00:00
slerena 8b1eb59073 2007-03-19 Sancho Lerena <slerena@artica.es>
* pandora_recon: Startup script for recon server.

	* pandora_recon.pl: Major code cleanup. First "complete" version,
	this sould be enought for a while. Works for me.

	* pandora_db.pm: Added generic functions to add incident . Added
	function give_network_component_profile_name(). Now updates
	correctly recon server status in pandora_updateserver function
	call.
	
	* pandora_network.pm: Replaced Net::Ping::External usage with
	Net::Ping library. This should fix many problems with some
	distros. Added pandora_ping_icmp() function to check ICMP boolean.
	
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@398 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-03-19 20:04:37 +00:00
slerena 63cc47342c 2007-03-12 Sancho Lerena <slerena@artica.es>
* util/pandora_dbstress.pl: Upgraded. Now admits one agent or
          all agent.

        * bin/pandora_recon.pl: New network recon server, to autoexplore
        new machines and add to monitorization automatically. Not
        finished, first version, first commit to SVN :-)

        * bin/pandora_db.pm: Now pandora_writestate() writes new fields
        current_interval, processed_by_server into tagente_estado
        table. This increase seeks for Unknown modules, and to know what
        server manage the module (data or network).

        * bin/pandora_server.pl: Small changes in banners.

        * bin/pandora_network.pl: Small changes in banner. Small
        optimization, now server_id is only checked once.

        * bin/pandora_config.pm: Small changes in banner. Added support to
        new reconserver, added config hash "servermode" to maintain a
        single var with servertype. Now renders in console real server
        name at startup and a "all correct" message after initializing.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@393 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-03-12 17:41:58 +00:00
slerena 8468146563 2006-11-30 Sancho Lerena <slerena@artica.es>
* Added updated pandora_agent.LICENCE files (with link to SF
	tracking page).
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@291 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-11-30 17:45:52 +00:00
raulmateos 10c8253981 2006-11-27 Raúl Mateos <raulofpandora@gmail.com>
* pandora_server/data_in: Removed old directory.

	* pandora_server/config/pandora_server.conf: Changed data_in directory to
	/var/spool/pandora/data_in.

	* pandora_agents/win32/installer/Pandora_FMS_Windows_Agent-1.2-Setup.exe: 	Updated with last binary file.
	
	* pandora_agents/win32/installer/pandora.mpi: Update installer script file.
	
	* pandora_agents/win32/installer/Pandora Windows Agent-1.2 Beta3-Setup.exe: 		deleted old file.

	* pandora_agents/win32/bin/pandora_agent.conf: Changed path in server to
	/var/spool/pandora/data_in.

	* pandora_console/general/footer.php: Add variable $time to get time from server 		which PHP < 5.1. Style correction.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@285 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-11-27 21:35:13 +00:00
raulmateos 30638287eb 2006-11-23 Raul Mateos <raulofpandora@gmail.com>
* pandora_server/bin/pandora_config.pm: Updated some text from Linux to
	GNU/Linux. Update build date and final version.
	* pandora_server/config/pandora_server.conf: Changed servername from
	"daeva" to localhost.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@274 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-11-23 10:36:38 +00:00
slerena 36a4788d57 * Fixed minor issues for finish Pandora 1.2 Beta 2.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@103 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-07-06 17:14:19 +00:00
slerena 7b849d903d * Preparing the package for release Beta2 officially.
* Better implementation of configuration file. Now supports also relative paths. More easy to distribute a default config based on base path (thanks to Esteban).
* Updated README and INSTALL documents (also in console directory).
* Added COPYING (GPL2).
* Added AUTHORS.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@78 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-07-03 17:18:19 +00:00
slerena 498a45ad79 * Updated functions pandora_serverkeepaliver and pandora_updateserver to work on instances of server instead of single name. Now instances for servers will be called "xxx_Net" for Network, "xxx_Data" for Data Server, and "xxx_SNMP" for SNMP Server. This way, a individual keepalive will be used for each instance.
* Added the keywork "server_keepalive" for server configuration: Time to check another server is down. Would be nice if all servers in a setup has the same value (reflect this in doc. please!).
* Fixed a stupid issue in numeric data (commas and dots for use real numeric values).... I wish this fix an old bug identified in SourceForge.
* Something more I cannot remeber now, it's 3:44am of Saturdar 1th July... Beta2 need to be finished NOW!.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@69 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-07-01 01:54:36 +00:00
slerena b9d1f3d466 * Changed to SNMP module insted of NET:SNMP, a better results and could get OID with names, not only numeric OID. Tested and works fine.
* Added a small tool to test SNMP functionality (a perl snmpget command using either NET:SNMP or SNMP module).


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@53 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-06-28 17:08:22 +00:00
slerena 0cd002810a Initial Pandora load from our internal SVN
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-03-27 03:37:27 +00:00