Commit Graph

211 Commits

Author SHA1 Message Date
slerena 77e88d3ebb 2008-06-24 Sancho Lerena <slerena@gmail.com>
* include/functions_db.php: Fixed typo.

        * include/languages/language_es_es.php: Too long string fixed.

        * operation/agentes/tactical.php: Div0 fixed.

        * godmode/agentes/agent_disk_conf_editor.php: Check should be done 
        after reading (when updating file, because binary reads don't be afected
        by magic_quotes. This SHOULD fix the problem.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@898 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-24 12:28:34 +00:00
slerena 6d6ddd4d5e 2008-06-23 Sancho Lerena <slerena@gmail.com>
* pandoradb.sql: Removed table "tquicksession". Not ever used.

	* pandoradb_data.sql: Updated Scheme build.

	* agent_manager.php: Removed a debug "echo".

	* db_sanity.php: Added feature to delete id_module 0 modules.

	* 3.png: Added image for AIX in network maps.

	* functions_db.php: Fixed a div0 in return_moduledata_avg_value(). 
	Added server_status() that calculate modules for each server kind,
	and return a consistent LAG calculation.

	* menu.php: Better Server view menu visualization.

	* estado_ultimopaquete.php: Don't show disabled modules anymore.

	* vier_server.php,
	tactical.php: Removed old server status code, and used server_status()
	function to get all data.

	* graph_viewer.php: Added ACL checks for each graph element.

	* fgraph.php: Negative values are now rendered in single graphs.

	* pandoradb*.sql (1.3 to 2.0, and 1.3 to 2.0): Deleted, not working.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@894 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-23 14:36:22 +00:00
slerena 117a84dd9b 2008-06-20 Esteban Sanchez <estebans@artica.es>
* include/functions_reporting.php: Deleted reference to localhost. Align 
        times fired colum. Show priority string instead on alerts.

        * include/functions.php: Show only one decimal by default on 
        format_numeric() and format_for_graph(). Cut alert name, agent name 
        and module name. Style correction.

        * include/functions_db.php: Function give_moduleinterval() renamed to
        get_module_interval() and fixed a typo with variable name. On 
        get_previous_data() get the data if it's not older than the interval.
        Order datas on min, max and sum calculation by the timestamp. Fixed and
        improved the sumatory calculation.

        * operation/agentes/status_monitor.php: Ignore disabled modules.

        * operation/reporting/reporting_viewer.php: Do not use format_for_graph(),
        but format_numeric() instead.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@892 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-20 12:13:35 +00:00
slerena 0da63bcaac 2008-06-19 Sancho Lerena <slerena@gmail.com>
* Fixed some typos.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@890 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-19 16:01:54 +00:00
slerena 09f801adae 2008-06-19 Sancho Lerena <slerena@gmail.com>
* include/functions_reporting.php
	include/config.php
	include/functions.php
	include/functions_db.php
	operation/agentes/estado_grupo.php
	operation/agentes/estado_agente.php
	operation/agentes/estado_monitores.php
	operation/agentes/tactical.php
	operation/agentes/networkmap.php
	godmode/agentes/module_manager.php
	godmode/agentes/agent_manager.php: Several fixes for module disabled issue



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@884 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-19 14:34:04 +00:00
esanchezm 50e09102a9 2008-06-18 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added documentation to all the functions
        using javadoc style. Deleted unused and useless functions. Style
        correction. User pandora database functions in functions that getss
        simples values. Replace lang_label with lang_string().

        * include/functions_reporting_pdf.php,
        operation/reporting/reporting_viewer_pdf.php,
        operation/visual_console/render_view.php,
        include/functions_reporting.php: Replaced deprecated functions with 
        equivalents.

        * godmode/agentes/agent_manager.php: Fixed a bug with parent dropdown
        select.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@882 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-19 13:50:52 +00:00
esanchezm 788db0318b 2008-06-18 Esteban Sanchez <estebans@artica.es>
* functions.php: Added documentation to all the functions in JavaDoc
        format, which is an facto-standard. Deleted unused functions. Improved
        the code of some functions. Tab and blankspaces style correction.
        Replaced old lang_label with lang_string(). Some functions to print
        selects were replaced with a functio to get an array with all the
        possible values so the caller will use print_select() with them.

        * godmode/agentes/agent_manager.php: Use print_select() instead of
        deleted function.

        * godmode/agentes/alert_manager_editor.php: Use print_select() instead
        of deleted function. Use print_checkbox(). Style correction

        * godmode/reporting/map_builder.php, operation/agentes/ver_agente.php,
        operation/messages/message.php,
        operation/reporting/reporting_viewer_pdf.php:
        Replaced deleted functions with their equivalents.

        * include/functions_db.php: Documented some functions, some work is
        still required. Added get_reports() to get all the reports a user can
        see. Deleted unused functions. Replaced deleted functions with their
        equivalents. Added get_db_row_sql(), get_previous_data(). Fixed errors
        when calculating average, max, min and sum values of an agent module.

        * include/functions_reporting.php: Fixed errors when calculating SLA.

        * operation/events/events.php: Tab and blankspaces correction.
        Replaced form_priority with print_select(). Style correction.

        * operation/reporting/custom_reporting.php: Show all the reports a
        user can see. Use Pandora functions.

        * operation/reporting/reporting_viewer.php: Show unknown label if SLA
        can not be calculated.

        * operation/snmpconsole/snmp_alert.php: Avoid an extra indentation
        level by using check_login() properly. Tab and blankspaces correction.

        * index.php, operation/users/user_edit.php: Adopted to renamed
        function.

        * godmode/db/db_sanity.php, reporting/fgraph.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@881 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-19 09:01:12 +00:00
slerena 59e7358292 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
ramonn fac4a06a43 2008-06-18 Ramon Novoa <rnovoa@artica.es>
* operation/agentes/networkmap.php: Small fixes.
	* images/networkmap/pandora_node.png: Changed icon.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@875 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-18 09:59:18 +00:00
ramonn af7d490070 2008-06-17 Ramon Novoa <rnovoa@artica.es>
* operation/agentes/networkmap.php: Agent IDs are used to define
          nodes in the graph.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@873 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-17 16:29:21 +00:00
ramonn 43bd7bc051 2008-06-17 Ramon Novoa <rnovoa@artica.es>
* pandora_console/operation/agentes/networkmap.php: Added to
          repository. Network Map.
        * pandora_console/operation/menu.php: Added an entry for Network Map.
        * pandora_console/images/networkmap
          pandora_console/images/networkmap/0.png
          pandora_console/images/networkmap/router.png
          pandora_console/images/networkmap/10.png
          pandora_console/images/networkmap/1.png
          pandora_console/images/networkmap/2.png
          pandora_console/images/networkmap/11.png
          pandora_console/images/networkmap/printer.png
          pandora_console/images/networkmap/firewall.png
          pandora_console/images/networkmap/server.png
          pandora_console/images/networkmap/9.png
          pandora_console/images/networkmap/pandora_node.png
          pandora_console/images/networkmap/server_hpux.png: Added to
          repository. Network Map icons.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@871 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-17 15:47:13 +00:00
esanchezm e59a524f82 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 b2071280e0 2008-06-16 Sancho Lerena <slerena@gmail.com>
* pandoradb_data.sql: Updated some new config tokens (graph colors), 
	updated group default names and icons, 

	* manage_config_remote.php, godmode/menu.php: Added new config to 
	manage/copy remote config from one agent to other(s).

	* agent_manager.php: When create a new agent, cannot select group "ALL".

	* agent_template.php: Fixed a weird bug that creates two tagente_estado
	records when using a module template.

	* alert_manager_editor.php: Fixed ACL problem assigning combined alert
	components. Better management of NOP in combined alerts (Automated NOP 
	when create the first component. Added NAND, NXOR y NOR).

	* manage_config.php: Solved some bugs copying configuration with new
	modules (Added support for new module types). Added filter for group and
	fixed ACL problems. Code cleanup and better layout.

	* module_manager_editor_prediction.php: ACL checks added.

	* config_process.php, setup.php: Support to choose color graphs.

	* functions.php: Fixed typo and removed N/A for alerts with min/max = 0
	
	* functions_db.php: Fixed another typo in give_disabled_group(), and added
	feature to list_group() combo to render or now group "ALL".

	* estado_generalagente.php: Added network push button for whole agent.

	* tactical.php: Some minor layout improvement.

	* ver_agente.php: Network FLAG change request for whole group, and fixed
	manual validation on combined alerts.

	* events.php: Event description don't show with " ' "characters. Fixed.

	* fgraph.php: graph_event_module() restored (was missing in last commit),
	added user-defined color support.

	* stat_win.php: Added support to choose another date for graph. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@866 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-16 18:09:56 +00:00
esanchezm 10d0c0e238 2008-06-15 Esteban Sanchez <estebans@artica.es>
* include/functions_html.php: Added to repository. Implements HTML
        functions.

        * reporting/fgraph.php: Many style correction fixes, including those
        regardings tabs and blank spaces, variable names and indentation 
        levels for checkings. Improved dame_fecha(). Added date support to 
        graphic_combined_module(), grafico_modulo_sparse(). The selection of
        the graphic to show based on parameters has been replaced by a switch.
        The parameters are parsed with get_parameter()

        * include/functions_db.php: Style correction of tabs and blanks
        spaces. Use Pandora database functions on simple querying functions
        such as dame_perfil(), give_disabled_group(), dame_grupo(),  
        give_note_author(), dame_agente_id(), dame_agente_modulo_id() and many
        more, there are a lot more to change. Function comprueba_admin()
        renamed to check_admin (wrap created for old function). Added some
        checks to get_db_value(), get_db_row() so the SQL is build based on
        the parameter types. Added get_db_all_rows_sqlfree(),
        get_db_all_rows_in_table(), get_db_all_rows_field_filter(),
        get_db_all_fields_in_table(). Added date support to
        return_moduledata_avg_value(), return_moduledata_max_value(),
        return_moduledata_min_value(). Added function
        return_moduledata_sum_value() to get the sum of the values in a
        module.

        * include/functions.php: If input is numeric on safe_input, do not
        clean it, since it's safe by itself. Use mysql_escape_string() on
        salida_sql(). Added get_report_types(), get_report_name(),
        get_report_type_data_source() relatives to reports. Added also 
        is_module_data(), is_module_proc(), is_module_inc(),
        is_module_data_string() to know if a module is from a type. Replaced
        form_priority() with get_event_types() so the caller of this function  
        will print the select (using print_select).

        * operation/events/events.php: Replaced form_priorit() with
        get_event_types().

        * ChangeLog: Tab style correction with previous commit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@863 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-16 10:45:08 +00:00
slerena 8314faa7fb 2008-06-13 Sancho Lerena <slerena@gmail.com>
* status_events: added to view new events in agentg view



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@861 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-13 17:01:05 +00:00
slerena ad93a46f0f 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 e681f4e87f 2008-06-09 Sancho Lerena <slerena@gmail.com>
* operation/agentes/status_monitor.php,
        operation/agentes/estado_agente.php: Data was presented for users with
        access to specific groups (fixed also in 1.3.1 branch). Fixed.

        * godmode/users/configure_user.php: Better management of password.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@846 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-09 17:51:18 +00:00
slerena cc2f81acb4 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
raulmateos e25491a688 2008-04-28 Raul Mateos <raulofpandora@gmail.com>
* operation/reporting/custom_reporting.php: Changed .gif to .png

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@821 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-28 14:08:08 +00:00
slerena 550d81e315 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 be47f5c015 2008-04-24 Sancho Lerena <slerena@artica.es>
* pandoradb_data.sql: Added several modules by Guguevi.

        * operation/events/events_rss.php: Added RSS events page, contributed
        by guruevi.

        * manage_network_components_form.php, 
        manage_network_templates_form.php,
        modules/manage_network_components.php: Combos are classified by name.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@818 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-23 20:51:37 +00:00
slerena cb578d25b6 2008-04-23 Sancho Lerena <slerena@artica.es>
* include/functions_reporting_pdf.php: New functions for PDF reporting.

        * include/functions_reporting.php: Fixed alert & event reporting.

        * include/functions_db.php: Fixed function give_db_value. Also       
        label_string now don't show ][ characters.

        * include/pdf: Added ezpdf class to generate PDF reports.

        * operation/reporting/reporting_viewer.php,
        operation/reporting/custom_reporting.php: A few fixes on         
        reporting (event viewer, combined graph...)

        * operation/reporting/reporting_viewer_pdf.php: render 
        report on PDF.

        * images/pdf.gif: PDF Icon.

        * images/pandora_logo.jpg: JPG logo for PDF reports (header).

        * godmode/agentes/module_manager_editor_plugin.php: Added
        plugin port field (was missing).

        * godmode/reporting/reporting_builder.php: Fixed problem
        with event reporting type.

        * godmode/alerts/plugin.php: Added plugin editor.

        * godmode/menu.php: Added plugin editor to menu.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@816 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-23 20:01:37 +00:00
slerena ba4e926831 2008-04-17 Sancho Lerena <slerena@artica.es>
* include/functions_db.php: Fixed problem in show_alert_row_mini()

    * operation/agentes/status_monitor.php: Almost all code changed.
    Added pagination, replaced query for a paginated version and a lot
    more efficient. Added freetext search on name / description of 
    monitors.

    * operation/agentes/estado_ultimopaquete.php: Fixed problem with
    refresh / push buttons on data server modules.

    * godmode/admin_access_logs.php: Fixed several problems. Added a 
    better pagination.

    * godmode/agentes/module_manager_editor.php,
    godmode/agentes/module_manager_editor_network.php: When pushed 
    SNMP walk, lost all fields. Fixed. Also fixed problems with min/max.
    
    * godmode/agentes/module_manager_editor_data.php,
    godmode/agentes/module_manager_editor_wmi.php,
    godmode/agentes/module_manager_editor_plugin.php
    godmode/agentes/module_manager_editor_prediction.php: Fixed problems
    with inverted max/min.

    * godmode/agentes/configurar_agente.php: Keepalive modules now are
    from id_module=1 (data server). before was type 0 and that gives a lot
    of problems.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@810 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-17 15:27:25 +00:00
slerena 2f95662563 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 bfe9e0db18 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 2789b7083e 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 6b0cc12795 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 86415f86cb 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
raulmateos 5d70f69c61 2008-02-28 Raul Mateos <raulofpandora@gmail.com>
* pandora_console/operation/agentes/estado_monitores.php: 
	Improved usability adding titles in images.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@732 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-02-28 10:45:49 +00:00
slerena b3106b9969 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 2664626ebe 2008-01-10 Sancho Lerena <slerena@gmail.com>
* pandoradbdata_13_to_14.sql: Correct build and version.

        * tactical.php: Fixed problem with networkserver stats.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@701 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-01-10 17:59:04 +00:00
slerena b4a87a0eef 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 204571df31 2008-01-08 Sancho Lerena <slerena@gmail.com>
* pandoradb_data.sql: Added keep_alive as module id 100 for the new keepalive
        management. Old way (from 1.2) is now deprecated and not used.

        * operation/agentes/estado_agente.php: Style changes, not code.

        * images/mod_keepalive.png: Added new icon for keepalive moduletype.

        * godmode/agentes/configurar_agente.php: Create an agent creates automatically 
        a keepalive module AND a tagente_estado record.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@688 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-01-08 18:49:39 +00:00
slerena 813d5dc10a 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
raulmateos 85bd03d1bf 2007-10-13 Raul Mateos <raulofpandora@gmail.com>
* styles/op.css, god.css, link.css: Simplify styles.

	* godmode/menu.php: removed unused class.

	* operation/menu.php: Updated license header.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@675 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-10-13 21:23:44 +00:00
raulmateos 6344bf025b 2007-10-13 Raul Mateos <raulofpandora@gmail.com>
* operation/incidents/indicent_statistics.php: Added vertical align to images.

	* languages/language_es_es.php: Solved small text typo.

	* godmode/modules/manage_network_components.php: Add text filter and improved

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@674 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-10-13 21:00:40 +00:00
raulmateos 4d8ed974ba 2007-10-12 Raul Mateos <raulofpandora@gmail.com>
* Near ALL php: Removed remaining help icons. Closed some HTML tags.

	* index.php, include/config.inc.php: Updated build.

	* languages/*.php: Added text for "Logs".

	* godmode/admin_access_logs.php: Solved small visual error with
filter. Added Logs text.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@673 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-10-12 16:27:50 +00:00
slerena f67340e972 2007-10-09 Sancho Lerena <slerena@gmail.com>
* operation/reporting/reporting_viewer.php: Fixed small bug mixing min/max values of SLA render.

        * godmode/reporting/reporting_builder.php: Fixed small bug deleting item from report, that
        return user to another report.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@671 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-10-09 14:18:03 +00:00
slerena 5affad5cdc 2007-10-03 Sancho Lerena <slerena@gmail.com>
* Security fix has been included in ver_agente.php, using a new function to validate
        GET variables (checking for numeric data). This security isse was a SQL Blind URL Attack. This
        is described in mailing list with more depth, including the patch.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@670 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-10-08 15:29:38 +00:00
slerena 2fdb207ae8 2007-10-03 Sancho Lerena <slerena@gmail.com>
* include/functions_db.php: Insert_event is now capable to store events already validated.

        * operation/events/events.php: Adjusted column width.

        * operation/agentes/estado_alertas.php: Added additional ACL check. Now user is able to validate
        (Cease) manually an alert (new feature).

        * operation/agentes/ver_agente.php. Now user is able to validate (Cease) manually an alert
        (new feature).

        * operation/agentes/estado_generalagente.php: Render interval in human time insted in seconds.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@666 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-10-03 12:41:29 +00:00
marostegui e500529d05 2007-09-27 Manuel Arostegui <marostegui@artica.es>
* operation/events/events.php: Fixed some problems
         similar to bug #1801301.

       * godmode/agentes/modificar_agente.php: Fixed some problems
         similar to bug #180130.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@661 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-09-27 15:12:49 +00:00
slerena c206e7231d 2007-09-24 Sancho Lerena <slerena@gmail.com>
* operation/agentes/estado_agente.php: Fixed BUG 1801301 thanks to Eric Ross.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@660 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-09-26 11:17:37 +00:00
slerena 5ee350b3f0 2007-09-20 Sancho Lerena <slerena@gmail.com>
* operation/agentes/estado_alertas.php: Alert icon is now the box icon.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@658 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-09-21 13:57:58 +00:00
slerena a34b039176 2007-09-20 Sancho Lerena <slerena@gmail.com>
* view_server.php, tactical.php: Solved bug in lagcheck for down modules.

        * godmode/agentes/manage_config.php: Agent ordered by name in destination box.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@657 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-09-21 12:31:22 +00:00
raulmateos 2d28d9f134 2007-09-08 Raul Mateos <raulofpandora@gmail.com>
* include/languages/language_en.php, language_es_es.php: Add two 
	new texts.

	* general/error_*.php: Changed default HTML encoding to UTF-8.

	* operation/agentes/estadogeneralagente.php: Removed function
	in label that causes some problems with UTF-8 texts.
	
	* index.php: Updated build, version and set develop pass to 1.

	* godmode/agentes/configurar_agente.php: Changed strings from code
	to language includes.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@649 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-09-08 18:05:06 +00:00
slerena 6276ed70bb 2008-08-28 Sancho Lerena <slerena@artica.es>
* pandora_console/operation/reporting/graph_viewer.php: Fixed dimensions of graph
        view




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@628 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-08-28 15:26:13 +00:00
slerena 013dc5496c 2007-08-27 Sancho Lerena <slerena@artica.es>
* operation/agentes/ver_agente.php: Truncated too long agent names.

        * operation/agentes/tactical.php: Fixed BUG: not initializated modules are now
        correctly viewed.

        * godmode/agentes/manage_config.php: Fixed BUG: copying modules also create
        status record and some minor issues with visualization.

        * godmode/agentes/configurar_agente.php: Truncated too long agent names.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@625 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-08-28 13:33:54 +00:00
slerena 49ad568061 2007-08-23 Sancho Lerena <slerena@gmail.com>
* datos_agente.php: Fix delete button for String data.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@616 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-08-23 17:46:06 +00:00
slerena 3a8d97d7a7 2007-08-06 Sancho Lerena <slerena@artica.es>
* include/functions_db.php: Fixed unsorted render (E.Ross).

        * index.php: Several fixes from E.Ross and me (HTTP port, REFR bug
        #1756143).

        * status_monitor.php: Small fixes for SQL sentences (E.Ross).

        * estado_grupo.php: Small fixes for SQL sentnces (E.Ross).

        * estado_ultimopaquete.php: Fix to use boolean graph from E.Ross.

        * fgraph.php: Use simplified version of sparse to make a more
        quick and simplified version of graph, useful for Boolean types
        (E.Ross).

        * stat_win.php: Fixed problem with resizing (E.Ross).

        * godmode/groups/configure_group.php: Fixed code for Non-dependant
        groups (E.Ross).

        * login_page.php: Fixes for non 80 HTTP port (E.Ross).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@591 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-08-06 11:44:49 +00:00
slerena d55e219c23 2007-08-02 Sancho Lerena <slerena@artica.es>
* Fixed bug #1757084 for Data Server lag check.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@583 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-08-02 12:24:26 +00:00