Commit Graph

339 Commits

Author SHA1 Message Date
marostegui ceb24a2592 2007-07-11 Manuel Arostegui <marostegui@artica.es>
* bin/pandora_server.pl: Fixed a bug which make
          impossible to figure out what the error was
          (if there was) when launching the pandora_server.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@557 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-07-11 15:22:15 +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 b1d14af51f 2007-06-25 Sancho Lerena <slerena@artica.es>
This should be definitive commit for Beta1

        * Moved pandora_SNMP_test.pl and pandora_DBI_test.pl 




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@542 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-25 12:07:41 +00:00
slerena 474d273e25 2007-06-25 Sancho Lerena <slerena@artica.es>
This should be definitive commit for Beta1

        * General cleanup of unused or old stuff.

        * bin/PandoraFMS/Config.pm: Now uses errorlog for each perl
        error. Now render database bad connect string in connection phase
        (useful to debug startup errors by blank spaces).

        * util/pandora_checkdep.pl: Small perl script to check all
        dependencies.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@541 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-25 12:05:52 +00:00
slerena eb013fbb88 2007-06-25 Sancho Lerena <slerena@artica.es>
This should be definitive commit for Beta1

        * General cleanup of unused or old stuff.

        * bin/PandoraFMS/Config.pm: Now uses errorlog for each perl
        error. Now render database bad connect string in connection phase
        (useful to debug startup errors by blank spaces).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@540 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-25 12:00:11 +00:00
marostegui 68aad3a654 2007-06-25 Manuel Arostegui <marostegui@artica.es>
* specs/fedoracore5/pandora_server.spec: Moving PandoraFMS
          perl modules to the perl directory instead of leaving them
          in the pandora_server main directory.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@536 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-25 07:51:39 +00:00
slerena 4cfafefa36 2007-06-22 Sancho Lerena <slerena@artica.es>
* bin/pandora_recon.pl: This sould be final modifications for recon.
        Fixed a bug reported by Enrique Verdes in the development list.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@535 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-22 14:35:00 +00:00
slerena 54f849ddf7 2007-06-19 Sancho Lerena <slerena@artica.es>
* bin/pandora_recon: Threads is not a good idea, we need to use fork()
        in the future. At this moment, multithread disabled for recon.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@527 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-19 17:10:41 +00:00
slerena 1e561dcdd7 2006-06-19 Sancho Lerena <slerena@artica.es>
* DB.pm: Fixed detail from last commit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@526 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-19 17:05:11 +00:00
slerena 5f9b26d59e 2007-06-19 Sancho Lerena <slerena@artica.es>
* bin/PandoraFMS/DB.pm: Added support to timeframe alerts.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@525 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-19 16:57:48 +00:00
marostegui 69880b487a 2007-06-18 Manuel Arostegui <marostegui@artica.es>
* specs/fedoracore5/pandora_server.spec: Added some useful tips.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@523 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-18 14:11:47 +00:00
marostegui 655f4a7d70 2007-06-18 Manuel Arostegui <marostegui@artica.es>
* specs/fedoracore5/pandora_server.spec: Ready for the 1.3 packaging.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@522 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-18 12:51:02 +00:00
slerena e584e88a18 2007-06-17 Sancho Lerena <slerena@artica.es>
* bin/pandora_server.pl: Now keepalive subprocess uses alert_check
        function fon DB.pm

        * bin/PandoraFMS/Config.pm: Updated version number.

        * bin/PandoraFMS/DB.pm: alert_check function now support
        individual alert disable.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@518 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-17 10:57:25 +00:00
