Commit Graph

52 Commits

Author SHA1 Message Date
slerena b6e45a9d99 2008-06-18 Sancho Lerena <slerena@gmail.com>
* pandoradbdata_13_to_20.sql: prototype. not functional.

    * operation/events/export_csv.php: Event export to CSV. Support
    passed filters.

    * images/networkmap/*.png: Updated icons for network map.

    * godmode/menu.php,
    * godmode/db/db_sanity.php: New sanity tool for database in interactive
    mode using console (ported from pandora_db.pl).

    * reporting/fgraph.php: Added graphs for string data types. Fixed
    event by agent/module graph for system events.

    * general/logon_ok.php, tactica.php: Fixed a div0.

    * godmode/agentes/manage_config.php: Several fixes, and added a new
    option to mass-deletion of agents.

    * godmode/agentes/agent_manager.php,
    godmode/agentes/modificar_agente.php: Delete of remote configuration
	when delete an agent and manually, by user. 

    * operation/servers/view_server_detail.php: Added refresh option and 
    fixed layout.

    * status_monitor.php: Added new filter by state, most code rewritten.
    Added pagination fixes, and corrected labels and legends.

    * operation/agentes/networkmap.php: Several fixes and modification to 
    render small maps and huge (>200 agents) maps. This should be fine by
    now. Need "Group/Section" drawing /by click into section line/.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@880 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-19 00:24:05 +00:00
Esteban Sanchez cfd8d08561 2008-06-17 Esteban Sanchez <estebans@artica.es>
* pandoradb.sql: Drop foreign key of inexistent column.

        * godmode/reporting/reporting_builder.php: Fixed order when deleting a 
        report content. Deleted id_agent reference from treport (local
        inconsistence is the reason why I couldn't see it before), also
        id_user insertion was failing. Added a link to view group on report
        form. Added module column on report content list. Use id_user from
        config object.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@872 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-17 16:03:33 +00:00
Esteban Sanchez 00b5a1eaec 2008-06-17 Esteban Sanchez <estebans@artica.es>
* ajax.php: Added to repository. AJAX interface for Pandora. A new
	time is coming...

	* pandoradb.sql: Added id_group to treport. A report is now assigned
	to a group of agents. Changes in treport_content to add an order
	field, drop sla fields and use an enum for the type. NOTE: This will
	break all your current defined reports, update under your
	responsabillity. Added table treport_content_sla_combined to define
	SLAs in the SLA types reports.

	* godmode/reporting/graph_builder.php: Use Pandora functions. Adde
	javascript code to display the module icon when changing from the
	dropdown menu.

	* godmode/reporting/reporting_builder.php: Almost complet rewritten to
	use Pandora HTML functions. Style correction.

	* include/functions.php: Added new report types. Style correction.

	* include/functions_db.php: Use Pandora database functions to get
	simple values. Added functions get_agents_in_group(),
	get_modules_in_agent(), get_simple_alerts_in_agent(),
	get_combined_alerts_in_agent(), get_alerts_in_agent(),
	get_monitor_downs_in_period(),
	get_monitor_last_down_timestamp_in_period(),
	get_alert_fires_in_period(),
	get_alert_last_fire_timestamp_in_period(). Deleted debug output and
	fixed calling to an inexistent function in
	return_moduledata_sum_value().

	* include/functions_html.php: Tab style correction. Thanks to Ramon
	for the advice. Fixed some errors on print_table that was causing not
	to work fine if rowclass or colspan was defined.

	* include/functions_reporting.php: Adde date support to
	return_module_SLA(), event_reporting(). Added alert_reporting(),
	monitor_health_reporting(), general_group_reporting() and
	agents_detailed_reporting() to implement new report types. Style
	correction.

	* include/javascript/pandora.js: Added html_entity_decode() function
	to decode some AJAX results.

	* javascript/jquery.js: Added to repository. jQuery version 1.2.4a

	* include/javascript/jquery.timeentry.js: jQuery plugin to manage time
	inputs.

	* include/javascript/jquery.ui.datepicker.js: jQuery plugin to manage
	date inputs in a dropdown calendar.

	* include/languages/date_*.js, include/languages/time_*.js: Added to
	repository. Translation of date and time strings for the new calendar
	javascript support.

	* include/languages/language_en.php: Added new strings relatives to
	reports.

	* include/languages/language_de.php,
	include/languages/language_fr.php, include/languages/language_gl.php,
	include/languages/language_pt_br.php: Fixed a variable name.

	* godmode/groups/group_list.php: Avoid the use of an extra indentation
	by returning if no success on comprueba_login().

	* include/styles/pandora.css: Add some classes. Tab style correction.

	* operation/agentes/ver_agente.php: Added AJAX support to agent
	operations.

	* operation/reporting/graph_viewer.php: Period dropdown selection
	improved and printed with Pandora functions.

	* operation/reporting/reporting_viewer.php: Massive rewritten.
	Implemented date and time support, added new report types, use Pandora
	functions...

	* reporting/fgraph.php: Documentation fix. Added a new graphic to show
	monitors health.

	* godmode/agentes/agent_manager.php,
	operation/reporting/custom_reporting.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-17 14:30:44 +00:00
slerena 8fbed5f59f 2008-06-13 Sancho Lerena <slerena@gmail.com>
* index.php: Added pure (Fullscreen). HTML code cleanup and user session.
    
    * pandoradb.sql: talert_snmp: Added priority field. 
    
    * pandoradb_data.sql: Changes default values in talerta. tconfig_os, tgrupo
    and some links.
    
    * header.php: Fixed some user session management.
    
    * logon_ok.php: New design for welcome screen, odometer is over.
    
    * menu.php, godmode/menu.php: Some ACL improvements.
    
    * agent_disk_conf_editor.php: Minor fix in view link.
    
    * configurar_agente.php, agent_manager.php: Added parent combo and better
    ACL checks. New remote configuration control for get timestamp info of
    config file.
    
    * modify_alert.php: Changes to use new internal Mail alert.
    
    * config.php: Some items moved to config_process. (font, attachment and 
    default style).
    
    * functions.php: Added form_agent_combo(), form_event_type_combo(),
    form_priority() and return_priority() functions.
    
    * functions_db.php: Added smal_event_table() to render a variable table
    with latest events (filtered).
    
    * pandora.css. Added pure and priority colors.
    
    * estado_alertas.php: Fixed ACL problems.
    
    * stado_generalagente.php: Graph of modules now represents modules that
    has generated events. Old graph is not used anymore. Also display parent.
    
    * estado_grupo.php: Border of boxes is now thicker.
    
    * tactical.php: New screen, almost all code changed. Odometer is not used
    anymore, added some new items, like module LAG meter, module sanity, and
    other general metrics.
    
    * ver_agente.php: Now renders also event for each agent view. Alert manual
    validation generate a new event.
    
    * events.php: New event system. 90% new code. A LOT of new features, 
    including full screen, coloured (by priority) and filters by six fields.
    
    * snmp_alert.php: Added support for alert priority.
    
    * operation/users/user.php: No longer a user with UM privileges could
    see any other user.
    
    * render_view.php: Added fullscreen support for visual maps.
    
    * fgraph.php: Added support for session checking in graphs (at least!).
    New graphics for events (some changed it's function like events by group),
    and feature added to progress GD implementation. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@860 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-13 16:59:54 +00:00
slerena dcea995ade 2008-06-10 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Updated tevent structure. Added criticity and 
    other important and new fields.

    * pandoradb_data.sql: Added "remote_config" token for setup.

    * setup.php: Added support for token remote_config.

    * config_process.php: Added support for token remote_config.

    * incident_detail.php: Solved small problems in attachment.

    * snmp_view.php: Solved small problems in pagination.

    * fgraph.php: Added support to generate graphs on any interval 
    in time, not only "last XX". Need to implement user interface
    controls to work with it.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@842 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-09 10:48:11 +00:00
slerena 71b4261d5d 2008-04-24 Sancho Lerena <slerena@artica.es>
* operation/reporting/reporting_viewer.php,
    operation/reporting/graph_viewer.php
    include/functions_reporting_pdf.php: Render stacked custom graphs.

    * include/styles/pandora_red.css: Improved RED style :-)

    * include/styles/pandora.css: Added background.

    * include/languages/language_en.php: Added stacked token.

    * pandoradb.sql: Added field "stacked" to custom graphs.

    * images/backgrounds/background_red.gif: Added cool background ;)

    * reporting/fgraph.php: stacked custom graph support.

    * godmode/db/db_main.php: Uses new config tokens.

    * godmode/db/db_purge.php: Works also with "all" agents (like 1.1)

    * godmode/reporting/graph_builder.php: Able to define stacked or not.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@819 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-23 23:29:50 +00:00
slerena b464bcc544 2008-04-09 Sancho Lerena <slerena@gmail.com>
* AUTHORS: Updated.

        * pandoradb.sql: Added new index proposed for tagente_datos.

        * upgrade.php: Disabled until was functional.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@802 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-09 14:50:15 +00:00
slerena 5b65d42409 2008-04-09 Sancho Lerena <slerena@gmail.com>
* pandoradb.sql: New header.

	* pandoradb_data.sql: Removed /**/ comments, due problems with
	installer.

	* install.php: Updated installer for 2.0 version.

	* functions.php: Fix small problem in pandora_help() with icon.

	* estado_alertas.php: Do not show header "combined alert" if there
	is no complex alerts.

	* reporting_viewer.php: Round data for monitor SLA report.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@796 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-06 22:18:33 +00:00
