Commit Graph

1383 Commits

Author SHA1 Message Date
guruevi e615a6be89 2009-04-06 Evi Vanoost <vanooste@rcbi.rochester.edu>
* reporting/fgraph.php: Simplified agent access to reduce looping
	
	* reporting/pChart/pChart.class: Found problem where the graph was
	looping with certain data when the Scale1 was exactly 1

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1599 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-06 15:33:08 +00:00
slerena 2e566a1738 2009-04-06 Sancho Lerena <slerena@artica.es>
* godmode/setup/setup.php
	* godmode/setup/setup_visuals.php
	* include/config_process.php,
	* include/functions_config.php: Added new parameter for status icons. 
	Old config (fontpath and attachment dir are now manageable in setup).

	* include/functions_ui.php,
	godmode/servers/modificar_server.php
	operation/agentes/status_monitor.php
	operation/agentes/estado_agente.php
	operation/agentes/bulbs.php
	operation/agentes/estado_monitores.php
	operation/agentes/tactical.php
	operation/servers/view_server.php: Added support for custom status
	images.

	* images/status_sets: Added three new status images pack: Default color
	icons, faces and color with text.
	
	* reporting/fgraph.php: Temporal FIX for problem in access graphs that
	takes 100% Apache CPU !!!. Need final fix for this.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1598 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-06 11:02:05 +00:00
slerena 779b4a36f2 2009-04-03 Sancho Lerena <slerena@artica.es>
*  include/functions_alerts.php: Fixed another notice.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1597 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-03 12:13:07 +00:00
slerena caa687fd2c 2009-04-03 Sancho Lerena <slerena@artica.es>
* include/functions_reporting.php,
	* include/functions_db.php: Fixed a notice who breaks the PDF report.
	Added homeurl preffix to some includes that breaks PDF reporting.

	* pandora_console_upgrade: Fixedd issue with old-style config.php.

	* godmode/alerts/alert_list.php: Fixed bad combo values (ID insted names).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1596 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-03 10:44:26 +00:00
slerena 74ea22afb0 2009-04-02 Sancho Lerena <slerena@artica.es>
*  pandora_agent_installer: Some corrections for new tentacle install.
	
	* pandora_agent_daemon: Some corrections for startup script.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1595 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 19:22:05 +00:00
slerena 36426d4c9e 2009-04-02 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Final DB changes proposed for closing this month the DB
	scheme. tagente-> new server_name field to assign server (old fields will
	be removed).  talert_templates has two new types (warning, critical).
	tevento has "user_comment" new field. Tserver has three new fields, 
	server_type (so some old fields will be deleted), threads and queued_modules
	this last two are for statistical options. Tusuario add language type to
	override global language.
	
	* update_manager/main.php: Minor changes for correct ACL usage. Non PM
	users could see in what revision it the system, but only that.
	
	* pandoradb_migrate_v2.x_to_v3.0.sql: Updated script for new DB changes.
	
	* general/noaccess.php: Added footer and ending div. Page was very ugly
	when showing noaccess errors, nobody see it ???.
	
	* godmode/menu.php: A LOT of ACL fixes on several options.
	
	* godmode/agentes/agent_manager.php: Fixed a crazy floating icon.
	
	* godmode/agentes/manage_config_remote.php: A LOT of changes, rewriting
	stuff, because was not working. This also adds a lot of ACL checks. 
	
	* godmode/agentes/massive_config.php, massive*: ACL changes.
	
	* godmode/agentes/modificar_agente.php: Fixed ACL problems.
	
	* godmode/agentes/module_manager_editor.php: Fixed bad module categories for
	some types (data, plugin and prediction).
	
	* godmode/alerts/alert_list.php: Fixed ACL problem.
	
	* godmode/reporting/graph_builder.php: Added ACl restriction for 
	non-viewable agents for current user. Seems to be a problem with data
	with more than 2 sources.
	
	* godmode/reporting/map_builder.php: ACL checks improved.
	
	* godmode/reporting/reporting_builder.php: ACL checks added (was missing), 
	some code ported from 2.1, other is new. New fields shown in list.
	
	* include/functions.php: Fixed the annoying bug of "bad counters" in
	function human_time_description_raw(). Function used,format_numeric() should
	not be used never to calculate nothing, only to print formatted strings.
	
	* include/functions_db.php: Added function user_access_to_agent() to know
	if a given user has access to a given agent.
	
	* include/functioins_report.php: get_report() should let admin to watch any
	report. Fixed.
	
	* agentes/alerts_status.php: Fixed ACL problem for view alert.
	
	* operation/incidents/incident.php: Bad call for pagination() was giving
	problems to pagination call. Somebody changes pagination() interface and 
	make this broken. Please if you change any interface, be sure that is compatible
	with old code or make a post in the list about this !
		
	* godmode/users/user_edit.php: Additional ACL check to do not let anybody
	to watch non accesible users. Even for see the username or description.
	
	* reporting/pchart_graph.php:Progress bar shown text in white when > 60%.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 19:16:59 +00:00
