Commit Graph

228 Commits

Author SHA1 Message Date
guruevi 6f8feafda3 2008-07-30 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandoradb.sql: Updated schema for tplanned_downtime

	* include/functions_db.php: Small bug that gave a warning in case there were no events for an agent

	* godmode/agentes/planned_downtime.php: You can now create planned downtime schedules. This 
	won't work yet as the server doesn't support it yet. So I didn't integrate it in the menu either, but it can be.

	* general/links_menu.php: The first link will also show up. It wasn't showing up because the mysql function
	that was used moved the internal pointer ahead while checking if it existed. Used new functions.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@987 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-30 18:19:58 +00:00
guruevi c0c84eb2c5 2008-07-29 Evi Vanoost <vanooste@rcbi.rochester.edu>
* functions_db.php: Quick fix. Used wrong function.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@982 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-29 17:10:28 +00:00
guruevi 12efa658cf 2008-07-29 Evi Vanoost <vanooste@rcbi.rochester.edu>
* functions_db.php: Style changes, updated process_sql so it can return other
        interesting stuff on INSERT. No functions have direct mysql functions anymore

        * logon_ok.php: Style changes. Made it use the DB functions


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@981 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-29 16:50:17 +00:00
slerena 33e3cfd3cc 2008-07-25 Sancho Lerena <slerena@gmail.com>
* pandoradb.sql: Added new tables for planned downtimes.
	
	* godmode/menu.php: Added entry for manage downtimes.

	* group_list.php: Stetic changes in table.

	* modificar_server.php: Fixed timestamp render for start/update 
	timestamp of each server.

	* functions.php: Minimal estetic changes in help function.

	* functions_db.php: Change header (Flexible <- Free)

	* functions_html.php: Now select admits multiselect option. Default
	class for table render is now databox not databox_color.

	* AUTHORS: Update list of authors and make a reference to contributors.

	* function_reporting.php: Header change, updated datetime string format.

	* language_en.php, language_es_es.php: Changed FREE for Flexible.

	* pandora.css: Minimal changes. Update color of Monitor count in tactical.

	* menu.php: Added some new event options: CSV Export, RSS and new marquee
	event visualizer. 

	* estado_ultimopaquete.php: Header update.

	* tactical.php: Added link to data module alerts. 

	* ver_agente.php: Fixed a problem in ajax code that was rending bad 
	count of down monitors. Using boolean comparation on result of function
	get_db_sql(). This kind problem could be in more lines of code.

	* events.php: New quicklinks to RSS, CSV and Marquee in event viewer.

	* export_csv.php, events_rss.php: Fixed duped call to function includes. 

	* graph_viewer.php: I hope this fix FINALLY the annoying bug of graph
	type selector.

	* visual_console/index.php: Updated header.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@973 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-25 18:37:32 +00:00
guruevi 58f26727ed 2008-07-17 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandora_console/include/functions_reporting.php: Latest commit forgot a semicolon after return which resulted in an error on the front page. Fixed.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@965 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-21 14:03:39 +00:00
Esteban Sanchez a4c010ce4b 2008-07-21 Esteban Sanchez <estebans@artica.es>
* godmode/reporting/graph_builder.php,
        operation/snmpconsole/snmp_alert.php: Applied patch from Kato
        Atsushi.

        * include/functions_reporting.php,
        operation/reporting/reporting_viewer.php,
        godmode/reporting/reporting_builder.php: Adopted to changes in
        get_db_* functions.

        * include/functions_db.php: Removed quotes sorrounding %d characters
        in sprintf. Returned empty array on get_simple_alerts_in_agent() and
        get_combined_alerts_in_agent(). Style correction. Return all fields on
        get_db_all_fields_in_table().

        * ChangeLog: Updated previous commit message format and date.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@964 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-21 13:43:33 +00:00