slerena 9855c65076 2008-04-03 Sancho Lerena <slerena@gmail.com>
* pandoradb_data.sql: IA to prediction in description.

    * pandoradb.sql: Added priority to alert and custom recovery fields.

    * include/styles/tip.css, include/styles/pandora.css: New styles
    for tooltip info (combined and alerts) and some changes in frames for
    agent management / view.

    * include/functions_db.php: Added check_server_status() function to check
    from console server status. If in 15 minutes there is no updated keepalive
    from any server, they will be marked as down. And function return down. 
    This function is now called on each page. Added funtions to display alert
    status in a tooltip.

    * include/languages/language_en.php: More strings.

    * include/functions.php: Added several funtions to simplify alert report.

    * operation/agentes/estado_alertas.php: Updated. Shows also combined 
    alerts and give a lot of information in different tooltips.

    * operation/agentes/estado_ultimopaquete.php: Clean blank spaces in URL.

    * operation/agentes/estado_monitores.php: now is possible to force a
    module refresh from main view.

    * operation/agentes/ver_agente.php: Tab has been upgraded.

    * images/mod_data.png,
      images/mod_data_inc.png
      images/mod_proc.png
      images/mod_keepalive.png
      images/mod_string.png: Added new type icons and updated old ones.

    * general/header.php: Global check for servers and autorefresh control.

    * godmode/agentes/alert_manager.php: New alert management for combined
    alerts, visualization, etc.

    * godmode/agentes/configurar_agente.php: Included new alert management.

    * godmode/agentes/alert_manager_editor.php: New alert management editor.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@791 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-03 15:43:34 +00:00