slerena cfa4de0782 2009-04-02 Sancho Lerena <slerena@artica.es>
* DB.pm: Function to process SNMP Alerts was not properly exported, so
	SNMP alerts in some environments don't run. Fixed (this is ok in 2.1).
	
	* util/udp_client.pl: Client to connect with pandora windows agent mini
	server and using with alerts to manage remote process / services in Windows
	
	* util/mcast_client.pl: Tool to check the UDP multicast notification 
	service of Pandora.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1593 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 18:58:25 +00:00
Ramon Novoa 4f89b62d41 2009-04-02 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_proc.cc,
          modules/pandora_module_proc.h: Fixed module_startdelay and
          module_retrydelay behavior.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1592 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 17:38:14 +00:00
Esteban Sanchez f169f13d81 2009-04-02 Esteban Sanchez <estebans@artica.es>
* include/functions_config.php: Fixed a bug when the theme was not
	given on update_config().

	* godmode/setup/setup.php: Removed unneccesary include of
	functions_themes.php



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1591 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 14:31:10 +00:00
Esteban Sanchez 83ca33a290 2009-04-02 Esteban Sanchez <estebans@artica.es>
* include/functions_reporting.php: Added alert API on
        get_agent_alerts_reporting_table() to solve a notice error.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1590 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 13:20:31 +00:00
Esteban Sanchez 610fe5042b 2009-04-02 Esteban Sanchez <estebans@artica.es>
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: Removed id on tconfig
	inserts.

	* godmode/agentes/configurar_agente.php: Min and max module values
	were not being updated.

	* godmode/alerts/configure_alert_template.php: Removed duplicated
	example. Added support for next warning and critical template types.

	* include/functions_ui.php, include/functions_alerts.php: Added new
	alert template types.

	* include/functions_db.php: temp_sql_delete() moved out of
	delete_agent() because there were errors if it was calling more than
	once.

	* include/functions_reports.php: Fixed doc for get_reports().

	* include/config_process.php: Updated build number.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1589 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 12:53:27 +00:00
marostegui 95b8be381f 2009-04-02 Manuel Arostegui <marostegui@artica.es>
* linux/pandora_agent_installer: Added tentacle_client installation

	* linux/tentacle_client: Added to repository. Tentacle_client is now
	installed along with the Agent.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1588 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 09:04:21 +00:00
Esteban Sanchez ee2d5df0f5 2009-04-02 Esteban Sanchez <estebans@artica.es>
* reporting/fgraph.php: Removed id_agente reference on combined
	graphs. Fixes #2724895



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1587 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 06:49:57 +00:00
Esteban Sanchez 31f37e6719 2009-04-01 Esteban Sanchez <estebans@artica.es>
* godmode/alerts/alert_compounds.php: Fixed group All.

	* godmode/alerts/configure_alert_compound.php: Fixed group All.
	"Compound" labels renamed to "Correlated".

	* include/styles/pandora.css: Removed invisible class, which was
	duplicated from common.css.

	* include/functions_db.php: safe_acl_group() now handles group All.
	Fixes #2725019 and #2723089



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1586 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-01 14:00:52 +00:00
Esteban Sanchez 4afa5e190b 2009-04-01 Esteban Sanchez <estebans@artica.es>
* pandoradb.sql, extras/pandoradb_migrate_v2.x_to_v3.0.sql: Added
	priority field to talert_templates and removed from
	talert_template_module.

	* godmode/alerts/alert_list.php: Fixed SQL notice when fetching
	groups.

	* godmode/alerts/alert_templates.php: Added priority to the template
	tooltip.

	* godmode/alerts/configure_alert_template.php: Added priority field to
	alert templates.

	* include/functions_db.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1585 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-01 11:25:58 +00:00
