Commit Graph

1295 Commits

Author SHA1 Message Date
Esteban Sanchez 097637401f 2009-03-03 Esteban Sanchez <estebans@artica.es>
* general/main_menu.php: Operation and godmode menus files includes
	now the dependant files.

	* godmode/agentes/modificar_agente.php: Removed unnecessary
	require()
	
	* godmode/alerts/alert_list.php: Avoid notice for undefined index when
	calling max(). Added option to delete the template.

	* godmode/alerts/configure_alert_template.php,
	godmode/alerts/alert_templates.php: Fixed field2_recovery and
	field3_recovery updating.

	* operation/menu.php, godmode/menu.php: Require functions_menu.php.

	* include/config_process.php: Updated build version.

	* include/functions.php: Keep time in a static variable on
	get_system_time().

	* include/functions_db.php: Now a custom operation can be passed to
	format_array_to_where_clause_sql() if the field key is numeric.

	* include/functions_reporting.php: Return float value on
	get_agentmodule_sla(). Added required files.

	* include/functions_ui.php: Show template name on format_alert_row().
	Style correction.

	* operation/agentes/export_csv.php: Style correction.
	
	* operation/events/export_csv.php: Use pandora functions to fetch
	results. Fixed auth part. Style correction.

	* operation/reporting/custom_reporting.php: Fixed enterprise include.

	* operation/reporting/reporting_xml.php: Fixed auth part.

	* index.php: process_page_head() may looked for uninitialized
	$config["refr"].

	* include/styles/pandora_width.css: Fixed style for ol.steps



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1500 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-03 15:21:13 +00:00
guruevi 0d29d5e7e3 2009-03-02 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_reporting.php: Rewrote get_agentmodule_sla with
	faster calculations (count in SQL).
	
	* include/functions_ui.php: Added print_moduletype_icon that prints the
	whole (correct) icon including rollover text
	
	* include/functions_db.php: Updated some documenation and removed 
	deprecated functions that are now in the auth parts. Renamed 
	return_status_agent_module to get_agentmodule_status
	
	* operation/agentes/sla_view.php: Made it use the 2.0 SQL and HTML
	functions
	
	* godmode/agentes/configurar_agente.php: Fixed tab links
	
	* operation/events/events.php, include/functions_visual_map.php,
	operation/agentes/networkmap.php, operation/agentes/status_monitor.php,
	operation/agentes/estado_grupo.php, operation/agentes/ver_agente.php,
	operation/reporting/custom_reporting.php, 
	operation/reporting/reporting_viewer.php,
	operation/reporting/reporting_xml.php, godmode/setup/links.php,
	godmode/setup/setup.php, godmode/reporting/map_builder.php,
	godmode/reporting/reporting_builder.php: Fixed renamed functions

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1497 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-02 19:16:46 +00:00
Esteban Sanchez 3ed0b823c0 2009-03-02 Esteban Sanchez <estebans@artica.es>
* include/functions_menu.php: Added to repository. Functions for menu.

	* operation/menu.php, godmode/menu.php: Added class to menu due to
	changes in print_menu().

	* general/main_menu.php: temp_print_menu() moved to functions_menu.php 

	* include/functions_themes.php: Added to repository. Implement
	functions relative to themes (only CSS themes list at this moment).

	* include/styles/pandora.css, include/styles/pandora_black.css,
	include/styles/pandora_minimal.css, include/styles/pandora_red.css:
	Added author, name and description comments to adopt to new
	get_themes() interface.

	* include/styles/pandora_width.css: Improved and make lighter by
	simply rewrite some classes.

	* include/functions.php: Added is_ajax().

	* godmode/agentes/module_manager_editor.php,
	godmode/alerts/alert_actions.php, godmode/alerts/alert_commands.php,
	godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
	godmode/alerts/alert_templates.php, godmode/groups/group_list.php,
	godmode/reporting/map_builder.php,
	godmode/reporting/reporting_builder.php,
	operation/agentes/estado_agente.php, operation/agentes/ver_agente.php,
	operation/events/events.php, operation/messages/message.php: Use
	is_ajax()

	* godmode/setup/setup.php: Use enterprise_include() instead of manual
	checking. Use get_css_themes() to show the theme list.

	* include/styles/common.css: Added to repository. Minimal styles to
	make pandora works and common with all the CSS themes.

	* include/functions_ui.php: Added common.css file.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1496 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-02 13:43:15 +00:00