slerena 5d9b702454 2008-04-01 Sancho Lerena <slerena@gmail.com>
* pandoradb_data.sql: Alert type 0 is not 1. 1-3 are reserved. Removed 
    prediction module (nosense since it uses normal modules).

    * include/functions_db.php: Added wrapper give_db_value to get_db_value
    because A LOT of code uses old syntax and this makes too many errors.

    * include/functions.php: Fixed pagination issues with blocksize config.

    * pandoradb.sql: Change alert command lenght and added some comments
    for future implementation of alert criticity and others.
 
    * operation/incidents/incident.php: Fixed some bugs calling to old
    funcions / variables.

    * operation/events/events.php: Fixed some bugs calling to old
    funcions / variables. Removed graph and simplified header.

    * operation/agentes/estado_alertas.php: Changed get_db_value call
    and removed (Raul) button to create alert from here.

    * operation/agentes/estado_grupo.php: Implemented support for optional
    view of down modules and fired alerts.

    * operation/agentes/ver_agente.php, 
    operation/agentes/datos_agente.php: Uses of new get_db_value and
    new session id variable.
    
    * images/mod_async_string.png: Added image.

    * images/mod_async_inc.png: Added image.

    * images/mod_image_png.png: Added image.

    * images/mod_async_data.png: Added image.

    * images/mod_async_proc.png: Added image.

    * images/mod_image_jpg.png: Added image.

    * godmode/setup/setup.php: Several fixes.

    * godmode/agentes/alert_manager.php: Several changes for new alert manager. 
    Not finished. Interim commit.

    * godmode/agentes/configurar_agente.php: More changes needed to alert editor.

    * godmode/agentes/alert_manager_editor.php: New file for alert management.

    * godmode/modules/module_list.php: Some updates, removed invalid column.

    * godmode/alerts/modify_alert.php: Alert types < 4 cannot be modified (this
    includes combined, internal audit and Pandora FMS log).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@783 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-01 13:53:11 +00:00
slerena 97cda20640 2008-03-23 Sancho Lerena <slerena@gmail.com>
* pandoradb.sql: Upgraded SQL schema for Pandora FMS 2.0

        * pandoradb_13_to_20: Moved filename (renamed). This don't work yet.

	* README: Deleted. Not used anymore.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@768 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-26 16:47:39 +00:00
slerena 01e41b1710 2008-03-13 Sancho Lerena <slerena@gmail.com>
* include/functions_db.php: Added show_server_type (): Return a string
        containing image tag for a given target id. Updated some generic db
        access calls to new function names.

        * pandoradb.sql: Removed unused field.

        * operation/agentes/estado_generalagente.php: Some fixes for new schema

        * reporting/stat_win.php: Uses new $config hash.

        * godmode/agentes/module_manager.php: Some fixes. Added visualization
        for module type (by server type).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@748 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-13 18:57:21 +00:00