jorgonzalez 8174d7a0f3 2009-04-01 Jorge Gonzalez <jorgegonz@artica.es>
* include/languages/pt_BR.po, include/languages/es.po,
          include/languages/it.mo, include/languages/ro.po,
          include/languages/pt_BR.mo, include/languages/es.mo,
          include/languages/fr.po, include/languages/ro.mo,
          include/languages/de.po, include/languages/he.po,
          include/languages/zh_CN.po, include/languages/fr.mo,
          include/languages/de.mo, include/languages/ru.po,
          include/languages/he.mo, include/languages/zh_CN.mo,
          include/languages/it.po, include/languages/ru.mo: Updated
          Brazilian Portuguese, Spanish, Romanian, French, Hebrew, German,
          Simplified Chineese, Italian, and Russian translations thanks to
          rosetta contributors.

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



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1584 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-01 08:34:02 +00:00
Esteban Sanchez 4e90c86b1e 2009-03-31 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/module_manager_editor_plugin.php: Added plugin
	components select. Fixes #2707900.

	* godmode/alerts/alert_list.php: Fixed an error when showing agents
	list.

	* include/functions_events.php: Added get_similar_events_ids() to get
	events which are similars (same description and agent module). Renamed
	process_event_delete() and process_event_validate(). Added
	similars flag to both delete_event() an validate_event().

	* include/functions_reporting.php: Added timestamp parameter to select
	statements to fix #2707841.

	* include/functions_ui.php: Added a class to pagination divs.

	* operation/agentes/estado_generalagente.php: Style correction.
	Removed period on agent access graph.

	* operation/agentes/exportdata.php: Fixed many notices by including
	config.php instead of using global. Style corrections.

	* operation/events/events.php: When the events were grouped and
	deleted or validated, only one was being updated. Added AJAX support
	to validate and delete single operations. Style corrections. Fixed
	#2707872

	* reporting/fgraph.php: Many fixes on agent access graph. Fixes
	#2707856

	* reporting/pandora_graph.php: Added a couple of properties to the
	class.

	* reporting/pchart_graph.php: Do not add the grid or axis labels on
	charts if asked. Show no progress bar if value is 0 and a title is
	shown. Style corrections.

	* include/styles/pandora_width.css: Renamed to panoramic theme. Added
	style for event_control element.

	* include/styles/pandora.css: Added style for event_control element.

	* godmode/modules/manage_network_components.php: Fixed table width for
	panoramic theme.

	* ajax.php: Added remote_addr to config array.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1582 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-01 08:04:49 +00:00
slerena ca463b4868 2009-03-31 Sancho Lerena <slerena@artica.es>
* include/functions_visual_map.php,
         godmode/reporting/map_builder.php: Two new types of items for map graphs:
        Simple value and progress bar. Progress bar uses height to set the higher
        possible limit of the value to calculage the percentile.

        * reporting/pchart_graph.php: Progress bars now have percentile text without
        shadow (more readable). Fixed round cut of prev. commit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1581 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-31 18:42:36 +00:00