Esteban Sanchez 12d47a5547 2009-02-27 Esteban Sanchez <estebans@artica.es>
* godmode/groups/configure_group.php: Removed javascript console.log

	* godmode/reporting/map_builder.php: Fixed typo on file_exists()

	* include/functions.php: Added format_integer_round().

	* include/functions_db.php: Added fields to get_db_row(). Array values
	to make "IN" SQL statements were in wrong function. Added support for
	order in format_array_to_where_clause_sql().

	* include/functions_events.php: Added get_event(). Fixed
	print_event_type_img() which causes double printing in some cases.

	* operation/events/events.php: Added get_event_tooltip AJAX operation.
	Style correction by replacing $row with $event.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1495 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-27 12:48:05 +00:00
guruevi 3a2aa94165 2009-02-26 Evi Vanoost <vanooste@rcbi.rochester.edu>
* godmode/setup/setup.php: Unchecked checkboxes don't transfer any value
	so must default to 0 in order to work.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1491 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-26 17:17:00 +00:00
Esteban Sanchez ec7b3c558a 2009-02-26 Esteban Sanchez <estebans@artica.es>
* include/functions_events.php: Added get_events() function. Replaced
	"..." with html entity and reuse previously calculated value.

	* include/functions_reporting.php: Fixed get_agent_module_sla() to
	allow no max value to be checked. That was causing some errors on
	monitor reports.

	* operation/agentes/sla_view.php,
	operation/reporting/reporting_xml.php,
	operation/reporting/reporting_viewer.php: Do not use max value on
	monitor SLA.
	
	* operation/events/events.php: Replaced exit for return.

	* include/functions_db.php: Added support for arrays in
	format_array_to_update_sql() that will be transformed to a "IN ()"
	statement.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1489 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-26 15:34:14 +00:00
Esteban Sanchez 96e53bd4e0 2009-02-26 Esteban Sanchez <estebans@artica.es>
* include/config_process.php, index.php: Added generated timer count as
	a HTML comment at the bottom.

	* include/functions_ui.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1488 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-26 12:09:21 +00:00
Esteban Sanchez c7d84b29c2 2009-02-26 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added support for queries elapsed time in
	print_database_debug().

	* operation/events/events.php: Style correction.

	* reporting/fgraph.php: Allow boolean graphics to get a starting date.

	* general/footer.php: Use config['debug'] instead of developer_bypass.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1487 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-26 09:08:48 +00:00
Esteban Sanchez 88b817ee9b 2009-02-25 Esteban Sanchez <estebans@artica.es>
* include/functions_ui.php: Fixed typo that makes incorrect argument
	list in debug().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1486 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-25 15:15:14 +00:00
guruevi 0fa74b5974 2009-02-25 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_reporting.php: Thanks to Esteban's functions found out
	some bad performers. Fixed it
	
	* include/auth/ldap.php: Calling get_system_time() 800 times is too much.
	Moved it to a variable.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1485 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-25 15:04:26 +00:00
Esteban Sanchez cbbe1a0b1f 2009-02-25 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Do not show errors on sql_error_handler()
        if debug flag is active. Removed return flag to print_database_debug() 
        because it was causing memory allocation errors. For the same reason,
        the table is printed each 100 elements.

        * index.php: Run print_database_debug() after the flush.

        * include/functions.php: Removed deprecated pandora_debug()



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1484 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-25 13:48:40 +00:00
Esteban Sanchez b6a6b3fe90 2009-02-25 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added database debug support. If the debug
	flag in config is set, a table with all the queries done in a page is
	shown. To do so, add_database_debug_trace() and print_database_debug()
	were added.

	* include/functions_ui.php: Added debug() function which shows a
	given variable content and a traceback which can be toggled to make
	developers life easier.

	* index.php: Print database debug table.

	* include/styles/pandora.css: Styles for debug functionallity.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1483 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-25 12:24:06 +00:00