slerena 0f60a3f6ca 2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0

        * pandoradb_data.sql: Added correct tnetwork_components, fixed
        ttipo_modulo (categoria values).

        * include/styles/pandora.css: Added some server icons, tab style
        for module editor has been improved.

        * include/functions_db.php: added new functions, lang_string and
        check_login, and a first review of several functions that currently
        need change for new config session parameters in array $config[]

        * include/javascript/pandora.js: Added a new global include for
        spare javascript functions before included into a few pages.

        * include/languages/language_en.php: New tokens.

        * include/help*: New contextual help system.

        * include/config_process.php: New way to manage config.

        * include/functions.php: Added new functions to manage global

        * operation/agentes/estado_ultimopaquete.php: removed old javascript
        code from there.

        * operation/agentes/estado_agente.php: Removed references to deprecated
        field "agent_type".

        * operation/agentes/tactical.php: Some code cleanup and progressbar 
        issues merged from 1.3.1 branch. Need to add support to new server 
        types and new module types.

        * operation/servers/view_server.php: Added support to new servers, code
        cleanup.

        * reporting/fgraph.php: Code cleanup, changes to use new config method,
        and a lot of style change. 

        * general/pandora_help.php: New source for contextual help in the way 
        of moodle.

        * general/footer.php, general/noaccess.php: Code cleanup and uses of
         new config.

        * module_manager_editor: New editors for each module family. Need
         finish and implement EDITION of data, now only inserts data.

        * godmode/agentes/agent_manager.php: Implemented new server assigment
         and edition. 

        * godmode/agentes/configurar_agente.php: Small changes that affects 
        module management, visualization and agent management.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 16:22:16 +00:00
slerena 87f3dc06a4 2008-02-25 Sancho Lerena <slerena@gmail.com>
* pandoradb_data.sql, pandoradb.sql: Modified, added and altered 
        SQL structure. This is a final aproximation to 1.4 version. Probably
        more changes are coming in the next future before to close 1.4 database
        definition.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@726 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-02-25 18:08:52 +00:00
slerena a516087894 2008-02-21 Sancho Lerena <slerena@gmail.com>
* Added new structures for predictive module, plugin server, and other
        planned functionalities for 1.4.x version.

        * Merged code from 1.3.1 branch.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@724 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-02-21 15:16:54 +00:00
slerena 38a03d9978 2008-01-10 Sancho Lerena <slerena@gmail.com>
Code merged from 1.3.1 branch:

        * functions_db.php: Some changes in future generic SQL interface access.

        * pandora_console/include/functions.php: Added generic acces to HTTP 
        parameters.

        * status_monitor.php: Fixed problems detected by Pierre Gaxatte.

        * estado_agente.php: Fixed the same kind of problems (ACL / Group acces)
        and added a Agent search field as request by J.Corona.

        * tactical.php: Rename of generic SQL function access.
        
        * view_server.php: Rename of generic SQL function access.

        * modificar_agente.php: Fixed some render problems, added a Agent search
        option and better formatting.

        * configurar_agente.php: New management for KeepAlive module.

        New code for 1.4 development branch (trunk)

        * pandoradbdata_13_to_14.sql: Migration SQL (data) code from 1.3 to 1.4

        * pandoradb_13_to_14.sql: Migration SQL (schema) code frrom 1.3 to 1.4

        * pandoradb_data.sql: Modified code to fresh install SQL data.

        * pandoradb.sql: Modified code to fresh install SQL schema.

        * index.php,
        * install.php: new version info.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@700 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-01-10 16:40:00 +00:00
slerena 1aae32eedf 2007-12-16 Sancho Lerena <slerena@gmail.com>
* pandoradb.sql: New field for tagente_modulo: disabled, to be
        able to disable individual modules on an agent.

        * index.php: Version number is now officially "1.4dev". There is 
        a long way to finish 1.4.

        * operation/servers/view_server_detail.php: FIX. If no tasks, show
        a little message.

        * images/console/icons/smalldot*: New small graph for graph console.

        * reporting/fgraph.php: FIX. Combined graphs with components of scale =1
        does not readjust automatically.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@683 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-12-16 23:56:31 +00:00
slerena a231aaa397 2007-12-14 Sancho Lerena <slerena@gmail.com>
* pandoradb.sql: BUG FIXED, generic_data_inc data don't work with 
        small float data. Need to alter tagente_datos_inc table for field
        "datos.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@681 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-12-13 22:51:37 +00:00
slerena 86f9d2dcbd 2007-08-20 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Used UTF-8 by default

        * index.php. UTF-8 Default.

        * README: Updated texts for Readme.

        * INSTALL: Deteled old stuff



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@605 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-08-20 15:32:27 +00:00
slerena 0590bc5aee 2007-08-06 Sancho Lerena <slerena@gmail.com>
* pandoradb.sql, alert_manager.php: Alert time support uses TIME format
        instead numeric (changes requested by esanchezm).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@593 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-08-06 15:50:05 +00:00
slerena 1c3572bc00 2007-07-18 Sancho Lerena <slerena@artica.es>
* include/functions_reporting.php: With last change in server, we
        have control of not initilizated modules (those who never got
        data/contact), we need to take care of them here.

        * pandoradb.sql: last_execution_try field is added to
        tagente_estado to be able to keep last execution try from network
        server, later method was incompatible with automatic compatation
        of data and with data server.

        * operation/agentes/estado_grupo.php: Unknown data not includes
        non initialized data. It's possible that need to make changes of
        this kind in other files because the nature of the problem
        detected.

        * operation/agentes/tactical.php: BugFix: LAG is now correct and
        makes reference to the oldest module that has been processed. Also
        are shown non initialized data.


        * operation/servers/view_server.php: BugFix: LAG is now correct
        (see above).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@567 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-07-18 18:01:06 +00:00