slerena 5181998d1a 2009-03-31 Sancho Lerena <slerena@artica.es>
* include/styles/menu.css: Added icons for dashboard option (enterprise).
	
	* include/functions_config.php: Added support for round_corner option.
	
	* include/functions_db.php: Temporal support (not really work) for enterprise
	servers webcheck/goliat and inventory. This code should be corrected when
	make final dbstruct changes for new server_type numeric field.
	
	* include/functions_reports.php: Fixed an annoying notice.
	
	* index.php: Dashboard is not entered automatically on login in enterprise.
	
	* operation/events/events.php: Events from group 0 always displayed.
	
	* operation/servers/view_server.php: Icon for server status is now smaller.
	
	* operation/menu.php: New enterprise hook for Dashboard menu entry.
	
	* reporting/pchart_graph.php: Round corners on progressbar acording to
	setup option. Color of border is smoother.
	
	* godmode/setup/links.php: Fixed ACL condition (AND -> OR).
	
	* godmode/setup/setup.php: Fixed ACL. Moved visual options to other setup.
	
	* godmode/setup/filemgr.php: Fixed ACL condition (AND -> OR).
	
	* godmode/agentes/modificar_agente.php: Support for IP address search.
	
	* godmode/menu.php: Added new setup section for visual options.
	
	* godmode/setup/setup_visuals.php: New setup section for visual options.
	
	* images/mod_web_proc.png,
	  images/screenshot_not_found.jpg
	  images/mod_web_data.png
	  images/server_web.png: New icons added for enterprise options.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1580 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-31 14:32:58 +00:00
slerena 82e457c050 2009-03-31 Sancho Lerena <slerena@artica.es>
* operation/events/events.php: Fixed and allow to everybody to see
        events coming from group 0 (Old server code put events here).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1579 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-31 12:06:43 +00:00
Esteban Sanchez 9b4f7f05cc 2009-03-30 Esteban Sanchez <estebans@artica.es>
* include/functions_ui.php: Added print_message(),
	print_error_message() and print_success_message().

	* godmode/users/configure_user.php,
	operation/users/user_edit.php,
	godmode/reporting/map_builder_wizard.php: Use print_error_message() or
	print_success_message() when there was no other option.

	* godmode/modules/manage_network_templates.php: Fixed CSV export
	notice errors. Style corrections.

	* godmode/modules/manage_network_templates_form.php: Style
	corrections.

	* include/functions_network_profiles.php: Added to repository. Network
	profiles function API.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1577 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-30 09:27:04 +00:00
guruevi e4512f4544 2009-03-27 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: Fixed group functions that would return
	data even if the user didn't have access to the group. Added 
	safe_acl_group which filters out groups the user doesn't have access to
	out of an array of groups. Added check_acl which deprecates give_acl
	(new naming scheme)


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1576 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-27 20:01:13 +00:00
Esteban Sanchez be7618ad03 2009-03-27 Esteban Sanchez <estebans@artica.es>
* include/functions_ui.php: Put template details icon on the left of
	the cell.

	* operation/agentes/alerts_status.php: Fixed validation errors. Moved
	validation to the top before reading the alerts. Added some size info
	to the tables.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1575 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-27 12:03:41 +00:00
Esteban Sanchez 68716acb0d 2009-03-27 Esteban Sanchez <estebans@artica.es>
* pandoradb.sql, extras/pandoradb_migrate_v2.x_to_v3.0.sql: Fixed
	constraint restrictions on alert actions.

	* godmode/users/configure_user.php: Many bugfixes when creating and
	editing.
	
	* include/auth/mysql.php: Fixed return value on create_user() because
	it does not return an insert id.

	* include/functions_db.php: Call debug() on SQL errors to get a
	backtrace.

	* include/functions_ui.php: Added a return value to debug().

	* operation/users/user_edit.php: Renamed user_update().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1574 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-27 11:33:11 +00:00
guruevi ae561b4b47 2009-03-26 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_reporting.php: Fixed security vulnerability
	in get_group_stats. Thanks to Eric Ross for pointing it out.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1573 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-26 19:52:41 +00:00
slerena 7e895479da 2009-03-26 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: SLA parameters now accept float values.
	
	* extras/pandoradb_migrate_v2.x_to_v3.0.sql: SLA parameters now accept 
	float values after a table update.
	
	* godmode/setup/filemgr.php: New feature: a file manager, accesible only by
	pandora Administrators. Have some security checks but is not intended to be
	used by anyone not admin.
	
	* godmode/menu.php: Added filemanager and fixed minor problem under SNMP
	Godmode (fake submenu).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1572 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-26 18:00:56 +00:00
guruevi 66ddb3b205 2009-03-26 Evi Vanoost <vanooste@rcbi.rochester.edu>
* lib/PandoraFMS/Tools.pm: Added Apple to the detected OS'es
	
	* bin/pandora_recon: Added TCP scanning if ICMP fails to more accurately
	detect systems that are firewalled from pings.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1571 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-26 16:33:28 +00:00