Ramon Novoa d579ec4ea3 2009-02-24 Ramon Novoa <rnovoa@artica.es>
* win32/modules/pandora_module_proc.cc,
          win32/modules/pandora_module_proc.h,
          win32/modules/pandora_module_factory.cc,
          win32/pandora_windows_service.cc: Fixed some 'work in progress'
          code from previous commit.

        * win32/pandora.cc: Updated version string.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1482 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-24 18:50:16 +00:00
guruevi 1845c221aa 2009-02-24 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: Fixed where clause
	
	* images/groups_small/printer.png: Added printer icon to groups since
	it might be useful to create a separate printer group

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1481 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-24 17:32:29 +00:00
guruevi f7702dd084 2009-02-24 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/config_process.php: Added compact_header. If you want to
	save on server hits and increase performance (slightly) enable it.
	Page loads (on my system) ~500ms faster and feels faster since it 
	doesn't block the page while waiting on css and javascript

	* include/functions_agents.php: Moved process_manage_config from 
	configurar_agente.
	
	* include/functions_ui.php: Added compact_header functionality
	
	* include/functions_html.php: Fixed some id issues which caused
	manage_config to not work correctly. id's can't have [] in them.
	Also fixed the comparison for numeric (string to int) comparisons
	
	* include/styles/pandora.css: Moved @import to functions_ui.php
	
	* godmode/agentes/manage_config.php: Fixed ids and some validation
	
	* godmode/agentes/configurar_agente.php, godmode/agentes/agent_manager:
	Fixed HTML output and use functions for images
	
	* godmode/setup/setup.php: Added compact_header to setup

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1480 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-24 16:31:02 +00:00
Esteban Sanchez cfcb9c24ef 2009-02-24 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Fixed a bug in
	format_array_to_where_clause_sql() when only offset and limit where
	given. A new parameter was added to solve it, so the behaviour is a
	bit different now (take a look to the doc examples). Changes were also
	done in other functions to reflect this new situation.

	* include/functions_alerts.php, include/functions_modules.php: Updated
	to changes in format_array_to_where_clause_sql()

	* include/functions_ui.php: Added a class to each link of the
	paginator. Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1479 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-24 16:24:02 +00:00
jorgonzalez 876864faeb 2009-02-24 Jorge Gonzalez <jorgegonz@svn.gnome.org>
* linux/pandora_agent.conf: fixed typo.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1478 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-24 11:26:01 +00:00
Esteban Sanchez 12e7f2dfc6 2009-02-24 Esteban Sanchez <estebans@artica.es>
* include/auth/mysql.php: Added get_user_id(). Removed field check on
	create_user(). Allow to pass an structure to the functions and use
	get_user_id() when needed.

	* include/auth/ldap.php: Added get_user_id().

	* include/functions_db.php: Improved get_group_users() to return real
	users instead of tusuario_perfil values. Also a filter parameter was
	added.
	
	* include/functions_messages.php: Use get_user_id() on
	create_message_group() because get_group_users() now returns
	user structures. Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1477 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-24 11:20:34 +00:00
Esteban Sanchez 206804a9e1 2009-02-24 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added get_db_row_filter(). Added
        documentation for get_db_all_rows_sql_filter().
        Removed get_db_array() since it was already implemented in
        get_db_value_filter() and did not matches the code guidelines. Style 
        correction of variable names.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1476 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-24 10:20:15 +00:00
Esteban Sanchez 4aa1135451 2009-02-23 Esteban Sanchez <estebans@artica.es>
* include/javascript/jquery.pandora.controls.js: Changed agent and
	module selector to allow any kind of object instead of only an id.
	Tiny changes to allow multiple elements in a page.

	* include/functions_html.php: Added a separator for duplicated select
	elements (it's useful sometimes to get this number with javascript and
	using a separator helps)

	* godmode/agentes/manage_delete.php,
	godmode/agentes/manage_config.php: Fixed agent and group selector to
	fits changes in pandora.controls.js.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1475 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-23 16:23:58 +00:00
Esteban Sanchez 6a37411c63 2009-02-23 Esteban Sanchez <estebans@artica.es>
* include/functions_html.php: Fixed id counter on print_select.

	* include/functions_db.php: Documentation style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1474 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-23 15:04:32 +00:00