slerena 8bd7e3d589 2007-06-07 Sancho Lerena <slerena@artica.es>
* bin/pandora_network.pl: Net::Ping::External does not solve our
        odd problems. Fallback again to Net::Ping interface, not using a
        double check to be sure that data is good. I hope this works :(



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@493 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-07 17:24:02 +00:00
slerena 3fb26b5fa7 2007-06-07 Sancho Lerena <slerena@artica.es>
* bin/pandora_recon.pl: Now uses ping() from PingExternal.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@491 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-07 10:55:18 +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 7c8d7757ff 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. Also modified icmp_data for latency checks because
        was not using global timeout and has the same problems with small
        payloads.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@487 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-05 18:37:13 +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
raulmateos 0c6bda173f 2007-06-04 Raúl Mateos <rmateos@netscape.net>
* pandora_server, pandora_network, pandora_snmpconsole: Added FMS text.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@485 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-04 13:45:35 +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 a822da5d02 2007-05-21 Sancho Lerena <slerena@artica.es>
* pandora_network: Version banner update.

        * pandora_db.pm: Fixed problem in function
        module_generic_data_inc() that doesn't create record on new
        data_inc modules, only updates if already exists. Fixed and
        tested.

        * pandora_network.pm: pandora_query_snmp() function return 0 if
        cannot stablish connection. Also, snmp_data_proc value of 2 (down)
        is turned to 0 for Pandora FMS. Also, now when cannot connect,
        ONLY UPDATE last_try field, not timestamp field in tagente_estado
        table. I don't know why was in that way until this moment ¿?




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@460 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-05-21 09:12:21 +00:00
slerena 1247536ebc 2007-05-18 Sancho Lerena <slerena@gmail.com>
* pandora_tools.pm, pandora_config.pm, pandora_db.pm: Many small fixes.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@458 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-05-18 12:59:24 +00:00
slerena aa9185d7e3 2006-05-10 Sancho Lerena <slerena@gmail.com>
* pandora_db.pm: Some format / style changes, nofixes.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@455 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-05-10 17:33:34 +00:00
slerena 264b7aa66b 2007-05-07 Sancho Lerena <slerena@artica.es>
* bin/pandora_db.pm: Fixed some problems with quotes and other aditional
	checks.

	* bin/pandora_network.pl: Fixed some problems with quotes and other
	aditional checks.  Detected a serious BUG in snmplib for Ubuntu Freeze
	(already submitted as detected BUG with veryhigh priority). This makes
	pandora network server unusable on feisty until fixed :(. Bug item is in
	https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/65047



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@452 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-05-07 11:45:01 +00:00
slerena dfb5a815ba 2007-05-07 Sancho Lerena <slerena@artica.es>
* bin/pandora_db.pm: Fixed BUG #1714003 for data_inc unit division
        (I hope), need testing.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@451 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-05-07 02:51:39 +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
slerena 7285014751 2007-04-24 Sancho Lerena <slerena@artica.es>
* pandora_db.pm: Added sanity checks to avoid problems when some
        modules coming without names or cannot locate a valid agent.

        * pandora_server.pl: Added sanity checks to avoid unnamed modules




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-24 13:53:34 +00:00
slerena a958e1d0a0 2006-04-21 Sancho Lerena <slerena@gmail.com>
* pandora_db.pm: Now uses disabled field from tgroup, and if is disabled
	  dont fire alers (new feature to temporaly disable alerts in programmed
	  service blackouts).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@440 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-22 01:04:48 +00:00
slerena 5d96811504 2007-04-21 Sancho Lerena <slerena@gmail.com>
* ChangLog: Updated file, last commit was from a production site.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@435 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-21 16:05:47 +00:00
slerena f9d58e6b61 2007-04-21 Sancho Lerena <slerena@gmail.com>
* pandora_tools.pm: Fixed sqlWrap() function.

	* pandora_db.pm: Many changes and fixes: data_inc process function
	almost rewritten to fix a bug coming from 1.x? who causes to
	insert as data the total value for first data arriving... so bad
	:(. This is now fixed. crea_agente_modulo() now return id of
	agent_module created so we skip another timeconsuming query
	:). Added give_group_disabled() for next feature about Group
	Disabled doesnt fire alerts nor events. Fixed crea_agente_modulo()
	with many not defined checks.

	* pandora_network.pm: Fixed terrible bug in reference parameters
	that cause pandora_query_tcp() dont work properly.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@434 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-21 16:02:16 +00:00
slerena 2ae310c69d 2007-04-19 Sancho Lerena <slerena@artica.es>
* pandora_tools.pm: Now expor sqlWrap() function to parse " and '
        chars in some SQL sentences. Use with careful.

        * pandora_network.pm: Fixed little bug with undeclared variable
        warning.

        * pandora_db.pm: Implemented NEW text alerts with regexp. Internal
        audit now uses macros for alerts. Fixed a bug in
        crea_agente_modulo() when uses ' chars in name or module
        description (using sqlWrap to clean text). General code cleanup.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@432 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-19 18:41:55 +00:00
marostegui 2dfaa8b6e3 2007-04-19 Manuel Arostegui <marostegui@artica.es>
* pandora_server/specs/fedoracore5/pandora_server: Added files of the
          new 1.3 version.

        * pandora_agents/linux/pandora_agents.spec: Added links from
          init.d to rc0.d, rc6.d, rc3.d and rc5.d



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@430 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-19 14:20:15 +00:00
marostegui 09dee71b65 2007-04-17 Manuel Arostegui <marostegui@artica.es>
* specs/fedoracore5/pandora_server.spec: Added code to evaluate
          the perl version using by the system.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@424 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-17 05:42:53 +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
marostegui af0395f3c7 2007-04-11 Manuel Arostegui <marostegui@artica.es>
* pandora_agents/linux/pandora_agent.conf, pandora_agents.spec: Changed
          PATHS to adapt them to the upcoming 1.3 release.

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

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

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

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

        * pandora_agents/meta_agent/pandora_agent_sim.sh, pandora_agent_daemon,
          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.

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

        * pandora_server/pandora_network, pandora_snmpconsole, pandora_server
          pandora_recon: Changed PATHS to adapt them to the
          upcoming 1.3 release.

        * pandora_server/specs/fedoracore5/pandora_server.spec: Changed
          PATHS to adapt them to the upcoming 1.3 release.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@418 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-11 12:52:04 +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 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