Esteban Sanchez 5c3d1009a6 2009-03-26 Esteban Sanchez <estebans@artica.es>
* include/javascript/jquery.ui.dialog.js: Added to repository.

	* index.php, general/header.php: Replaced overlay with jquery UI
	dialog.

	* godmode/agentes/module_manager.php: Use print_moduletype_image().

	* images/close.png, images/transparent.png,
	include/javascript/jquery.overlay.js: Removed from repository.

	* include/javascript/jquery.pandora.js: Use dialog instead of overlay.

	* include/styles/images/dialog-*: Added to repository. Dialog images.

	* include/styles/pandora.css: Removed overlay styles.

	* include/styles/dialog.css: Added to repository. Dialog styles.

	* include/functions_ui.php: Show description on
	print_moduletype_icon() title.

	* operation/agentes/estado_agente.php: Return control instead of exit.

	* operation/agentes/estado_ultimopaquete.php: Style corrections and
	usage of pandora database functions.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1570 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-26 15:55:30 +00:00
Esteban Sanchez 6d3638696b 2009-03-26 Esteban Sanchez <estebans@artica.es>
* godmode/reporting/reporting_builder.php: Some small fixes which
	didn't allow creating reports or adding contents.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1569 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-26 15:06:53 +00:00
Esteban Sanchez fd419a8216 2009-03-26 Esteban Sanchez <estebans@artica.es>
* godmode/users/configure_user.php: Complete rewritten to fix minor
	errors and fit the Pandora style.

	* include/auth/ldap.php: Removed process_user_isadmin(). Renamed
	process_user_password() to update_user_password(). Renamed
	process_user_info to update_user(). update_user_password() does not
	require old password anymore.

	* include/functions_db.php: Added empty checks on
	create_user_profile().

	* include/functions_ui.php: print_error_message() renamed to
	print_result_message().

	* godmode/agentes/configurar_agente.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/alerts/configure_alert_template.php,
	godmode/modules/manage_nc_groups.php,
	godmode/modules/manage_network_templates.php,
	godmode/modules/manage_network_templates_form.php,
	godmode/reporting/map_builder_wizard.php,
	godmode/reporting/reporting_builder.php,
	operation/agentes/alerts_status.php, operation/events/events.php,
	operation/incidents/incident.php,
	operation/incidents/incident_detail.php,
	operation/messages/message.php, operation/snmpconsole/snmp_view.php,
	operation/users/user_edit.php: Renamed print_result_message(). Some
	translatable strings reused to simplify i18n work.
	
	* godmode/users/user_list.php: Renamed print_result_message(). Use
	cross.png for deletion links. Style corrections.

	* godmode/setup/news.php: Renamed print_result_message(). Use
	process_sql_delete() instead of direct mysql_query.

	* godmode/reporting/map_builder.php: Renamed print_result_message().
	Style correction on process_sql_update().

	* godmode/alerts/configure_alert_compound.php: Renamed
	print_result_message(). Fixed steps_clean div.
	
	* godmode/setup/setup.php: Return control to index instead of exit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1567 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-26 11:14:49 +00:00
guruevi 881041f9bc 2009-03-25 Evi Vanoost <vanooste@rcbi.rochester.edu>
* operation/incidents/incident.php: Fixed small issue

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1566 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-25 20:53:34 +00:00
slerena 20fc304447 2009-03-25 Sancho Lerena <slerena@artica.es>
* estado_agente.php: Correct agent down status bug. Added search
	on description also, and search text parameter is moved on pagination links
	
	* estado_generalagente.php: Agent access graph has more height now.
	
	* event_statistics.php: removed unnecesary header. Better layout.

	* include/functions.php: human_time_description_raw() return "now" when
	data is 0 or empty.
	
	* db/db_main.php: Bigger graph.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1565 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-25 20:07:09 +00:00