slerena ff334cefc8 2007-06-21 Sancho Lerena <slerena@artica.es>
* include/languages/language_en.php: More new tokens added.

        * include/functions.php: Added function render time for alert time
        limiters format (multiplier of 30).

        * pandoradb.sql: Added support for alert time limiters format.

        * operation/visual_console/render_view.php: Added support for
        single lines a few fixes.

        * images/console/background/globalmap.jpg: Nice world background.

        * images/console/icons/computer.png: Added new icon for workstation.

        * godmode/agentes/configurar_agente.ph,
        godmode/agentes/alert_manager.php: Added support for alert time
        limiters.

        * godmode/reporting/map_builder.php: Tool to build/manage maps
        elements. Finished!.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@529 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-21 15:48:47 +00:00
slerena b063fcbb07 2007-06-17 Sancho Lerena <slerena@artica.es>
* include/languages/language_en.php: Just a few words added.

        * pandoradb.sql: Added disable field for alerts.

        * operation/agentes/estado_alertas.php: Show disabled alerts.

        * godmode/agentes/configurar_agente.php,
        godmode/agentes/alert_manager.php: Allow to disable individual
        alerts.

        * godmode/reporting/map_builder.php: First version of map
        builder. It doesnt work yet, but has some features implemented.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@516 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-17 10:34:39 +00:00
slerena effc9b3c70 2007-06-08 Sancho Lerena <slerena@artica.es>
* include/languages/language_en.php: New strings

        * include/functions_reporting.php: Added generic function to parse
        information of all monitors / data checks for statistical usage in
        several sections of console.

        * pandoradb.sql: Updated field "timestamp" of tnews table.

        * operation/agentes/estado_grupo.php: Better management of unknown
        monitors, this should fix odd behaviour detected.

        * operation/agentes/tactical.php: New tactical view.

        * operation/menu.php: New option for group view and
        tactical. Default option now is tactical view.

        * images/backgrounds/background4.jpg: Updated background.

        * reporting/Image/Graph/Plot/Odo.php: Fixed warning in original code.

        * reporting/Image/Canvas/GD.php: Again playing with canvas options.

        * reporting/fgraph.php: New odo graph.

        * general/logon_ok.php: New welcome screen :-)

        * godmode/setup/news.php: New news manager.

        * godmode/reporting/map_builder.php: Future map/visual console
        editor, not ready yet.

        * godmode/menu.php: Updated a few options.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@498 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-08 15:55:53 +00:00
slerena 47579d155d 2007-06-07 Sancho Lerena <slerena@artica.es>
* include/styles/god.css: Added god51 (reporting).

        * include/styles/pandora.css: Added h4 (for reporting).

        * include/functions_db.php:

        * include/functions_reporting.php: Reporting functions should be
        here. Now is SLA, tomorrow will be more ;)

        * include/functions.php: Added generic POST/GET parameter
        management, and a few functions to mangle dates.

        * pandoradb.sql: A few changes on treport_content table.

        * operation/agentes/datos_agente.php: Added option to delete
        individual data from here. Useful to purge bad data.

        * operation/reporting/reporting_viewer.php: New report viewer on
        HTML.

        * operation/reporting/custom_reporting.php: Moved.

        * operation/reporting/graph_builder.php: Moved to godmode
        directory.

        * operation/menu.php: Added few options and removed other
        (Reporting)

        * reporting/fgraph.php: Few changes to use graphs in reports
        without titles.

        * godmode/reporting: Added.

        * godmode/reporting/reporting_builder.php: The Pandora FMS report
        editor :-)

        * godmode/reporting/graph_builder.php: Graph builder almost done,
        only a few bugs to finish.

        * godmode/menu.php: New reporting options in godmode menu.