Esteban Sanchez 7991f8af1b 2009-02-23 Esteban Sanchez <estebans@artica.es>
* godmode/reporting/map_builder.php: Use process_sql_update and
	process_sql_insert instead of generating SQL sentences. Added
	wz_jsgraphics to draw the lines. Do not draw any lines if no map is
	selected.

	* include/functions_db.php: Moved return_status_layout() to
	functions_visual_map.php (and renamed to get_layout_status()). Allow
	passing a string to get_db_all_rows_filter()
esteban@silviojose:~/work/src/pandora/pandora_console$ head -30 ChangeLog 
2009-02-23  Esteban Sanchez  <estebans@artica.es>

	* godmode/reporting/map_builder.php: Use process_sql_update and
	process_sql_insert instead of generating SQL sentences. Added
	wz_jsgraphics to draw the lines. Do not draw any lines if no map is
	selected.

	* include/functions_db.php: Moved return_status_layout() to
	functions_visual_map.php (and renamed to get_layout_status()). Allow
	passing a string to get_db_all_rows_filter()

	* include/functions_visual_map.php: Moved get_layout_status() from
	functions_db.php. Added get_user_layouts().

	* operation/visual_console/index.php: Use get_user_layouts() to fetch
	layouts.

	* operation/visual_console/render_view.php: Added wz_jsgraphics and
	changed direct config manipulation with require_javascript_file().

	* godmode/reporting/reporting_builder.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1473 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-23 13:41:40 +00:00
Esteban Sanchez a6d299dcf7 2009-02-23 Esteban Sanchez <estebans@artica.es>
* images/pixel_black.png: Added to
        repository.

        * include/functions_reporting.php: Fixed in_array() parameter order.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1472 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-23 11:17:57 +00:00
guruevi e33f20f460 2009-02-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandoradb_migrate_20_to_21.sql, pandoradb.sql: Fixed going up/down
	strings
	
	* godmode/setup/setup.php: Fixed event hours display
	
	* operation/events/events.php: Fixed several major bugs with pagination
	and the new event types.
	
	* include/functions.php, include/functions_ui.php, 
	include/functions_html.php: Moved pagination and print_help_tip to 
	functions_ui.php. Repeat id's are now fixed backwards compatible. 
	Also fixed a bug in print_select where type comparisons against would 
	fail since PHP evaluates strings to (int) 0
	
	* include/functions_events.php: Added print_event_type_img () and altered
	the other functions to work with it

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1471 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-20 21:48:09 +00:00
Esteban Sanchez bc7bec3db9 2009-02-20 Esteban Sanchez <estebans@artica.es>
* styles/pandora.css: Added input.add to a list which was missing.
        Aligns labels to the left.

        * pandoradb_data.sql: Fixed link to ArticaST.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1470 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-20 12:10:50 +00:00
guruevi fd22412aed 2009-02-19 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandoradb_migrate_20_to_21.sql, pandora_db.sql: Altered tmensajes for
	unixtime
	
	* general/header.php: New messages function added flashing 
	acknowledgment in case of new messages
	
	* general/logon_ok.php: Since messages are now in header, they don't need
	to be there per se
	
	* images/close.png, images/transparent.png: Background and close button
	for overlays.
	
	* include/javascript/jquery.pandora.js: Used for loop for flashing thing
	and added overlay function
	
	* include/javascript/jquery.overlay.js: You'll need this for overlay
	
	* include/functions_messages.php: Message functions are here. Messages are
	fully abstracted so they can be drop-in replaced with something else
	
	* include/functions_ui.php: Small fixes. Not necessary to load en language
	files for javascript since they're empty, it only adds to load/interpret
	
	* include/functions_db.php: Added get_group_users and get_db_array. Useful
	
	* include/functions_html.php: Small doc fixes and fixed table heads
	
	* include/styles/pandora.css: Added Overlay classes

	* ajax.php: We need to call safe_url_extraclean for cross scripting
	
	* operation/messages/message.php: Rebuilt to use new functions
	
	* operation/menu.php: New message link instead of group link
	
	* operation/visual_console/render_view.php: Fixed conflict with timer
	
	* index.php: Added div for overlay (not in pure mode) and fixed erroneous
	div in pure mode.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1469 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-19 21:34:27 +00:00
Esteban Sanchez 94e68ab74b 2009-02-19 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/manage_delete.php: Fixed an error when no agent is
        selected.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1468 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-19 16:13:38 +00:00