guruevi eb6398fa59 2008-07-17 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandora_console/godmode/db/*.php
        -require_once for config might already have loaded
        -Changed mysql_real_escape_string in favor of get_parameter_post
        -Process the DELETE SQL queries through process_sql()
        -Changed comprueba_login() for check_login()
        -Adhered some things to preferred style
        -Compounded SQL queries into joins, subqueries or functions
        -Removed mysql_close() from db_purge.php since the select
        after the delete wouldn't work anymore (database closed)

        * pandora_console/godmode/reporting/reporting_builder.php
        -Fixed a bug that was introduced when the SQL functions returned false

        * pandora_console/include/functions_db.php
        -Made foreach instead of while loops for simpler functions
        -Fixed get_reports that failed since SQL function return false
        -All SQL functions now return false in case of empty
        -New SQL function process_sql that can handle DELETE. Returns
        affected rows in case of a changing query or an array in case
        it was a selecting query or false in case of error

        * pandora_console/include/functions.php
        -Simplified safe_input function

        * pandora_console/index.php
        -Updated SQL queries, style changes

        * pandora_console/operation/agentes/*.php
        -Style changes and updates to use check_login


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@962 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-21 12:23:28 +00:00
Esteban Sanchez 2106d763ff 2008-07-17 Esteban Sanchez <estebans@artica.es>
* godmode/reporting/map_builder.php: Check background existance to
        avoid warnings.

        * include/functions.php: Added Giga magnitude in format_for_graph(),
        thansk to tono user in openideas.

        * include/functions_db.php: Check database result on
        return_status_layout(). Deleted "LIMIT 1" on get_previous_data() which
        was causing SQL failures. Style correction.

        * include/functions_reporting.php: Check database result on
        get_agent_module_sla().

        * operation/agentes/datos_agente.php: Removed useless code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@961 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-17 12:21:17 +00:00
Esteban Sanchez 081ca73ba7 2008-07-17 Esteban Sanchez <estebans@artica.es>
* godmode/reporting/reporting_builder.php,
        godmode/reporting/map_builder.php: Check if all_agents were set to 
        avoid warning on foreach.

        * include/functions_db.php: Fixed typo in return_status_layout().
        Return false on get_db_all_rows_sql().

        * include/functions_visual_map.php: Check layouts_data to avoid
        warning on foreach. Removed ugly comments.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@958 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-17 07:38:02 +00:00
Esteban Sanchez 34797317a3 2008-07-17 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Removed debug output to check use of
        deprecated function. Please don't add message like this since there
        are many people who use Pandora trunk and may find strange messages
        like that.

        * operation/agentes/networkmap.php: Removed warning message if file 
        doesn't exists on checking cache system.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@957 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-17 06:51:22 +00:00
Esteban Sanchez 3a96085c9a 2008-07-17 Esteban Sanchez <estebans@artica.es>
* include/functions.php: Minimal style correction.

        * include/functions_db.php: Check sql_cache with empty() to avoid
        notices.

        * operation/agentes/status_monitor.php: Tab style correction.

        * general/logon_ok.php: Added missing field to SQL sentence which was 
        causing PHP notices.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@956 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-17 06:41:39 +00:00
guruevi fa1fc24dd8 2008-07-16 Evi Vanoost <vanooste@rcbi.rochester.edu>
* Phasing out comprueba_login() across the board

	* Optimizing queries and php script. Fixing small bugs.

	* ChangeLog is coming, this is just a WiP commit so I don't lose all the changes by tomorrow.
		I'm still busy analyzing some queries in the godmode/db directory so this revision might be unusable, use the previous revision for a 'stable' version.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@955 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-16 21:04:31 +00:00
Esteban Sanchez 0bb314ff41 2008-07-15 Esteban Sanchez <estebans@artica.es>
* ChangeLog: Fixed some indentation and lines length issues. Fixed
        also some filepaths.

        * include/functions_db.php: Tab and blankspaces correction. Limit the
        query to one result in get_db_value() and get_db_row().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@954 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-15 21:29:28 +00:00
guruevi 086ec57b3c 2008-07-13 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandora_console/general/logon_ok.php: Made the query use sprintf (for security purposes)

        * pandora_console/include/functions_db.php: Made all the database queries relying on a single query function for simpler management
                Also made sure that no functions returned NULL because NULL is a valid database value. It will return an empty value or something
                Also made a simple query cache array so that duplicate queries to generate a single page won't be repeated (ACL queries)
                Also updated some other queries and functions (see the diff) and removed some old code

        * pandora_console/estado_grupo.php: Now with working agents counter!

        * pandora_console/general/footer.php: Just made a fancy counter that displays how much queries weren't duplicated (90 on some pages!!)


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@953 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-15 20:19:30 +00:00
slerena d2377f9f09 2008-07-10 Sancho Lerena <slerena@gmail.com>
* include/styles/pandora_red.css: Updated.

	* include/styles/pandora_black.css: New style with BLACK blackground.

	* include/styles/pandora.css: Updated.

	* include/functions_db.php: Added auto order combos and queries.
	
	* include/functions_visual_map.php: Added overlap on down elements if
	there are more than one in the same position (This could allow to cluster
	elements to shown the down status first). Removed unused code.

	* operation/events/events.php: Added tooltip for group name.

	* operation/visual_console/render_view.php: Adjusted controls position.

	* operation/agentes/status_monitor.php: Added status for unknown monitors.
	Added some database search improvement.

	* operation/agentes/sla_view.php: Sorted list of items.

	* operation/agentes/ver_agente.php: Updated AJAX code for network map
	detail view of an agent. Added alert data.

	* operation/agentes/tactical.php: Removed 'fixed' styles, now using CSS.

	* operation/agentes/networkmap.php: Added ransep and font selectors. 
	Added alert under yellow color. Minor improvements.

	* operation/reporting/graph_viewer.php: Style update.

	* operation/menu.php: Visual console maps sort by name

	* images/background-li.gif: This sould replace <li> image.

	* general/login_page.php: Added build version on develop mode.

	* godmode/reporting/map_builder.php: Sorted lists, and shown module name 
	instead description.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@949 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-10 11:58:40 +00:00
slerena 8d36a5d045 2008-07-09 Sancho LErena <slerena@gmail.com>
* include/functions_html.php, include/functions_db.php,
        operation/agentes/ver_agente.php, operation/reporting/graph_viewer.php
        operation/reporting/custom_reporting.php, 
        godmode/reporting/reporting_builder.php: Some issues with ordered list
        resolved. Some strings are now converted to lowercase to have a real
        ordered (alphabetical) list.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@947 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-09 16:33:28 +00:00
slerena 54263a3a1a 2008-07-08 Sancho Lerena <slerena@artica.es>
*  include/functions_reporting.php: Basic support for async modules.
        General stats (tactical), do not shown async modules as uknown anymore.

        * operation/agentes/estado_agente.php,
        operation/agentes/estado_ultimopaquete.php: Support for async modules.

        * godmode/agentes/modificar_agente.php: Fixed stupid bug in search
        field in last commit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@943 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-08 20:30:15 +00:00
slerena e46ed7d89b 2008-07-08 Sancho Lerena <slerena@artica.es>
* include/config.php: Deleted. This file should not be included in SVN

        * images/so_aix.png: New icon for AIX systems.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@941 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-08 19:29:26 +00:00
Esteban Sanchez 0daf8ebf1d 2008-07-07 Esteban Sanchez <estebans@artica.es>
* godmode/reporting/graph_builder.php: Tab style correction.

        * godmode/reporting/reporting_builder.php: Button label renamed.

        * include/functions_db.php: Added functions from
        functions_reporting.php.

        * include/functions_reporting.php: Added missing documentation. Added
        check to avoid division by zero on alert_reporting(). Avoid $return
        flag as parameter in some functions.

        * include/functions_reporting_pdf.php: Avoid $return flag when calling 
        some functions.

        * operation/reporting/reporting_viewer.php: Do not use a span with 
        font-size when showing sla report.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@937 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-07 13:16:13 +00:00
Esteban Sanchez f744aa788d 2008-07-04 Esteban Sanchez <estebans@artica.es>
* operation/reporting/reporting_viewer.php: Added a loading div that
        appears while the page is loading and dissapear once it's completed.

        * include/styles/pandora.css, include/styles/pandora_minimal.css,
        include/styles/pandora_width.css: Added style to loading div.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@934 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-04 10:52:27 +00:00
Esteban Sanchez a4450bcd7f 2008-07-04 Esteban Sanchez <estebans@artica.es>
* operation/reporting/reporting_viewer.php: Fixed error when showing
        final SLA result.

        * include/functions_reporting_pdf.php: Added final SLA result.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@933 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-04 08:56:11 +00:00
Esteban Sanchez 89c0602b58 2008-07-02 Esteban Sanchez <estebans@artica.es>
* include/functions_html.php: Fixed a typo in print_table() that was
        causing to show nothing on IE.

        * include/styles/pandora.css: Rollback to #909 since it was not
        working properly in IE. Need more discusion.

        * include/styles/pandora_width.css: Added to repository. Testing style
        to have porcentual widths.

        * operation/agentes/estado_grupo.php: Rewritten to make the code
        cleaner and a bit smarter. Future work will be required to make the
        tooltips or the table better.

        * reporting/stat_win.php: Replaced include with require_once to
        speed up the code parsing, besides it was not working with the
        includes.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@931 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-03 15:13:14 +00:00
Esteban Sanchez 83ba482bd1 2008-07-02 Esteban Sanchez <estebans@artica.es>
* godmode/reporting/reporting_builder.php: Removed extra "#" in
        javascript.

        * godmode/reporting/map_builder.php: Changes to try working in
        Internet Explorer (not completed yet, it's really hard).

        * include/functions_db.php: Changed sever_status() It won't longer 
        return all the modules in pandora, since it's not need in this 
        function, also replaced a strange SQL which was using MAX() with a more
        logical DISTINCT(). Style correction.

        * include/styles/pandora.css: Removed #main width, so it's as wider as
        the parent. Fixed menu_tab_fram and menu_tab_frame_view divs to the
        new template, aligned to the right. Tab and blankspaces correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@930 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-03 11:47:53 +00:00
Esteban Sanchez 2a4b624826 2008-07-02 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Fixed typo in event_insert().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@918 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-02 12:44:18 +00:00
Esteban Sanchez a5c5c127d7 2008-07-02 Esteban Sanchez <estebans@artica.es>
* include/styles/pandora.css: Removed width on header div.

        * include/functions_db.php: Use id_user parameter in logon_db().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@917 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-02 12:40:58 +00:00
Esteban Sanchez bcd04b2130 2008-07-02 Esteban Sanchez <estebans@artica.es>
* general/logon_ok.php: Style correction.

	* include/languages/language_en.php: Added a couple of strings.
	
	* include/styles/pandora.css: Container div has now variable width, so
	Pandora console is wider now.

	* include/config.php: Replaced default values from last commit. Change
	homeurl variable, which now points to base url directory.

	* include/config_process.php: Style correction. Use pandora functions
	and indent the code properly.

	* reporting/fgraph.php, include/functions.php, ajax.php: Use
	require_once instead of require which speeds up the code parsing.
	
	* index.php: Use require_once instead of require which speeds up the
	code parsing. Add all GET and POST variables when refreshing a page.
	Style corrections. Use $_SERVER instead getenv.

	* include/functions_db.php: Avoid including config.php and use global
	instead. Replaced some id_user with the respective variable holds in
	config array. Replaced SQL syntax, removed an undeclared variable and
	renamed to english in event_insert(). Renamed
	return_moduledata_*_value() to get_agent_module_value_*(). Fixed an
	error in the sumatory when the module is incremental.

	* include/functions_reporting.php: Renamed return_module_SLA() to
	get_agent_module_sla().

	* include/functions_reporting_pdf.php: Tabs and blankspaces
	correction. Style correction. Added new reports rendering, and fixed
	images references. Removed old and deprecated functions.

	* operation/agentes/networkmap.php: Style correction.

	* operation/agentes/sla_view.php, reporting/stat_win.php: Use renamed
	functions.

	* operation/reporting/reporting_viewer.php: Table reports width are
	now wider. Fixed some colspan problems. Generate custom graph ids
	better. Added agent and module name to SLAs. Style correction in the
	use of rowclass structure since now each content has its own table.

	* operation/reporting/custom_reporting.php: Removed unused variable
	for PDF reporting generation link.

	* operation/reporting/reporting_viewer_pdf.php: Rewrite the code to
	make style corrections and use pandora functions.

	* operation/menu.php: Tabs and blankspaces correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@916 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-02 12:30:56 +00:00
slerena 5da9c1aa90 2008-07-01 Sancho Lerena <slerena@gmail.com>
* include/config_process.php: Default back to 1 week.

        * estado_monitores.php: Removed SLA check from there. Too slow for a 
        main view.

        * operation/agentes/ver_agente.php: Modified tabs to have SLA view.

        * operation/agentes/sla_view.php: New SLA specific view, show all
        automatic SLA coming from monitor data and add's individual items
        from a SLA report defined for any module of this agent.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@915 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-01 19:47:17 +00:00
jorgonzalez ca2703ef6c 2008-07-01 Jorge Gonzalez <jorge.gonzalez@artica.es>
* include/help/en/help_plugin_parameters.php,
        include/help/en/help_alert_recovery.php,
        include/help/en/help_prediction_source_module.php,
        include/help/en/help_snmpwalk.php,
        include/help/en/help_alert_type.php,
        include/help/en/help_network_component.php: Added new help pages.

        * include/help/en/help_map_builder.php,
        include/help/en/help_postprocess.php,
        include/help/en/help_recontask.php, include/help/en/help_alerts.php,
        include/help/en/help_manage_alerts.php: modified HTML tag.

        * godmode/agentes/module_manager_editor_network.php,
        godmode/agentes/module_manager_editor_plugin.php,
        godmode/agentes/module_manager_editor_prediction.php,
        godmode/agentes/alert_manager_editor.php,
        godmode/agentes/module_manager_editor_data.php,
        godmode/agentes/modificar_agente.php,
        godmode/agentes/agent_manager.php, godmode/alerts/configure_alert.php:
        Added/modified help support.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@912 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-01 11:26:17 +00:00
jorgonzalez 155c4f4bf9 2008-06-30 Jorge Gonzalez <jorge.gonzalez@artica.es>
* include/help/en/help_recontask.php: Added help page for Recon tasks.

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

        * godmode/agentes/module_manager_editor_wmi.php,
        godmode/servers/manage_recontask_form.php: Added support for inline
        help.

        * godmode/agentes/module_manager_editor_plugin.php, 
        godmode/agentes/module_manager_editor_data.php: Fixed buggy table,
        modified previously.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@911 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-30 16:42:19 +00:00
slerena e0fe5d3b27 2008-06-30 Sancho Lerena <slerena@artica.es>
* config_process.php, pandoradb_data.sql, setup.php: Added global 
	"sla_period" for default Monitor SLA calculation (in sec).
	
	* estado_monitores.php: By default now shows a SLA based on "sla_period"
	period. 

	* networkmap.php: Fixed layout to use overlap in all modes using different
	techniques, depending on graph type. Tested with different map layouts in
	size, topology and dimension.

	* agent_manager.php: Agent names are now show in order.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@910 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-30 16:38:26 +00:00
jorgonzalez 08389b349d 2008-06-30 Jorge Gonzalez <jorge.gonzalez@artica.es>
* include/styles/pandora.css: Added cursor style for inline help.

        * include/help/en/help_manage_alerts.php: Added help page for Alert
        management.

        * include/help/en/help_snmpcommunity.php: Added help page for SNMP
        community.

        * include/help/en/help_map_builder.php: Added help page for map
        builder.

        * include/help/en/help_postprocess.php: Checked spelling.

        * include/help/en/help_module_type.php: Added help page for Module
        type.

        * include/help/en/help_snmpoid.php: Added help page for SNMP OID.

        * include/help/en/help_alerts.php: Added help page for Alert
        configuration.

        * include/help/en/help_module_definition.php: Added help page for
        Module definition.

        * include/functions.php: Added cursor style for inline help.

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

        * operation/agentes/estado_grupo.php: Fixed wrong link and text, it is
        a group, not an agent.

        * operation/agentes/tactical.php: Fixed bug for empty values.

        * godmode/agentes/module_manager_editor_network.php,
        godmode/agentes/module_manager_editor_wmi.php,
        godmode/agentes/module_manager_editor_plugin.php,
        godmode/agentes/module_manager_editor_prediction.php,
        godmode/agentes/alert_manager_editor.php,
        godmode/agentes/module_manager_editor_data.php,
        godmode/agentes/agent_manager.php,
        godmode/modules/manage_network_components_form.php,
        godmode/reporting/map_builder.php, godmode/alerts/plugin.php,
        godmode/alerts/configure_alert.php: Added suppot for inline help.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@909 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-30 15:46:36 +00:00
slerena bb39747631 2008-06-30 Sancho Lerena <slerena@artica.es>
* agent_manager.php: Agent names are now show in order.

	* functions.php: Added a blank space in Help icon.

	* tactical.php: Added a few links in tactical view.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@906 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-30 12:34:23 +00:00
Esteban Sanchez 33992fd9e9 2008-06-30 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Renamed get_db_all_rows_sqlfree() to
        get_db_all_rows_sql(). Replaced all occurrences of old function name.

        * general/logon_ok.php, godmode/reporting/reporting_builder.php,
        operation/reporting/reporting_viewer.php, reporting/fgraph.php,
        include/functions_reporting.php: Replaced all occurrences
        ofget_db_all_rows_sqlfree() with get_db_all_rows_sql().

        * include/config_process.php: Do not add a slash to attachment_store 
        config variable.

        * include/functions.php: Style correction.

        * operation/agentes/estado_agente.php: Reduced one indentation level
        by using comprueba_login() propperly.

        * include/javascript/jquery.cluetip.js: Added to repository. jQuery 
        plugin to add cute tips support.

        * images/darrowdown.gif, images/darrowright.gif, images/darrowup.gif,
        images/darrowleft.gif, images/wait.gif, include/styles/cluetip.css: 
        Added to repository. Cute tips styling.

        * operation/agentes/networkmap.php: Added support to pretty tips to
        each node of the network map. Use a variable to define the name of 
        Pandora FMS node (maybe it would be a nice idea to let the user 
        configure it). Added an extra check for file existance when generating  
        the graphic. Use pandora functions in some cases. Style correction.

        * operation/agentes/ver_agente.php: Added AJAX support to get the
        current status of an agent to suit in a tooltip.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@903 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-30 08:11:10 +00:00
Esteban Sanchez 079c147e8b 2008-06-27 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Renamed variable from spanish.

        * include/functions_reporting.php: Splitted 
        agents_detailed_reporting() into agent_detailed_reporting() so now
        it's possible to get the report of a single agent. Also the table
        width of this report was reduced a bit to fit well in the console.

        * include/styles/pandora.css: Added style to agent reportings,
        basically a border.

        * operation/reporting/reporting_viewer.php: Separate each report into
        its own table. Flush the result to improve speed. Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@902 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-27 08:06:28 +00:00
Esteban Sanchez e28ac09264 2008-06-26 Esteban Sanchez <estebans@artica.es>
* ajax.php: Sed id_user in config array.

	* godmode/menu.php, general/header.php, operation/menu.php: Replaced
	lang_label with lang_string().

	* general/logon_ok.php: Reduced one indentation level.

	* godmode/agentes/agent_manager.php: Replaced lang_label with
	lang_string(). Use pandora functions.

	* include/functions_html.php, godmode/agentes/configurar_agente.php:
	Tab and blankspaces style correction.

	* godmode/reporting/map_builder.php: Complete rewritten to provide an
	intuitive way of build the maps. It's cool, useful and very simple.

	* godmode/reporting/reporting_builder.php: Deleted an output debug.

	* godmode/setup/setup.php: Rewritten to use pandora functions. Added a
	colorpicker for color settings.

	* include/config.php: Reset pandora password. We must solve things
	with this file...

	* include/functions.php: Check if input is an array on safe_input().
	Use filename as id in array returned by list_files().

	* include/functions_db.php: Renamed return_coordinate_* functions.
	Style correction.

	* include/javascript/jquery.js: Updated to 1.2.6.

	* include/javascript/jquery.ui.datepicker.js: Code minimized.
	
	* include/javascript/pandora.js: Style correction.

	* include/javascript/wz_jsgraphics.js: Added a class to the elements
	of a line, so it can be modified using javascript.

	* /include/styles/pandora.css: Added style to some tables dropdowns.
	Added new styles relative to visual map editor.

	* operation/reporting/reporting_viewer.php: Style correction. Added
	jQuery UI.

	* operation/visual_console/index.php: Use Pandora functions.

	* operation/visual_console/render_view.php: Drawing the map is now on
	functions_visual_map.php. Added a countdown if a refresh time is set.
	Use pandora functions. Style correction.

	* reporting/fgraph.php: Style correction. Use graphic_error() if
	there's no data on grafico_modulo_sparse().

	* images/trash.png: Added to repository. Image used on trash area on
	visual map editor.

	* images/console/background/africa.jpg,
	images/console/background/asia.jpg,
	images/console/background/europe.jpg, 
	images/console/background/north_america.jpg, 
	images/console/background/oceania.jpg, 
	images/console/background/shouth_america.jpg, 
	images/console/background/world.jpg: Added to repository. Useful and
	cool map backgrounds.

	* include/functions_visual_map.php: Added to repository. Implements
	visual map functions like drawing the map.

	* include/javascript/jquery.colorpicker.js: Added to repository.
	Implements a color picker widget.

	* /include/javascript/jquery.countdown.js: Added to repository.
	Implements a countdown widget.

	* include/javascript/jquery.ui.core.js: Added to repository. jQuery UI
	core.

	* include/javascript/jquery.ui.draggable.js: Added to repository.
	jQuery draggable plugin.

	* include/javascript/jquery.ui.droppable.js: Added to repository.
	jQuery droppable plugin.

	* include/javascript/pandora_visual_console.js: Added to repository.
	Function useful to visual map interface.

	* include/languages/countdown_*.js: Added to repository. Countdown
	localization.

	* include/languages/date_es_la.js, include/languages/date_gl.js,
	include/languages/time_es_la.js, include/languages/time_gl.js: Added
	to repository. Missing localizations.

	* include/styles/color-picker.css: Added to repository. Colorpicker
	style sheet.

	* include/styles/countdown.css: Added to repository. Countdown style
	sheet.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@899 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-26 13:26:48 +00:00
slerena 104cf0aa06 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
Esteban Sanchez ea487ad3cd 2008-06-23 Esteban Sanchez <estebans@artica.es>
* include/functions_reporting.php: Do not show alert tables if there's
        no fired alerts in the alert report. Use get_agents_in_group() in
        general_group_reporting() and agents_detailed_reporting().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@897 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-23 16:20:54 +00:00
Esteban Sanchez 82ab3f85aa 2008-06-23 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Deleted a debug output. list_group2 marked
        as deprecated function. Added get_user_groups(). Fixed an undefined 
        variable in return_moduledata_sum_value().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@896 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-23 16:07:00 +00:00
slerena 1bd3b7c38a 2008-06-23 Sancho Lerena <slerena@gmail.com>
*  include/functions.php, 
	agent_disk_conf_editor.php: FINALLY, fixed problem with slashes due
	to MAGIC_QUOTES. Some special input will be processed with new 
	function "unsafe_string" that detect MAGIC_QUOTES status and run
	stripslashes over string. Could be interesting to pass over some
	"safe" inputs (on godmode section only), where possible conflicting
	characters like "\" or "" can be passed as parameters.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@895 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-23 15:50:19 +00:00
slerena 2fdf0e435b 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
Esteban Sanchez f5a7114a87 2008-06-20 Esteban Sanchez <estebans@artica.es>
* functions_db.php: Fixed get_agents_in_group() to handle "All" group
        properly and make it capable to get disabled agents or not. Style
        correction. Fixed a typo in agent_add_address().

        * godmode/reporting/reporting_builder.php: Use get_agents_in_group()
        to get the agents in the group of the report, specially group "All".
        Added agent and module column to report content list when applies.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@893 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-23 11:50:11 +00:00
slerena 76a4ac5f0b 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 dc6e7d6fe2 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 f4757999f4 2008-06-19 Sancho Lerena <slerena@gmail.com>
* Fixed bad conflict resolution commit in functions_db.php



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@886 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-19 14:38:18 +00:00
slerena af5113e0dd 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
Esteban Sanchez 088ba4200b 2008-06-18 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Fixed an error on
        get_db_all_rows_sqlfree().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@883 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-19 13:58:23 +00:00
Esteban Sanchez 897f5f3ece 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
Esteban Sanchez f42b3c6003 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 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 bc41c199ab 2008-06-18 Esteban Sanchez <estebans@artica.es>
* include/styles/datepicker.css, include/styles/timeentry.css: Added
        to repository, date and time style sheets.

        * images/time-entry.png, images/down.png, images/up.png: Added to
        repository. Images of up and down arrows and time selection.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@877 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-18 11:21:02 +00:00