Commit Graph

1051 Commits

Author SHA1 Message Date
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 271acdd997 2007-02-22 Sancho Lerena <slerena@artica.es>
* bin/pandora_dbstress.pl: Deleted, valid one is on /util

	* util/crea_modulos_ping.php: This tool create two modules for
	each existing agents. Used to create ICMP PROC and ICMP DATA
	network module types to test new Network infraestructure.
	
	* util/lista_ip.txt: Our testing IP field :-)
	
	* util/agent_creator.php: This PHP console script create a bunch
	of agents with it's modules (500 agents with 20 modules each by
	default) to test huge environments.
	
	* util/pandora_dbstress.pl: Updated.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@383 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-02-22 19:44:06 +00:00
slerena 55f88630da 2007-02-16 Sancho Lerena <slerena@artica.es>
* pandora_db.pm: Now updates and uses utimestamp fields in
	tagent_data, tagent_data_string and tagent_status.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@375 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-02-16 18:33:52 +00:00
marostegui 5a3a4bca7f 2007-02-01 Manuel Arostegui <marostegui@artica.es>
*  pandora_server/specs/fedoracore5/pandora_server.spec:
           Fixed small bugs with some .pm files behaviur and logs
           paths.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@369 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-02-01 12:32:39 +00:00
marostegui efab431733 2007-01-23 Manuel Arostegui <marostegui@artica.es>
*  pandora_server/specs/fedoracore5/pandora_server.spec:
           /var/log/pandora was not created with the correct perms,
           fixed.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@367 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-01-23 08:37:10 +00:00
marostegui 0c7b0aa8c1 2007-01-20 Manuel Arostegui <marostegui@artica.es>
*  pandora_server/specs/fedoracore5/pandora_server.spec:
           Fixed more nosenses related with symlink



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@365 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-01-20 09:17:16 +00:00
marostegui 8e88b038d1 2007-01-20 Manuel Arostegui <marostegui@artica.es>
*  pandora_server/specs/fedoracore5/pandora_server.spec:
           Fixed some nosenses



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@364 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-01-20 09:01:12 +00:00
marostegui f6ad83ebe2 2007-01-16 Manuel Arostegui <marostegui@artica.es>
* pandora_server/specs/fedoracore5/pandora_server.spec: Fixed
          bug #1636585.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@361 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-01-16 08:56:00 +00:00
marostegui 4c06c2dd1b 2007-01-08 Manuel Arostegui <marostegui@artica.es>
* pandora_agents/linux/pandora_agents.spec: Changed group.
	
	* pandora_console/pandora_console.spec: Changed group.
	
	* pandora_server/specs/fedoracore5/pandora_server.spec:
	  Changed group.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@355 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-01-08 09:05:32 +00:00
marostegui 47b6569a1e 2007-01-03 Manuel Arostegui <marostegui@artica.es>
* trunk/pandora_agents/linux/pandora_agents.spec: Added
	  dependencies.

	* trunk/pandora_server/specs/fedoracore5/pandora_server.spec:
	  Added dependencies.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@348 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-01-03 10:15:14 +00:00
marostegui bcad7e91b9 2007-01-03 Manuel Arostegui <marostegui@artica.es>
* pandora_server/specs/fedoracore5/pandora_server.spec: Fixed small bug with 
	  .pm files. Fixed a PATH slip-up.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@347 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-01-03 08:21:46 +00:00
marostegui 3fdb78761d 2007-01-02 Manuel Arostegui <marostegui@artica.es>
* pandora_agents/linux/pandora_agents.spec: 
	  Added new PATHS for config files and binary
          ones. Fixed perms. Change Summary due to a typo bug.
       
        * pandora_console/pandora_console.spec: Added man pages.
 
        * pandora_server/specs/fedoracore5/pandora_server.spec: Added to reposistory.
          Completly re-write pandora server spec file, now it package everything.
 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@346 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-01-02 11:32:02 +00:00
marostegui 11cec0c5c2 2006-12-22 Manuel Arostegui <marostegui@artica.es>
* pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec: Fixed some
           nonsenses.

         * pandora_server/specs/rhel/perl-Pandora-1.2.spec: Much more polished
           spec file.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@333 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-12-22 09:53:57 +00:00
marostegui e362a597ac 2006-12-22 Manuel Arostegui <marostegui@artica.es>
* pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec: Much more
          polished spec file. Lot of changes made. Added notes as a remind
          after installation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@332 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-12-22 09:39:11 +00:00
marostegui 8b3cb81fb9 2006-12-21 Manuel Arostegui <marostegui@artica.es>
* pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec: Changed
          named, this is not a beta anymore. Also added Release:1

        * pandora_server/specs/rhel/perl-Pandora-1.2.spec: Changed
          named, this is not a beta anymore. Also added Release:1



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-12-21 09:37:32 +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
slerena 4288368137 2006-11-29 Sancho Lerena <slerena@artica.es>
* pandora_server/pandora_server.pl: Fixed BUG #1604778.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@288 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-11-29 10:33:41 +00:00
slerena 1296318795 2006-11-28 Sancho Lerena <slerena@artica.es>
* pandora_doc: Updated styles, added ER diagram and finished
	revision. Generated "correct" PDF versions. Possibly final versions :-)

	* Other stuff: Fixed several SVN conflicts in my repository
          and updated several ChangeLogs that I dont commit.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@286 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-11-28 14:00:38 +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
marostegui 671ef464cd 2006-11-27 Manuel Arostegui <marostegui@artica.es>
* pandora_server/specs/fedoracore5/perl-Pandora-1.2-beta3.spec:
          Missing Changelog section, added.

        * pandora_server/specs/rhel/perl-Pandora-1.2-beta3.speci: Missing
          Changelog section, added.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@283 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-11-27 09:09:27 +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