Esteban Sanchez 659a08125f 2009-02-19 Esteban Sanchez <estebans@artica.es>
* include/functions_ui.php: Added require_css_file(),
	require_javascript_file() and require_jquery_file() to add CSS,
	javascript and jQuery files to the header easily without changing
	config object. A path parameter is addded to allow the use on
	enterprise code.

	* include/functions_db.php: Added
	get_db_value_filter(), get_db_all_rows_filter() and
	process_sql_delete(). Fixed delete_agent() style and use these
	functions. Added process_page_head() from functions_ui.php and changed
	a bit the config javascript object part.

	* include/functions_custom_graphs.php: Get results indexed by id on
	get_user_custom_graphs().

	* include/functions.php: Moved process_page_head to functions_ui.php.
	
	* godmode/agentes/manage_delete.php: New interface to perform massive
	agents deletion.

	* godmode/menu.php: Added new option to massive agents deletion.

	* general/main_menu.php, godmode/agentes/manage_config.php,
	godmode/agentes/module_manager_editor.php,
	godmode/agentes/planned_downtime.php,
	godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
	godmode/alerts/configure_alert_compound.php,
	godmode/alerts/configure_alert_template.php,
	godmode/reporting/map_builder.php, operation/agentes/networkmap.php,
	operation/reporting/reporting_viewer.php,
	operation/visual_console/render_view.php: Use new functions in include
	CSS and javascript files.

	* index.php: Bit of style when printing the header so the HTML can be
	readed easily in a editor.

	* include/javascript/pandora.js: Added a variable to determine the
	enterprise directory.

	* include/styles/pandora.css: Added style for manage_delete.php



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1467 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-19 16:10:04 +00:00
Esteban Sanchez 0d5884b55c 2009-02-18 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/alert_manager.php: Removed from repository. Agent
	alerts manager is now done in alerts/alert_list.php

	* godmode/agentes/manage_config.php, godmode/alerts/configure_alert,
	godmode/agentes/configurar_agente.php: Use alerts/alert_list.php
	instead of deleted agentes/alert_manager.php.

	* godmode/alerts/alert_list.php: It can handle now a list of agents or
	be included by configurar_agente. Now it's a single page to manage all
	the alerts defined in agents.

	* godmode/reporting/map_builder.php: Javascript style correction.

	* include/javascript/jquery.pandora.controls.js: Added
	pandoraSelectAgent which allows the loading of a module list from an
	agent list.

	* include/styles/pandora.css: Styles for alert_list.

	* include/functions_agents.php: Added options to
	get_agent_alerts_compound() and get_agent_alerts_simple() to add extra
	user filtering.

	* pandoradb.sql, pandoradb_migrate_20_to_21.sql,
	include/functions_alerts.php: Actions in an alert module has now id or
	they cannot be removed.

	* include/functions_db.php: format_array_to_where_clause_sql() can now
	get limit and offset values.

	* include/functions_html.php: Removed select- prefix to print_select
	elements because it was breaking javascript code. Needs more works on
	that.

	* operation/agentes/estado_agente.php: Added
	get_agent_module_last_value AJAX operation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1466 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-18 12:29:30 +00:00
guruevi 0f4f36dcf9 2009-02-17 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/login_ok.php, operation/visual_console/index.php,
	operation/visual_console/render_view.php: Small cosmetic fixes
	
	* include/functions_visual_map.php: Cosmetic fixes and put the if/elseif
	statements in a simpler switch statement
	
	* include/functions_db.php: dame_grupo_icono is now get_group_icon

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1465 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-17 21:37:39 +00:00
slerena 84358ba9a3 2009-02-17 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: treport_content, changed report type to string to allow
	new report types without altering DB schema. Added id_agent for supporting
	reports based on agent ids.  Tplugin new field for plugin type in order to
	support generic Nagios plugins.
	
	* pandoradb_migrate_20_to_21.sql: Updated with last changes.
	
	* module_manager_editor_common.php: Removed some ugly labels :-)
	
	* reporting_builder.php: New report (Agent detailed and grouped 
	event/alerts). Added support to add descriptions in each block.
	
	* plugin.php: Support for new plugin type option.
	
	* config_process.php: Build update.
	
	* functions.php: Updated new report type.
	
	* functions_db.php: Added support for new report type.
	
	* functions_reporting.php: Fixed problem with enterprise. Added new function
	to support new reports.
	
	* events.php: Support for grouping events. Fixed graph problem. Added quick
	search link to event fulltext.
	
	* reporting_viewer.php: Added support for adding descriptions in each block.
	Also show new report type.
	
	* fgraph.php: Fixed problem in event graph.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1464 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-17 20:39:42 +00:00