guruevi 090b0661a5 2009-03-25 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: Made get_server_info more informational
	
	* operation/servers/view_server.php: Uses new get_server_info layout
	
	* operation/agentes/tactical.php: Use print_table and get_server_info
	
	* operation/menu.php: Removed incident search
	
	* operation/incidents/incident_search.php: Removed - now sits in incident
	
	* operation/incidents/incident.php: Added more search capabilities
	
	* operation/visual_console/index.php: Relative width and alignment
	
	* operation/visual_console/render_view.php: Small fixes

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1564 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-25 18:43:30 +00:00
slerena 2758d024d7 2009-03-25 Sancho Lerena <slerena@artica.es>
*  extras/pandoradb_migrate_v2.x_to_v3.0.sql: Added field missing in 
	ttrap (This gives the problems with SNMP Alerts in trunk version (Manu!)).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1563 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-25 18:17:02 +00:00
Esteban Sanchez 6c0fe99686 2009-03-25 Esteban Sanchez <estebans@artica.es>
* include/functions_alerts.php: Typo errors on "proces". Fixed an
	error on create_alert_command() parameters.

	* godmode/alerts/alert_commands.php: Fixed sec parameter on delete
	link.
	
	* godmode/alerts/configure_alert_command.php,
	godmode/alerts/configure_alert_compound.php,
	godmode/alerts/configure_alert_template.php,
	godmode/alerts/configure_alert_action.php: Fixed textarea sizes.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1561 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-25 14:09:20 +00:00