git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@494 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-06-07 17:46:38 +00:00
slerena f186f7ab72 2007-05-23 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Added field to tlayout_data (no_link_color)




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@464 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-05-23 06:11:08 +00:00
slerena 32d96a89a0 2007-05-20 Sancho Lerena <slerena@artica.es>
* pandoradb_data.sql: Uptated network component data.

        * include/styles/pandora.css: Few updates for style.

        * include/functions_db.php: Added functions for visual console
        features.

        * include/languages/language_en.php: New strings.

        * include/javascript: Moved all javascript files here.

        * include/javascript/x_slide.js, include/javascript/x_event.js:
          Copied from branch / console from Azabel.

        * include/javascript/wz_jsgraphics.js: New functions to draw
        lines.

        * pandoradb.sql: Created new tlayout and tlayout_data tables.

        * index.php: Small changes. Added support to refresh any page via
        POST.

        * operation/visual_console: Added Visual Console feature.

        * operation/agentes/estado_alertas.php: Updated styles and fixes
        damm bug when no alert available.

        * operation/agentes/status_monitor.php: Updated styles.

        * operation/agentes/estado_generalagente.php: Update styles.

        * operation/agentes/estado_agente.php: Updated style.

        * operation/servers/view_server.php: Updated style.

        * operation/reporting/graph_builder.php: Fixed some minor
        bugs. Needs to fix more bugs :(

        * operation/menu.php: Updated menu. Visual Console has dynamic items!.

        * images/pandora_logo_head.png: New header logo !

        * images/pandora_logo.png: New Pandora FMS 1.3 logo ! :-))

        * images/console/background: More samples added.

        * images/console/icons: Icons to be used in visual console.

        * reporting/fgraph.php: New feature added to simple graph to show
        only average values.

        * reporting/stat_win.php: Added support to avg_only and show avg,
        max and min values from each graph. Zoom factor is more usable
        now.

        * general/logoff.php: New style.

        * general/footer.php: Fixed style.

        * general/logon_failed.php: Fixed style.

        * general/login_page.php: New style.

        * general/header.php: Fixed style.

        * godmode/agentes/configurar_agente.php: Fixed styles.

        * godmode/agentes/agent_manager.php: Fixed styles.

	* operation/active_console: Removed from trunk: not ready to be used.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@459 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-05-20 17:12:31 +00:00
slerena fd37be0e44 2007-04-22 slerena <slerena@artica.es>
* pandoradb.sql: Fixed small problem with tgrupos




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@447 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-05-01 13:34:03 +00:00
raulmateos 3a477467d3 2007-05-01 Raul Mateos <raulofpandora@gmail.com>
* images/bricks.png: Changed red colour to orange one.
	* include/pandora.css: Changed background colour for View Mode tab.
	* operation/agentes/estado_agente.php: Changed space between combo and
	table, including the style into the table, deleting div.
	* operation/agentes/estado_grupo.php: Style correction.
	* operation/messages/message.php: Added style to some table cells.
	* pandoradb.sql, pandoradb_data.sql: Added column disable to table tgrupo
	and default value 0.
	* operation/snmpconsole/snmp_alert.php: Deleted duplicated br tag.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@446 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-05-01 13:28:33 +00:00
slerena 145ca40616 2007-04-19 Sancho Lerena <slerena@artica.es>
* pandora.css: added some classes for graphical input buttons.
	
	* languages/language_en.php: More strings to go !
	
	* include/config.php: Deleted from repo, now has no sense.
	
	* pandoradb.sql: Added `alert_text` to talerta_agent for new text
	alerts. Added tables for custom graphs and reporting: tgraph,
	tgraph_source, treport, and treport_content.
	
	* operation/users/user.php: Fixed problem with last Raul's commit.

	* godmode/usuarios/lista_usuarios.php: Fixed problem with last
	Raul's commit.
	
	* operation/agentes/estado_alertas.php: Code cleanup. Implemented
	render for text alerts.
	
	* operation/agentes/datos_agente.php: Fixed small bug with text output.
	
	* operation/agentes/datos_agente_calendar.php: Added contribution
	from Leandro Doctors. Need to work on it before use several
	problems detected.
	
	* operation/servers/view_server.php: Fixed some bugs.
	
	* operation/reporting/graph_viewer.php: Added viewer for custom graphs.
	
	* operation/reporting/custom_reporting.php: Initial code, not
	finished yet.
	
	* operation/reporting/graph_builder.php: Work for modules in the
	same agent, several problems, but works.
	
	* operation/menu.php: Updated options for new reporting menu.
	
	* reporting/stat_win.php: New menu is great :-)
	
	* general/login_page.php: Updated login page.
	
	* godmode/agentes/alert_manager.php, configurar_agente.php: New
	code for text alerts and better user help.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@433 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-19 18:50:07 +00:00