guruevi f908647932 2009-02-17 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/login_page.php: Fixed HTML and use print_image function
	
	* include/functions.php: Added version compare for alternative to
	double encoding HTML for PHP < 5.2.3
	
	* include/functions_ui.php: Check for empty string on print_string_substr
	so we don't print empty spans
	
	* include/functions_html.php: Better validation and correct output on
	print_input_text_extended. Now accepts an array for attributes
	
	* operations/user/user.php, operations/user/user_edit.php, 
	godmode/user/user_list.php: Small cosmetic fixes
	
	* index.php: flush and print closing html tag on exits. This prevents
	automatic flushing to print tags after </html>.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1463 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-17 18:20:04 +00:00
Esteban Sanchez 1b74ca3bef 2009-02-17 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/module_manager_editor.php: Added
	get_module_components operation to AJAX interface. Avoid error
	reporting on snmprealwalk so the JSON doesn't fail. Added support for
	component group selection. Do nothing if the selected component is
	zero.

	* godmode/agentes/module_manager_editor_common.php: Added
	add_component_selection() which makes the task of adding a module
	component to the editor easier and common. It also now filters based
	on component groups first.

	* godmode/agentes/module_manager_editor_network.php,
	godmode/agentes/module_manager_editor_wmi.php: Use
	add_component_selection() instead of duping the code.

	* include/styles/pandora.css: Added style to component elements.

	* include/functions_db.php: Avoid numeric field names on
	format_array_to_where_clause_sql().

	* include/functions_modules.php: Added get_network_components() and
	get_network_component_groups().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1462 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-17 12:17:10 +00:00
raulmateos c3abf055e1 2009-02-16 Raul Mateos <raulofpandora@gmail.com>
* include/config_process.php: Update build after last changes.
	* operation/events/events.php: Now the legend is shown only if there are
	events, just a cosmetic change.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1461 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-16 17:09:41 +00:00
Esteban Sanchez ad1c804342 2009-02-16 Esteban Sanchez <estebans@artica.es>
* include/javascript/jquery.pandora.controls.js: Added to repository.
	New file to hold all common jQuery Pandora operations. Currently it
	holds a generic process to loads a list of agents from a group
	dropdown menu.

	* godmode/agentes/manage_config.php: Loading spinners moved next to
	the label because it was causing some ugly flickers due to 100%
	width elements. Use code from jquery.pandora.controls.js.

	* godmode/alerts/alert_compounds.php: Rewritten to be more user
	friendly. Filtering is now possible. New operations like
	enable/disable or delete are now available.

	* include/styles/pandora.css: Added style for alert_compounds.php.

	* include/functions.php: Make offset parameter optional in
	pagination(). Style correction.

	* include/functions_alerts.php: Added delete_alert_compound().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1460 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-16 16:23:30 +00:00
jorgonzalez 6a73cfab72 2009-02-16 Jorge Gonzalez <jorgegonz@artica.es>
* godmode/agentes/module_manager_editor_common.php: Changed string  
          so it is the same as other used before.

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

        * include/languages/pt_BR.po, include/languages/nl.mo, 
        include/languages/es.po, include/languages/it.mo,
        include/languages/pt_BR.mo, include/languages/es.mo,
        include/languages/da.po, include/languages/de.po, include/languages/he.po,
        include/languages/eu.po, include/languages/da.mo, include/languages/de.mo,
        include/languages/he.mo, include/languages/eu.mo, include/languages/nl.po,
        include/languages/it.po: Updated translations from Rosetta.

        * include/languages/index.pot: Updated po template.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1458 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-16 14:02:34 +00:00