Esteban Sanchez d9445f0b91 2009-03-25 Esteban Sanchez <estebans@artica.es>
* include/functions_alerts.php: Finished the alerts API by removing
	useless and focus of problems clean_*(). All the functions now uses
	process_sql_*().

	* godmode/alerts/alert_actions.php,
	godmode/alerts/alert_commands.php: Adapted to changes in
	functions_alerts.php.

	* godmode/alerts/configure_alert_template.php: Fixed default action
	updating when it's set to None. Fixed textarea height.

	* include/functions_reports.php: Added to repository. API to manage
	user reports.

	* include/functions_db.php: Moved get_reports() to
	functions_reports.php. Escape ` on get_db_value(). Use
	format_array_to_update_sql() on process_sql_update().

	* godmode/reporting/reporting_builder.php: Use functions from reports
	API.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1560 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-25 13:51:52 +00:00
Esteban Sanchez d0d1a5d028 2009-03-25 Esteban Sanchez <estebans@artica.es>
* include/auth/mysql.php: Fixed an error on get_user_id() which was
	returning integer values.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1559 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-25 10:54:45 +00:00
guruevi f36371c329 2009-03-24 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: Made get_server_info more accurate as far as
	exact module types etc.
	
	* operation/servers/view_server.php: Return dash in case there is no lag
	
	* operation/servers/view_server_detail.php: Style fixes

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1558 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-24 16:53:03 +00:00
Esteban Sanchez 2a1db6c08c 2009-03-24 Esteban Sanchez <estebans@artica.es>
* general/pandora_help.php: Added support for enterprise help files.

	* include/javascript/pandora.js: Renamed pandora_help() to
	open_help().

	* include/functions_ui.php: Renamed event function on
	print_help_icon(). Removed deprecated pandora_help().

	* godmode/agentes/module_manager.php: Added enterprise hooks.

	* godmode/agentes/module_manager_editor.php: Added categories
	construction here. Added enterprise hooks.

	* godmode/agentes/module_manager_editor_common.php: Replaced
	deprecated pandora_help() with print_help_icon(). Moved categories
	construction to module_manager_editor.

	* include/config_process.php: Updated build version.

	* include/styles/pandora.css: Fixed textarea height.

	* godmode/agentes/manage_config_remote.php,
	godmode/agentes/massive_config.php,
	godmode/agentes/massive_edit_modules.php,
	godmode/agentes/module_manager_editor_network.php,
	godmode/agentes/module_manager_editor_plugin.php,
	godmode/agentes/module_manager_editor_prediction.php,
	godmode/agentes/module_manager_editor_wmi.php,
	godmode/agentes/planned_downtime.php, godmode/alerts/alert_list.php,
	godmode/alerts/configure_alert_compound.php,
	godmode/modules/manage_network_components_form_network.php,
	godmode/modules/manage_network_components_form_wmi.php,
	godmode/reporting/map_builder.php,
	godmode/servers/manage_export_form.php,
	godmode/servers/manage_recontask_form.php, godmode/servers/plugin.php,
	godmode/setup/setup.php, operation/agentes/alerts_status.php,
	operation/agentes/tactical.php,
	godmode/agentes/agent_manager.php: Replaced deprecated pandora_help()
	with print_help_icon().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1557 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-24 15:38:54 +00:00
Esteban Sanchez 2d53592452 2009-03-24 Esteban Sanchez <estebans@artica.es>
* udp_server/udp_server.cc, udp_server/udp_server.h: Replaced
        blankspaces with tabs.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1556 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-24 14:06:23 +00:00
Esteban Sanchez 8bd22e5ca8 2009-03-24 Esteban Sanchez <estebans@artica.es>
* godmode/alerts/configure_alert_compound.php: Fixed clean up div for
	variable width styles. Min and max fire values commented because it's
	not implemented yet.

	* include/config_process.php: Keep database connection resource in
	config.

	* include/functions.php: Use mysql_real_escape_string(), replacing
	deprecated function.

	* include/functions_alerts.php: Updated to use process_sql_*
	functions. Many fixes done such as updating a template name or
	escaping the value when duplicating a template.

	* include/functions_ui.php: Fixed an error on refresh header when
	using other web servers like Cherokee.

	* operation/agentes/estado_agente.php: Style corrections.

	* reporting/fgraph.php: Fixed a typo on grafico_db_agentes_paquetes().

	* pandora_db.sql, extras/pandoradb_migrate_v2.x_to_v3.0.sql: Added
	foreign key on treport_content and id field on
	talert_compound_actions.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1555 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-24 10:22:37 +00:00
slerena 4445032be1 2009-03-24 Sancho Lerena <slerena@gmail.com>
* module_manager_editor.php,
	module_manager_editor_common.php: Fixed problem with id_module
	affecting plugin, wmi and prediction modules.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1554 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-24 00:52:25 +00:00
Esteban Sanchez fc00a6f50d 2009-03-23 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/massive_edit_modules.php: The module selection is
	now done using cascade selects instead of having a confusing tree on
	the select.

	* godmode/alerts/alert_list.php: Fixed a bug when getting the latest
	module value.

	* godmode/alerts/alert_templates.php: Fixed an error that didn't allow
	deletion on some cases. Added an option to duplicate a template
	easily.

	* godmode/alerts/configure_alert_template.php: Added template
	duplication support. Fixed a mismatch on field1, field2 and field3
	which required to have a default action to be updated. This values are
	not loaded anymore from default action.

	* godmode/db/db_purge.php: Many styles correction. Use pandora
	functions for the bottom table.

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

	* include/functions_db.php: Added a parameter to get_agent_modules()
	to enable or disable the return of indexed values.

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

	* operation/agentes/ver_agente.php: Added support for indexed flag on
	get_agent_modules_json AJAX operation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1553 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-23 15:22:19 +00:00
guruevi db655ff4f5 2009-03-20 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_incidents.php: Style change
	
	* include/functions.php: Never is not correct in some cases. Unknown is 
	a better expression.
	
	* include/functions_ui.php: Added style attribute (default to nowrap)
	
	* include/functions_db.php: get_server_info now processes modules outside
	the loop. Less queries and now returns load as well
	
	* include/functions_html.php: print_submit_button now accepts arrays
	
	* operation/servers/view_server.php, operation/incidents/incident.php: 
	Better use of functions and style

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1551 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-20 19:57:13 +00:00
Esteban Sanchez e38b33958d 2009-03-18 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/massive_edit_modules.php: Added to repository. New
	interface to update modules massively. Should be improved lately.

	* reporting/pchart_graph.php: Fixed mess with color pallete.

	* godmode/agentes/massive_operations.php: Fixed sec parameter on
	links. Changed label. Added link to the new modules editor.

	* godmode/agentes/module_manager.php: Fixed an error when showing
	module group titles.

	* godmode/agentes/module_manager_editor.php: Decode values from
	components.
	
	* godmode/agentes/module_manager_editor_wmi.php: Bigger WMI query
	input text.

	* include/functions_db.php: Fixed a bug when using group on
	format_array_to_where_clause_sql().

	* include/functions_modules.php: Fixed an error on
	get_network_components() which was not filtering fine. Many fixes in
	get_network_component_groups() so it works better now. Added
	update_agent_module().



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1550 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-18 15:42:15 +00:00
Esteban Sanchez 89f6e57e68 2009-03-18 Esteban Sanchez <estebans@artica.es>
* godmode/alerts/alert_list.php: Put tooltip before the template name
	so it's always in the same place.

	* include/javascript/jquery.pandora.controls.js: Fixed a bug on
	pandoraSelectAgentModule which was getting wrong fields.

	* include/functions_html.php: Do not add id counter on checkboxes if
	it's 0.

	* operation/agentes/estado_agente.php: Create agent button was going
	to a wrong place.

	* reporting/fgraph.php: Fixed graphic_agentaccess() which was not
	showing anything.

	* pandoradb_data.sql: Removed Compound only from talert_commands.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1546 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-18 09:37:31 +00:00
Esteban Sanchez 79d5149f72 2009-03-17 Esteban Sanchez <estebans@artica.es>
* reporting/fgraph.php: Fixed a bug on graphic_error() which always
	showed image_problem.png. Fixed period labels shorter than days. Fixed
	an error when fetching data on grafico_modulo_sparse() which was
	causing to show nothing. Do not show a legend on graph_event_module().
	Fixed x axis interval on boolean charts.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1545 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-17 15:52:56 +00:00
Esteban Sanchez 7c65c49f36 2009-03-17 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/massive_operations.php: Added to repository. New
	page to group massive operations in a single page.

	* godmode/agentes/massive_config.php: Renamed from manage_config.php.

	* godmode/agentes/massive_delete_agents.php: Renamed from
	manage_delete.php.
	
	* godmode/agentes/massive_delete_modules.php: Added to repository.
	Interface to delete modules.

	* godmode/agentes/massive_delete_alerts.php: Added to repository.
	Interface to delete alerts.

	* godmode/agentes/agent_manager.php: Fixed table width to make it
	variable.

	* godmode/agentes/module_manager.php: Rewritten to use Pandora
	functions.

	* include/javascript/jquery.pandora.controls.js: Added
	pandoraSelectAgentAlert. Renamed pandoraSelectAgent to
	pandoraSelectAgentModule. Get only needed fields to make it quicker
	and avoid showing disabled modules.

	* godmode/alerts/alert_list.php: Adapted to changes in
	jquery.pandora.controls.js.

	* godmode/menu.php: Group some pages into new "Massive operation"
	submenu.

	* images/copy.png: Replaced with a better icon.

	* images/delete_agents.png, images/delete_alerts.php,
	images/delete_modules.php: Added to repository.

	* include/styles/pandora.css: Set color on input.sub

	* include/styles/pandora_width.css: Make menu_tab_frame wider.

	* include/functions_db.php: Removed deprecated
	dame_nombre_grupomodulo(). Added support to __() to receive multiple
	parameters so translatable strings can handle now printf format
	characters.

	* include/functions_modules.php: Added delete_agent_module().

	* operation/agentes/ver_agente.php: Allow fields to be passed to
	get_agent_modules_json AJAX operation.

	* reporting/fgraph.php: Replaced sprintf() with __(). Some casts
	added. Show a sparse chart even if it has no max/min value.

	* godmode/modules/manage_network_components_form_network.php,
	operation/agentes/estado_ultimopaquete.php,
	godmode/modules/manage_network_components_form_wmi.php: Use
	get_modulegroup_name().

	* godmode/agentes/configurar_agente.php,
	godmode/modules/manage_network_components.php: Style correction.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1544 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-17 15:15:55 +00:00
guruevi ae5e1bbd49 2009-03-17 Evi Vanoost <vanooste@rcbi.rochester.edu>
* operation/snmpconsole/snmp_view.php: Fixes bug #2661421

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1543 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-17 14:07:58 +00:00
Esteban Sanchez d7731a234f 2009-03-17 Esteban Sanchez <estebans@artica.es>
* include/functions_html.php: Do not add id counter if it's 0 on
        print_select. It's a backwards compatibility workaround until we 
        take a decision on correct HTML elements. Fixed comment styles, please
        do not add comments in the same line.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1542 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-17 11:19:36 +00:00