raulmateos 06e7769132 2007-04-18 Raul Mateos <raulofpandora@gmail.com>
* pandoradb_data.sql, pandoradb.sql: Fixed small warnings.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@427 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-18 17:17:06 +00:00
slerena 660665348c 2007-04-18 Sancho Lerena <slerena@artica.es>
* include/styles/pandora.css: Added frame and changed basic form input 
	styles (fixed the old problem with radio and checkboxes).
	
	* include/functions_db.php: Finished function
	agent_add_address(). Added functions: agent_delete_address(),
	give_agent_address() and give_agent_address_from_list().

	* include/languages/language_en.php: More strings !

	* include/functions.php: Added numeric render for graph Y scale
	and for numeric data output in screen: format_for_graph().
	
	* pandoradb.sql: Several small fixes and cleanup (deleted drop check).

	* operation/agentes/estado_alertas.php: Fixed old bug with
	visualization of alerts (min/max) vs (max/min). Now alert is a
	real value, not integer.
	
	* operation/agentes/datos_agente.php: Better render for numeric
	(float) data.
	
	* operation/agentes/estado_ultimopaquete.php: Better render for numeric
	(float) data and fixed a small costemic bug.
	
	* operation/agentes/estado_generalagente.php: Fixed a small
	costemic bug, list of ip's have some white space before and this
	have better visualization for user due to combo style stripping
	some space.
	
	* reporting/fgraph.php: Graph improvement: graphs now could show
	alerts associated to an agent and draw alert limits. Preprocessor
	function is now used to render axis label with (M,K) symbols and
	decimal commas. Title and subtitle has been improved.
		
	* reporting/stat_win.php: Graph menu improvement. Fully completed
	work. This should work for final version without more changes.
	
	* godmode/agentes/agent_template.php: Template/Wizard module
	assigment form for agent.
	
	* godmode/agentes/alert_manager.php: Several fixes (links) and
	alert max/min render.
	
	* godmode/agentes/configurar_agente.php: Fixed several navitation
	bugs. Added agent ip addition/deletion code.
	
	* godmode/agentes/agent_manager.php: Address list management code.
	
	* godmode/modules/module_list.php: Deleted link to "module type
	editor" and create button: This has no sense since there is no
	moduletype editor yet :-)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@425 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-18 09:58:26 +00:00
slerena fa5263c4d0 2007-04-13 Sancho Lerena <slerena@artica.es>
* include/functions_db.php: Added function add_address() not finished!.
	
	* pandoradb.sql: Added field "notify_email" in tincidencia. More
	changes are coming in incident management coming from FRITS
	project. Added tnews
	
	* index.php: VERY IMPORTANT: Added Session locking concurrency
        speedup, taken from
        http://es2.php.net/manual/en/ref.session.php#64525. This solve GUI
        lookups when one page it's processing huge data and one user
        cannot access to other pages. This is a common PHP issue for
        bad-susing SESSION functions.
	

	* operation/agentes/estado_grupo.php: Added checks for timeout in
	agents. Now render gray icons/boxes if agent is completely timeout
	(with no modules in time).
	
	* operation/agentes/estado_generalagente.php: Show IP address in
	combo. More changes are coming to agent address management
	(multiaddress).
	
	* general/logoff.php: Fixed, "babel" string :-)
	
	* general/logon_ok.php: Added news display in main logon screen.
	
	* godmode/agentes/configurar_agente.php: Delete address code, not
	finished.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@422 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-13 18:47:58 +00:00
slerena 70e2f9d797 2007-04-10 Sancho Lerena <slerena@gmail.com>
* pandoradb_data.sql: Fixed some odd problems with schema data.

        * pandoradb.sql: Fixed some odd problems with schema structure and
        added new table tnews for publish board updates.

        * include/styles/pandora.css: Changed color for data2 style.

        * include/config.inc.php: Deleted two last blank lines who makes
        config.php unusable for graphs. FIXED.

        * include/languages/language_en.php: Added some new strings.

        * include/config.php: some problems with new config
        variables. Need to recheck.

        * include/functions.php: Added function to render normal text,
        replacing carriage return with HTML br tag.

        * install.php: Many small bugs fixed. Now uses dbname variable and
        use default variables in form.

        * estado_grupo.php: Small bug fixed.

        * estado_ultimopaquete: Small bug fixed.

        * estado_generalagente.php: Small bug fixed.

        * view_server.php: Small bug fixed.

        * fgraph.php: Now agent with only one kind of module render module
        distribution graph.

        * stat_win.php: Fixed small bug with windows ids.

        * module_manager.php: Fixed small bug.

        * modificar_agente.php: Fixed small bug.

        * module_list.php: Fixed stupid bug.

        * god_mode/menu.php: Fixed problem with menu position.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@415 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-11 03:12:48 +00:00
raulmateos b601bd7cbe 2007-04-01 Raul Mateos <raulofpandora@gmail.com>
* pandoradb.sql, pandoradb_data.sql: Removed comments that
	caused some warnings. Solved small bug when adding table tmodule.
	Changed (again) HPUX to HP-UX.
	
	* godmode/agentes/modificar_agente.php: Removed some notice error.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@407 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-04-01 18:29:11 +00:00
Esteban Sanchez b887172f46 2007-03-28 Esteban Sanchez <estebans@artica.es>
* pandoradb.sql: Changed MyISAM tables to InnoDB. Deleted charset
        definition to Latin1. Some changes to be consecuent with the data.
        Deleted unnecesary field from tagente_estado. Added tmodule table and
        a field in tagente_module to point there. Fixed some default dates to
        become the same. Removed mysqldump comments.

        * pandoradb_data.sql: Removed mysqldump comments.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@404 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-03-28 14:51:39 +00:00
slerena 8bfab2347a 2007-03-28 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Updated SQL.

	* pandoradb_data.sql: Updated data. Some info must be corrected
	before final version (network components, groups and some other).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@403 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-03-28 13:08:10 +00:00