Esteban Sanchez 7e7b4cbaad 2009-02-16 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/alert_manager.php: Moved AJAX interface for
	get_agent_alerts_simple operation here.

	* godmode/agentes/manage_config.php: Complete rewritten to give
	support to new alert system and a new improved UI.

	* godmode/alerts/configure_alert_compound.php: Removed AJAX code
	relative to groups and agents. Include jQuery and style files with the
	new way.
	
	* godmode/groups/group_list.php: Moved AJAX interface for
	get_group_agents operation here.

	* include/styles/pandora.css: Added styling for new manage config
	interface. Added style for fieldset elements.

	* include/functions_alerts.php: Added filter parameter to
	get_alerts_agent_module(). Added
	copy_alert_agent_module_to_agent_module().

	* include/functions_db.php: Added special character * to
	get_agent_modules() to get all the row. Added
	format_array_to_where_clause_sql() to transform an array of values to
	a WHERE clause. Use this function in process_sql_update().

	* include/functions_modules.php: Added to repository. New file to add
	modules operation functions. Added copy_agent_module_to_agent()

	* operation/agentes/ver_agente.php: AJAX interface for
	get_agent_modules_json can now receive an additional filter.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1457 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-16 12:18:42 +00:00
guruevi 176f33d738 2009-02-13 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/logon_ok.php: Simplified and added correct ampersand tags
	
	* general/footer.php: Now use print_image function to print image
	
	* general/main_menu.php: Wrapped JS into CDATA
	
	* include/functions_events.php: Use print_image to print images. Use
	multibyte so Farsi/Arabian names don't mess up when cut. Also added
	&shy; tags every 8 characters to the Event Description so that long module
	names (like GigabitEthernet) don't break the table layout.
	
	* include/functions.php: Moved pandora_help to functions_ui.php, return
	valid refresh links and don't double encode safe_input (otherwise &amp;
	gets encoded as &amp;amp;)
	
	* include/functions_ui.php: Added print_help_icon and deprecated 
	pandora_help (new style function naming)
	
	* include/functions_html.php: Partially rewrote print_image for fully
	compatible functionality. Much simplified as well.
	
	* extensions/update_manager.php: Print out correct link and image tag
	
	* operation/agentes/networkmap.php: Is now correct HTML. Should work in
	all compliant browsers. If IE6 still doesn't work, upgrade
	
	* operation/agentes/tactical.php: Use print_image for images.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1456 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-13 20:23:44 +00:00
slerena ef4af07eaf 2009-02-13 Sancho Lerena <slerena@artica.es>
* operation/events/events.php: Added new feature: Group similar event by
	showing the event and the total repeated times.
	
	* operation/agentes/export_csv.php, 
	operation/agentes/exportdata.php: Fixed problems with old timestamp.
	
	* operation/agentes/estado_monitores.php: Fixed link to module edition.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1455 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-13 15:05:23 +00:00
Ramon Novoa 54ede8e593 2009-02-13 Ramon Novoa <rnovoa@artica.es>
* windows/pandora_wmi.cc
          windows/pandora_wmi.h
          modules/pandora_module_exec.cc: Hide console window when executing
          exec modules.

        * modules/pandora_module_proc.cc,
          modules/pandora_module_proc.h,
          modules/pandora_module_factory.cc: Added module_retries,
          module_startdelay and module_retrydelay options to proc
          modules.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1454 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-13 14:34:10 +00:00