marostegui fa815a6bc4 2006-11-22 Manuel Arostegui <marostegui@artica.es>
* pandora_server/specs/fedoracore5/*, pandora_server/specs/rhel/*: Added
          to repository. Added specs files for Fedora Core 5 and RHEL.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@271 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-11-22 13:07:52 +00:00
slerena bf09edfd62 2006-11-13 Sancho Lerena <slerena@artica.es>
* /bin/pandora_config.pm: Added $VERSION variable to be used for
	packagers.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@256 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-11-13 11:37:07 +00:00
slerena 390c4f0d49 2006-10-30 Sancho Lerena <slerena@artica.es>
* /bin/pandora_snmpconsole.pl: Now type description will be used if
        no user value is provided. More descriptive SNMP console without MIB
        translation (for 1.3 will be a basic MIB translation to descriptive
        OID).


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@242 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-10-31 12:26:12 +00:00
raulmateos ff682a8730 2006-09-29 Raul Mateos <raulofpandora@gmail.com>
* pandora_server/bin/*.pl and *.pm: Updated some comments from
	Spanish to English. Update build date.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@197 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-09-29 12:29:36 +00:00
slerena 7f4a04d6a6 2006-09-29 Sancho Lerena <slerena@artica.es>
* bin/pandora_db.pm: Fixed last commit BUG :-)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@194 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-09-29 09:02:06 +00:00
slerena eb0bdba812 2006-09-29 Sancho Lerena <slerena@artica.es>
* bin/pandora_db.pm: Fixed small problem when undefined vars are
	referenced (min, max, descripcion) on line 1420+. (on Raul request).
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@193 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-09-29 08:34:38 +00:00
slerena 2fdfe5d5b5 2006-09-21 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Altered tagente_datos field "datos" to have
	DOUBLE(18,2) instead of DOUBLE (12,2).

	* pandora_db1.1_to1.2.sql: Altered tagente_datos field "datos" to
	have DOUBLE(18,2) instead of DOUBLE (12,2).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@183 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-09-21 16:30:34 +00:00
slerena 5ad3d10529 2006-09-13 Sancho Lerena <slerena@artica.es>
* pandora_network.pl: Fixed problems with OID index. Perl needs to
	referente a .0 index, like SNMPv2-MIB::sysDescr.0 as
	SNMPv2-MIB::sysDescr. Also, other numerical indexes are referenced
	different from system SNMP or PHP. IF-MIB::ifDescr.3 is
	IF-MIB::ifDescr.2 for PERL's SNMP.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@167 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-09-13 11:32:46 +00:00
slerena d342a11425 2006-08-30 Sancho Lerena <slerena@gmail.com>
* pandora_agent/ChangeLog: Created and added to repository

	* pandora_server/ChangeLog: Created and added to repository

	* pandora_console/CHANGELOG: Renamed to ChangeLog

	* pandora_console/reporting/*.php: Replaced old code with new
	code for trunk. Deleted old_jpg_functions directory from
	repository




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@155 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-08-31 23:54:13 +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 4e6270f73b * pandora_network.pl: Now launch 3 threads, one for each of this network modules: ICMP, TCP/UDP and SNMP. This will improve the max. capacity of each network server. This code was copied from Pandora Data Server code.
* pandora_db.pm: Corrected a small problem in server keepalive function. Now works fine, and create an event when server going up or server going down (also a Log line).
* pandora_server.pl: Fixed a damm bug when server was running in daemon: keepalive check function doesnt exec because thread starts before daemonize call. Fixed and workaround copied to Network Server code.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@74 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-07-02 21:31:08 +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
raulmateos 52765cfa4e Fixed small bug in the new SNMP function (purge all NULL results, etc)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@65 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-06-29 22:04:17 +00:00
slerena fdfee7fe40 * Licence banner change (for more accurate information about GPL and copyrights in all files of this commit.
* pandora_db.pm: Fixed a debug message written in console when inserting a new event.
* pandora_snmpconsole.pl: No longer use the NET:SNMP module, we use now SNMP module.
* Some of calls to log with low debuglevel are increased to write a bit less garbage into log.
* Added pandora_SNMP_test.pl to test SNMP functionality and perl module operatibility

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@63 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-06-29 19:37:46 +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 1ea01ea357 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@45 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f 2006-06-06 00:22:06 +00:00
slerena 57cfe9b833 Nothing
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@44 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-06-06 00:20:59 +00:00
slerena de05a4ffff File to test MemoryLeak in perl DBI modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@43 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-06-06 00:17:57 +00:00
slerena a8ea16dd94 Fixed small bug, redeclaration of temp variable in line 757.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@42 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-06-05 21:14:22 +00:00
slerena 05bcaf8ad4 Pandora DB Stress utility, now in /bin directory, with a small
documentation/description of functionality. Yes, VERY small :-)


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@41 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-06-05 20:53:45 +00:00
raulmateos 29ad02df80 - Small Changes in some text (Pandora Server)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@34 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-05-29 15:01:50 +00:00
raulmateos 524a01ccea - Small Changes in some text (Pandora Server)
- Small bug solved in the highlight of one option in Operation Menu (Pandora Console)

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@33 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-05-29 15:00:39 +00:00
raulmateos ed22c629ca - Update messages in Pandora Server
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@27 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-04-27 17:41:32 +00:00
raulmateos 7ddffb7723 - Update README info
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-03-31 11:27:53 +00:00
raulmateos f7809338ae - Clear logs
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-03-31 11:21:55 +00:00
raulmateos c500d6e2cf - Clear logs
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-03-31 11:20:57 +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