Esteban Sanchez 78392e56fe 2007-03-23 Esteban Sánchez <estebans@artica.es>
* pandoradb.sql: Default value of flag field in tagente_module 
	changed to 1, so the module is forced to be executed the first 
	time.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@401 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-03-23 12:35:50 +00:00
raulmateos fadf63374f 2007-03-19 Raul Mateos <raulofpandora@gmail.com>
* pandoradb.sql, pandoradb_data.sql: Solve small problem in last commit
	with groups table and language code for more than 5 chars (as ast_es).

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@399 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-03-19 21:27:10 +00:00
slerena 02acab8e95 2007-03-12 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Upgraded scheme, many changes and many tables
	added. I Need to commit the new "preloaded" data for this scheme,
	give me some days, this stuff are on development.

	* includes/styles/*: Many additions to reflect new menu options,
	and the tab menu title.

	* reporting/fgraph.php: Minor changes to format progressbar.

	* godmode/modules/*: Many many changes and additions (manage_*)
	for the new management system using tabs :-)

	* include/languages/language_es_es.php: Many additions.

	* operation/servers/view_server.php: Implemented detailed load for
	each servertype and latency time to each server to detect problems
	with high load.
	
	Many changes in godmode subsystem. Not detailed at this time.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@394 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-03-12 17:58:52 +00:00
slerena 4f827de5f0 2007-03-02 Sancho Lerena <slerena@artica.es>
* pandoradb_data.sql: Modified, but needs update!, not
          finished.

	* .png: Many files added.
	
	* Massive commit. Updated almost every file for agent
	visualization, module visualizacion, agent management, index,
	styles, and more. Added many icons, and altered so many files.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@388 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-03-02 17:56:07 +00:00
Esteban Sanchez 28eb116928 2007-02-22 Esteban Sanchez <estebans@artica.es>
* pandoradb.sql: Changed a 'utimestamp' field from mediumint to
        integer.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@382 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-02-22 16:45:10 +00:00
slerena 4906a23681 2007-02-22 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Fixed some problems in last commit and fixed
          utimestamp length.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@381 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-02-22 15:47:58 +00:00
raulmateos 3aaa3a6b58 2007-02-21 Raul Mateos <raulofpandora@gmail.com>
* pandoradb.sql: Solved small problems that caused some tables not 
	to be created.
	
	* operation/active_console/lib/db_functions.php: Remove ".." in include
	path for config file.
	
	* general/logon_ok.php: Use new styles and small check to show some text if
	no data.
	
	* include/styles/pandora.css: New styles.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@380 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-02-20 21:45:44 +00:00
slerena 2d148cc0a5 2007-02-20 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Upgraded SQL. Improved lenght for some fields.
	
	* index.php: Better permission checks
	
	* operation/agentes/estado_ultimopaquete.php: Changed some
	parameters for agent graphics.
	
	* operation/agentes/estado_generalagente.php: Changed some
	parameters for agent graphics.
	
	* reporting/fgraph.php: MAJOR UPGRADE. Replacement for three main
	graphics from agents now using Image Graph.
	
        * reporting/stat_win.php: MAJOR UPGRADE.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@379 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-02-20 18:09:54 +00:00
slerena 51c2517a46 2007-02-16 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: added unixtime field to tagente_datos,
	tagente_datos_string and tagente_estado tables. Future queries
	will use UNIX time instead of "Human" timestamp strings.
	
	* index.php: Small fix of duplicated body html tag.

	* agentes/estado_ultimopaquete.php: [DEBUG] Add a debug ICON for new
	graph... need to be delted.

	* /active_console/styles/main.css, and many .js: Style correction
	(massive changes), only indented and commented, no changes in
	code.

	* reporting/fgraph.php: CURRENTLY CHANGING CODE, NOT USE.

	* reporting/stat_win.php: Unified parameter parsing.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@374 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-02-16 18:29:37 +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
raulmateos bc4813b017 2006-09-16 Raul Mateos <raulofpandora@gmail.com>
* Set all timestamp values in pandoradb.sql file to 0000-00-00 00:00:00

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@173 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-09-16 16:00:09 +00:00
raulmateos ca48216a51 2006-09-10 Raul Mateos <raulofpandora@gmail.com>
* Massive upload several files, to reflect changes in help, only text, no code changed.
	
* pandoradb.sql: change value of ultimo_contacto row in  tagente table to 0000-00-00 00:00:00, to solve a small issue when the agent haven't send any data

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@158 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-09-10 16:48:18 +00:00
raulmateos 5e927537b9 - Create new var. for help language in config.php and changed in all the .php files where the help was available (Pandora Console)
- Change tlanguage table definition to add ISO 639-2 compliant lang codes in pandoradb.sql file and also changed the name of bable from bb to ast_es in pandoradbdata.sql and changed name of include lang files and help files (Pandora Console)

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@112 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2006-07-09 14:58:02 +00:00