guruevi 91b247a557 2009-02-12 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/footer.php, general/links_menu.php: _new is invalid. Use _blank 

	* include/config_process.php: Updated error texts for better English
	
	* include/calendar.php: Removed since nobody uses it anymore
	
	* include/functions.php: Modified process_page_header to not load
	wz_jsgraphics by default (it's too heavy and hardly used). Deprecated
	no_permission and unmanaged_error (since they're not used)
	
	* include/styles/timeentry.css, include/styles/pandora.css, 
	include/styles/ie.css: Merged these styles together so there is no extra
	query for 2 css classes
	
	* operation/reporting/reporting_viewer.php: Removed comparison since
	time comes from the client and if the clock is a bit off it gives error.
	Also removed reference to timeentry.css
	
	* godmode/alerts/alert_list.php: Uses new method to load css and jquery
	which prevents error of <link> tags being in body
	
	* godmode/agentes/planned_downtime.php: Removed timeentry reference and 
	fixed HTML in between.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1453 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-12 21:04:02 +00:00
guruevi 932a41594a 2009-02-11 Evi Vanoost <vanooste@rcbi.rochester.edu>
* bin/pandora_server: Fixed Data server. Wouldn't start because of 
	mismatched arguments.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1452 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-12 16:22:18 +00:00
Esteban Sanchez 72087be96d 2009-02-12 Esteban Sanchez <estebans@artica.es>
* include/javascript/jquery.tablesorter.js,
	include/javascript/jquery.tablesorter.pager.js: Added to repository.
	Missing files for compound alerts editor.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1450 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-12 11:26:16 +00:00
Esteban Sanchez 1c2b3c35ad 2009-02-12 Esteban Sanchez <estebans@artica.es>
* main.cc: Added new parameter to help text.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1449 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-12 11:08:26 +00:00
Esteban Sanchez 14991124f3 2009-02-12 Esteban Sanchez <estebans@artica.es>
* godmode/alerts/configure_alert_compound.php: Added support to
        update alert elements. Also default operator for first element is NOP.

        * include/functions_alerts.php: Added delete_alert_compound_elements().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1448 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-12 10:33:49 +00:00
slerena 00c665490b 2009-02-11 Sancho Lerena <slerena@artica.es>
* bin/pandora_network: Restored lock for icmp / ping calls.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1447 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-12 09:50:49 +00:00
Ramon Novoa 292eaa2e65 2009-02-11 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DB.pm: Combined alerts are working again.

        * bin/pandora_snmpconsole: Moved calcula_alerta_snmp to DB.pm so it
          can be called from other modules.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1445 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-11 18:21:24 +00:00
slerena 1305f72464 2009-02-11 Sancho Lerena <slerena@artica.es>
* pandoradb_migrate_20_to_21.sql: Fixed typo.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-11 17:28:39 +00:00
Esteban Sanchez e94a8f0fcf 2009-02-11 Esteban Sanchez <estebans@artica.es>
* general/main_menu.php, include/styles/menu.css: Selected menu style
	is done with a CSS classs. Slide effect removed. Submenus have now
	white background.

	* godmode/agentes/alert_manager.php: Allow creation of alerts without
	actions which have sense in compound alerts.

	* include/javascript/jquery.pandora.js: Added showMessage() function.

	* godmode/agentes/module_manager_editor.php: Use new showMessage()
	jQuery function.

	* godmode/alerts/configure_alert_compound.php: Added to repository.
	New compound alert editor interface.

	* godmode/alerts/alert_compounds.php: Added to repository. Compound
	alert list.

	* godmode/alerts/configure_alert_template.php: Better style for steps
	of the editor.

	* godmode/menu.php: Added compound alerts option. Changed default page
	on Manage alerts.

	* include/styles/pandora.css: Added style for editor steps. Added new
	generic classes.

	* include/functions.php: Added a new line when creating script list.

	* include/functions_agents.php: Fixed alert tables fields. Renamed
	get_agent_alerts_compound() and improved the returning value of
	get_agent_alerts().

	* include/functions_alerts.php: Added new functions to manage compound
	alerts. Avoid SQL errors when using process_sql functions.

	* include/functions_reporting.php: Temporary disabled compound alert
	reports.

	* include/functions_ui.php: Fixed format_alert_row() to fit compound
	alerts.

	* operation/agentes/alerts_status.php: Allow compound alert
	validation. Removed effect of cluetip.

	* pandoradb.sql, pandoradb_migrate_20_to_21.sql: New compound alert
	tables (talert_compound, talert_compound_elements and
	talert_compound_actions).
	
	* godmode/alerts/alert_list.php: Added to repository. Shows a list of
	all the alerts defined. Would be improved in the future to allow
	sorting and filtering.

	* index.php, godmode/snmpconsole/snmp_alert.php,
	include/functions_db.php: Code style correction.

	* godmode/agentes/configurar_agente.php: Removed old compound alerts
	code



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1443 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-11 16:55:04 +00:00
slerena 2a0d997cf1 2009-02-11 Sancho Lerena <slerena@artica.es>
* godmode/reporting/reporting_builder.php: Added 3-month period



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1442 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-11 16:47:53 +00:00