Commit Graph

1190 Commits

Author SHA1 Message Date
Esteban Sanchez 976278eec0 2009-01-07 Esteban Sanchez <estebans@artica.es>
* include/functions_ui.php: Added to repository. Functions that prints
	UI elements for Pandora. Let's make functions_html.php a single HTML
	library instead of mixing it up with Pandora specific elements.

	* include/functions.php: Fixed inline doc. Added functions_ui.php.

	* include/functions_html.php: Functions moved to functions_ui.php.
	Fixed checkbox ids in print_checkbox_extended().

	* general/main_menu.php: Make refr attribute optional. Do not print
	class attribut tag if no class was given.

	* general/login_page.php: Show login error message if login fails.
	Put POST values into the form instead of the URL.

	* index.php: Cleaned up login code to become easier.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1319 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-07 10:42:38 +00:00
raulmateos 353c861ea8 2009-01-06 Raul Mateos <raulofpandora@gmail.com>
* Files were forgotten :-D

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1318 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-06 13:22:11 +00:00
raulmateos 00e1bea1be 2009-01-06 Raul Mateos <raulofpandora@gmail.com>
* index.php: Updated build.
	* general/footer.php: Fixed small issue, thanks to Jure Pečar for
	reporting.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1317 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-06 13:21:32 +00:00
guruevi 22c0ec25da 2009-01-05 Evi Vanoost <vanooste@rcbi.rochester.edu>
* godmode/agentes/alert_manager_editor.php, 
	godmode/snmpconsole/snmp_alert.php, include/functions_reporting.php,
	include/functions_reporting.php:
	Function updates
	
	* include/functions.php: show_alert_show_view is now format_alert_row
	
	* include/functions_db.php: get_simple_alerts_in_agent is now 
	get_agent_alerts_simple; get_combined_alerts_in_agent is now 
	get_agent_alerts_combined; get_alerts_in_agent is now get_agent_alerts;
	dame_nombre_alerta is now get_alert_type; get_alerts_in_group is now
	get_group_alerts; dame_id_grupo set to deprecated; Added 
	process_alerts_validate to validate alerts passed to it.
	
	* index.php: Set UTF-8 encoding standard for multibyte functions
	
	* operation/agentes/estado_alertas.php: Rewritten
	
	* operation/agentes/ver_agente.php: Put alert validation in a function

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1316 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-05 18:41:14 +00:00
jorgonzalez 34c0b35eee 2009-01-05 Jorge Gonzalez <jorgegonz@artica.es>
* include/languages/es.po, include/languages/es.mo: Updated Spanish 
          translation.

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


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1314 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-05 08:13:31 +00:00
jorgonzalez fa63bc22f7 2008-12-29 Jorge Gonzalez <jorgegonz@artica.es>
* include/languages/es.po, include/languages/es.mo: Updated Spanish 
          translation.

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



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1313 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-29 09:35:32 +00:00
guruevi bc221d3211 2008-12-24 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_reporting.php, include/functions_db.php, 
	include/functions_html.php, operation/agentes/datos_agente.php, 
	operation/agentes/estado_agente.php, 
	operation/agentes/estado_generalagente.php, 
	operation/agentes/estado_grupo.php, operation/agentes/estado_monitores.php,
	operation/agentes/networkmap.php, operation/agentes/status_monitor.php,
	operation/incidents/incident_detail.php, 
	operation/reporting/reporting_viewer.php, 
	operation/reporting/reporting_xml.php, reporting/fgraph.php, 
	godmode/db/db_audit.php, godmode/db/db_event.php, godmode/db/db_purge.php:
	Added get_system_time in favor of time ();

	* include/functions.php: Added get_system_time which gets the time from 
	a source based on user preference

	* include/help/en/help_timesource.php: Explanation of timesource.
	
	* godmode/setup/setup.php, include/config_process.php: Added timesource
	selection and preference

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1310 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-24 16:53:00 +00:00
Ramon Novoa 555246536d 2008-12-24 Ramon Novoa <rnovoa@artica.es>
* win32/pandora_windows_service.h,
          win32/bin/pandora_agent.conf,
          win32/pandora_windows_service.cc: Added local transfer mode.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1309 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-24 13:57:45 +00:00
raulmateos 8864dc4095 2008-12-24 Raul Mateos <raulofpandora@gmail.com>
* index.php: Updated build, again due to the use of the new custom ID.

	* reporting/fgraph2.php: Test for ezcomponents.

	* operation/events/event_statistics.php: Use of fgraph2 if test var is
	set in the URL. It uses ezComponents, that need to be installed. 
	This shows a 3D chart. Probably not will be used, but it's an idea
	about how to improve graphs in pandora. To test, just add &test to the
	event_statistics URL.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1308 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-24 12:51:59 +00:00
Ramon Novoa 3d80c361ee 2008-12-24 Ramon Novoa <rnovoa@artica.es>
* win32/pandora_windows_service.cc: Do not send XML if server address
          is not set.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1307 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-24 12:33:41 +00:00
guruevi daccd18dfd 2008-12-23 Evi Vanoost <vanooste@rcbi.rochester.edu>
* index.php: Cleaned up some old stuff and fixed the order of GET/POST
	
	* general/header.php: Added tags for custom branding and todo
	
	* general/login_page.php: Cleaned up some old stuff and fixed always
	redirecting the user to the overview if they followed a link.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1306 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-23 21:41:05 +00:00
Ramon Novoa e98f7c6022 2008-12-23 Ramon Novoa <rnovoa@artica.es>
* godmode/agentes/configurar_agente.php: Properly insert the custom ID
          when creating the keepalive module (there was a typo).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1305 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-23 18:52:59 +00:00
guruevi 60168a5e92 2008-12-23 Evi Vanoost <vanooste@rcbi.rochester.edu
* include/functions.php: Fixed format_numeric in case there are characters
	in a number or the number is not a number. Fixes notices from fmod.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1304 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-23 14:22:14 +00:00
Ramon Novoa 1e51f01713 2008-12-23 Ramon Novoa <rnovoa@artica.es>
* pandoradb_data.sql, include/config.php, pandoradb.sql,
          godmode/groups/configure_group.php,
          godmode/groups/group_list.php,
          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/module_manager_editor_data.php,
          godmode/agentes/configurar_agente.php,
          godmode/agentes/module_manager_editor.php,
          godmode/agentes/agent_manager.php: Added support for a custom ID to
          agents, modules and groups.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1303 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-23 13:12:03 +00:00
Ramon Novoa eeb88d1fb0 2008-12-23 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_recon: Added a timeout to pandora_getparent(). The call
          to traceroute() would hang despite query_timeout being set.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1302 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-23 13:06:45 +00:00
guruevi 5022fa5e22 2008-12-22 Evi Vanoost <vanooste@rcbi.rochester.edu>
* godmode/agentes/agent_template.php: Rewritten to use new functions
	
	* godmode/agentes/configurar_agente.php: Fixed adding empty ips
	
	* godmode/db/db_purge.php: Fixed bug #2445819 ?

	* godmode/db/db_refine.php: Rewritten to use new functions. Fixed bug 
	#2445819 ?

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1301 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-22 21:16:03 +00:00
jorgonzalez fa335140ed 2008-12-22 Jorge Gonzalez <jorgegonz@artica.es>
* pandoradb_data.sql: Added Dutch to translations.

	* include/languages/Makefile: Added Dutch to translations.

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

	* include/languages/cs.po, include/languages/pt_BR.po, 
	include/languages/pl.mo, include/languages/it.mo, 
	include/languages/ko.po, include/languages/sl.mo, 
	include/languages/sk.po, include/languages/uk.po, 
	include/languages/pt.mo, include/languages/ro.po, 
	include/languages/ast.mo, include/languages/bn.po, 
	include/languages/cs.mo, include/languages/ar.po, 
	include/languages/pt_BR.mo, include/languages/ko.mo, 
	include/languages/fr.po, include/languages/sk.mo, 
	include/languages/uk.mo, include/languages/ro.mo, 
	include/languages/ca.po, include/languages/da.po, 
	include/languages/tr.po, include/languages/sv.po, 
	include/languages/de.po, include/languages/ja.po, 
	include/languages/zh_TW.po, include/languages/bn.mo, 
	include/languages/he.po, include/languages/fi.po, 
	include/languages/ar.mo, include/languages/hi.po, 
	include/languages/zh_CN.po, include/languages/fr.mo, 
	include/languages/te.po, include/languages/eu.po, 
	include/languages/hu.po, include/languages/ca.mo, 
	include/languages/da.mo, include/languages/tr.mo, 
	include/languages/sv.mo, include/languages/de.mo, 
	include/languages/ru.po, include/languages/ja.mo, 
	include/languages/zh_TW.mo, include/languages/he.mo, 
	include/languages/fi.mo, include/languages/hi.mo, 
	include/languages/zh_CN.mo, include/languages/el.po, 
	include/languages/gl.po, include/languages/te.mo, 
	include/languages/eu.mo, include/languages/hu.mo, 
	include/languages/pl.po, include/languages/it.po, 
	include/languages/sl.po, include/languages/pt.po, 
	include/languages/ru.mo, include/languages/ast.po, 
	include/languages/el.mo, include/languages/gl.mo

	* include/languages/nl.po, include/languages/nl.mo: Added Dutch 
	translation from Rosetta.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1299 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-22 10:21:21 +00:00
raulmateos 4111c0dfb8 2008-12-21 Raul Mateos <raulofpandora@gmail.com>
* index.php: Updated build, there were some changes in last month that make
	this build to change.
	* include/styles/link.css: updated and renamed to menu.css, more coherent.
	Updated header.
	* include/styles/pandora.css: updated header. Reduced height in
	administration and link menu titles.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1298 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-21 15:26:55 +00:00
guruevi 3034f01a5e 2008-12-19 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/footer.php: Updated print_timestamp to always print full.
	Removed the center tag (deprecated in HTML 4.01)
	
	* general/header.php: Fixed some CSS.
	
	* general/links_menu.php: Rewritten for new css style
	
	* general/main_menu.php: Rewritten for new css style and to avoid 
	repetition in writing tags uses an array and functions
	
	* godmode/menu.php: Rewritten for new css style and to avoid repetition
	writing tags
	
	* include/functions_html.php: Added option to override prominent time
	
	* include/styles/link.css: Rewritten the whole CSS. Now all menu options
	are directly available through slide-outs (pure CSS, no JS) and avoids div
	for each single item. The pages renders quite a bit faster too.
	
	* include/styles/pandora.css: Fixed some bad tags and removed stuff that 
	was for the rewritten menu.
	
	* index.php: Added &nbsp; to div. IE will in some situations not render 
	empty divs.
	
	* operation/menu.php: Rewritten for new CSS style
	
	* include/styles/god.css, include/styles/op.css: 


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1297 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-19 21:45:20 +00:00
jorgonzalez ec794a1f31 2008-12-18 Jorge Gonzalez <jorgegonz@artica.es>
* pandoradb_data.sql, pandoradb.sql: removed extra '-' which made the 
          file invalid for mysql population.   

        * include/languages/es.po, include/languages/es.mo: Updated Spanish
          translation.

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

        * general/footer.php: changed format_datetime to print_timestamp.

        * godmode/setup/setup.php: moved the enterprise hook so the table 
          fields show properly in both versions. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1296 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-18 11:41:20 +00:00
guruevi 05a5a32235 2008-12-16 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/logon_ok.php, godmode/agentes/modificar_agente.php, 
	godmode/agentes/planned_downtime.php, 
	godmode/agentes/manage_recontask.php, godmode/setup/news.php, 
	operation/agentes/datos_agente.php, operation/agentes/estado_agente.php,
	operation/agentes/status_events.php, operation/agentes/tactical.php, 
	operation/events/events.php, operation/incidents/incidents.php,
	operation/incidents/incident_detail.php, operation/messages/message.php:
	Function updates and new function definitions
	
	* include/functions.php: safe_input used utf_decode which gives problems
	with foreign chars since everything else is (or should be UTF-8) fixed.
	format_datetime is no longer necessary - use print_timestamp for output.
	Extended multibyte wrapper functions.
	
	* include/functions_db.php: give_server_name is now get_server_name; 
	dame_so_name is now get_os_name; dame_so_icon is now print_os_icon;
	show_icon_group is now print_group_icon; give_network_profile_name is now
	get_networkprofile_name; smal_event_table is now print_events_table
	
	* include/functions_events.php: print_events_table was moved here and 
	fixed. Now calculates the cutoff of event and agent text.
	
	* include/functions_html.php: Added title to print_table function and 
	updated documentation. print_timestamp now uses the new function 
	definitions (array) and handles 0-dates better. print_group_icon and 
	print_os_icon added and extended. Added print_agent_name. This function 
	fixes issues that show up when cutting off agent names with multibyte char
	
	* operation/servers/view_server.php: Rewrite with new functions

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1295 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-17 14:26:42 +00:00
Ramon Novoa c64614fda3 2008-12-16 Ramon Novoa <rnovoa@artica.es>
* win32/modules/pandora_module_wmiquery.cc,
          win32/modules/pandora_module_wmiquery.h: Added to repository. WMI
          query module.

        * win32/windows/pandora_wmi.cc,
          win32/windows/pandora_wmi.h,
          win32/modules/pandora_module.h,
          win32/modules/pandora_module_factory.cc,
          win32/modules/pandora_module_list.cc,
          win32/modules/pandora_module.cc,
          win32/PandoraAgent.dev: Added support for WMI query module.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1294 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-16 11:30:12 +00:00
Esteban Sanchez caf5492185 2008-12-16 Esteban Sanchez <estebans@artica.es>
* include/functions_html.php: Added missing documentation and fixed a
        bit more. Added print_image() to prints an image HTML element.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1293 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-16 10:20:33 +00:00
guruevi 3a1af9efde 2008-12-12 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandora_console/operation/agentes/datos_agente.php: Rewrite. Uses new
	functions and better security and validation
	
	* pandora_console/include/functions_db.php: Renamed some functions and
	created agentmodule functions for consistency with documentation and to
	avoid searching for and typing certain function names: 
	get_agentmodules is now get_agent_modules; 
	dame_grupo is now get_group_name; 
	dame_nombre_agente is now get_agent_name; get_agentmodule_agent is new; 
	dame_nombre_agente_agentemodulo is now get_agentmodule_agent_name;
	dame_nombre_modulo_agentemodulo is now get_agentmodule_name;
	dame_id_tipo_modulo_agentemodulo is now get_agentmodule_type;
	dame_nombre_tipo_modulo is now get_moduletype_name; dame_nombre_grupo is
	now get_group_name; get_agentmodule_count is get_agent_modules_count;
	get_agentmodule_group is new; get_agent_group is new;
	
	* pandora_console/include/functions_reporting.php, 
	pandora_console/include/functions.php,
	pandora_console/operation/incidents/incident.php,
	pandora_console/operation/users/user.php,
	pandora_console/operation/users/user_edit.php,
	pandora_console/operation/events/events.php,
	pandora_console/operation/visual_console/index.php,
	pandora_console/operation/agentes/estado_grupo.php,
	pandora_console/operation/agentes/export_csv.php,
	pandora_console/operation/agentes/estado_agente.php,
	pandora_console/operation/agentes/estado_ultimopaquete.php,
	pandora_console/operation/agentes/estado_generalagente.php,
	pandora_console/operation/agentes/sla_view.php,
	pandora_console/operation/agentes/exportdata.php,
	pandora_console/operation/agentes/ver_agente.php,
	pandora_console/operation/agentes/tactical.php,
	pandora_console/operation/agentes/networkmap.php,
	pandora_console/operation/messages/message.php,
	pandora_console/operation/reporting/reporting_xml.php,
	pandora_console/operation/reporting/reporting_viewer.php,
	pandora_console/reporting/fgraph.php,
	pandora_console/godmode/groups/group_list.php,
	pandora_console/godmode/users/user_list.php,
	pandora_console/godmode/users/configure_user.php,
	pandora_console/godmode/db/db_refine.php,
	pandora_console/godmode/db/db_info.php,
	pandora_console/godmode/db/db_purge.php,
	pandora_console/godmode/agentes/manage_config.php,
	pandora_console/godmode/agentes/modificar_agente.php,
	pandora_console/godmode/agentes/configurar_agente.php,
	pandora_console/godmode/agentes/manage_config_remote.php,
	pandora_console/godmode/modules/manage_network_components_form_network.php,
	pandora_console/godmode/modules/manage_network_components_form_wmi.php,
	pandora_console/godmode/reporting/reporting_builder.php,
	pandora_console/godmode/reporting/map_builder.php,
	pandora_console/godmode/reporting/graph_builder.php: Renamed functions


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1291 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-12 21:54:40 +00:00
guruevi 55fb43f39f 2008-12-11 Evi Vanoost <vanooste@rcbi.rochester.edu>
* Previous commit apparently messed up the structure

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1290 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-11 20:49:50 +00:00
guruevi fbf9a5eb7e 2008-12-11 Evi Vanoost <vanooste@rcbi.rochester.edu>
* linux/plugins/SGE: Added the SGE plugin
	
	* mac_osx/plugins/SGE: Renamed the SGE plugin to be consistent with Linux
	
	* mac_osx/pandora_agent, mac_osx/pandora_agent.conf, 
	mac_osx/pandora_agent_installer, mac_osx/pandora_fms/StartupParameters.list
	mac_osx/pandora_fms/pandora_fms: Updated to latest (2.0) client code. Fixed
	installer issues where it would overwrite previous config.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1289 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-11 20:40:09 +00:00
Ramon Novoa f8792f1fb7 2008-12-11 Ramon Novoa <rnovoa@artica.es>
* win32/pandora_windows_service.h,
          win32/pandora_windows_service.cc: Added support for a secondary server
          .




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1288 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-11 11:57:03 +00:00
Ramon Novoa c074316cf7 2008-12-11 Ramon Novoa <rnovoa@artica.es>
* win32/windows/pandora_wmi.cc,
          win32/pandora_windows_service.h,
          win32/PandoraAgent.dev,
          win32/pandora_windows_service.cc: Added an UDP Server. The
          agent can receive remote commands.

        * win32/udp_server,
          win32/udp_server/udp_server.cc,
          win32/udp_server/udp_server.h: Added to repository. UDP Server.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1287 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-11 10:20:07 +00:00
guruevi 65620ab7dd 2008-12-10 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions.php: format_for_graph is now much simpler and uses 
	format_numeric.
	
	* include/functions_db.php: give_note_author, give_incident_author, 
	dame_numero_notas, borrar_incidencia, event_insert and 
	return_event_description are now in their respective functions_*.php files
	but under a new name. Fixed delete_agent transaction error detection
	
	* include/functions_events.php: Added get_event_description and
	create_event (formerly return_event_description and event_insert)
	
	* include/functions_html.php: print_timestamp attributes should be default
	empty, not required. Added print_username for a consistent username print
	
	* operation/agentes/ver_agente.php: Function renaming (create_event)
	
	* operation/incidents/incident.php: Partial rewrite. Uses new functions. 
	Also added some of feature request #2264838
	
	* operation/incidents/incident_detail.php: Partial rewrite. Uses new 
	functions. Added some of feature request #2264838 functionality.
	
	* operation/incidents/incident_search.php, 
	operation/incidents/incident_statistics.php: Minor style update
	
	* pandoradb.sql: New tincidencia and tnota layout. No use for tnota_inc
	
	* include/functions_incidents.php: All incidents functions. Documentation
	will be online soon. Also includes an upgrade mechanism for SVN users. 
	Mechanism should be removed for a stable version and integrated into 
	install/upgrade tool.

	* lib/PandoraFMS/DB.pm: New table layout doesn't require timestamp anymore

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1286 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-10 20:15:47 +00:00
guruevi adc80c1247 2008-12-10 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions.php: format_for_graph is now much simpler and uses 
	format_numeric.
	
	* include/functions_db.php: give_note_author, give_incident_author, 
	dame_numero_notas, borrar_incidencia, event_insert and 
	return_event_description are now in their respective functions_*.php files
	but under a new name. Fixed delete_agent transaction error detection
	
	* include/functions_events.php: Added get_event_description and
	create_event (formerly return_event_description and event_insert)
	
	* include/functions_html.php: print_timestamp attributes should be default
	empty, not required. Added print_username for a consistent username print
	
	* operation/agentes/ver_agente.php: Function renaming (create_event)
	
	* operation/incidents/incident.php: Partial rewrite. Uses new functions. 
	Also added some of feature request #2264838
	
	* operation/incidents/incident_detail.php: Partial rewrite. Uses new 
	functions. Added some of feature request #2264838 functionality.
	
	* operation/incidents/incident_search.php, 
	operation/incidents/incident_statistics.php: Minor style update
	
	* pandoradb.sql: New tincidencia and tnota layout. No use for tnota_inc
	
	* include/functions_incidents.php: All incidents functions. Documentation
	will be online soon. Also includes an upgrade mechanism for SVN users. 
	Mechanism should be removed for a stable version and integrated into 
	install/upgrade tool.

	* lib/PandoraFMS/DB.pm: New table layout doesn't require timestamp anymore

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1285 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-10 20:15:38 +00:00
guruevi 523a9c8779 2008-12-10 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions.php: format_for_graph is now much simpler and uses 
	format_numeric.
	
	* include/functions_db.php: give_note_author, give_incident_author, 
	dame_numero_notas, borrar_incidencia, event_insert and 
	return_event_description are now in their respective functions_*.php files
	but under a new name. Fixed delete_agent transaction error detection
	
	* include/functions_events.php: Added get_event_description and
	create_event (formerly return_event_description and event_insert)
	
	* include/functions_html.php: print_timestamp attributes should be default
	empty, not required. Added print_username for a consistent username print
	
	* operation/agentes/ver_agente.php: Function renaming (create_event)
	
	* operation/incidents/incident.php: Partial rewrite. Uses new functions. 
	Also added some of feature request #2264838
	
	* operation/incidents/incident_detail.php: Partial rewrite. Uses new 
	functions. Added some of feature request #2264838 functionality.
	
	* operation/incidents/incident_search.php, 
	operation/incidents/incident_statistics.php: Minor style update
	
	* pandoradb.sql: New tincidencia and tnota layout. No use for tnota_inc
	
	* include/functions_incidents.php: All incidents functions. Documentation
	will be online soon. Also includes an upgrade mechanism for SVN users. 
	Mechanism should be removed for a stable version and integrated into 
	install/upgrade tool.

	* lib/PandoraFMS/DB.pm: New table layout doesn't require timestamp anymore

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1284 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-10 20:15:13 +00:00
Ramon Novoa 7bcf6f642c 2008-12-10 Ramon Novoa <rnovoa@artica.es>
* linux/pandora_agent,
          linux/pandora_agent.conf: Added support for a secondary server.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1283 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-10 12:32:55 +00:00
raulmateos 1b1a277ff1 2008-12-03 Raul Mateos <raulofpandora@gmail.com>
* operation/agentes/tactical.php: Added text if there are no servers.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1282 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-03 14:11:44 +00:00
Esteban Sanchez 01c8005cd0 2008-12-03 Esteban Sanchez <estebans@artica.es>
* bin/PandoraAgent.exe: Updated to last commit.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1281 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-03 13:06:51 +00:00
raulmateos 61655acb25 2008-12-03 Raul Mateos <raulofpandora@gmail.com>
* include/functions_db.php: Now if no event, table shows "no event" text.
	Cosmetic table header change.
	* operation/agentes/tactical.php: Solve warning if no servers defined.
	Cosmetic table header change.
	* operation/events/events.php: Change "error" class to "not found" class.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1280 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-03 12:41:09 +00:00
slerena 206787b3aa 2008-12-03 Sancho Lerena <slerena@artica.es>
* mysql_plugin.sh: Updated MySQL plugin.  



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1278 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-03 12:18:13 +00:00
Esteban Sanchez ea81620820 2008-12-03 Esteban Sanchez <estebans@artica.es>
* pandora.[cc,h]: Function is_enabled() was moved here to be
	accesible.

	* pandora_windows_service.cc: Removed is_enabled() private function.

	* windows_service.cc: Service is now interactive, so it can open
	interactive processes in the watchdog mode of proc modules.

	* modules/pandora_module_factory.cc: Added "module_watchdog" and
	"module_start_command" tokens to service and process modules. Style
	correction.

	* modules/pandora_module_proc.[cc,h]: Added watchdog mode to run
	proccess when they die. It's done by setting a start command to
	recover it.

	* modules/pandora_module_service.[cc,h]: Added watchdog mode to start
	a service when it's stopped.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1277 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-03 12:04:48 +00:00
jorgonzalez 0b95e7052a 2008-12-02 Jorge Gonzalez <jorgegonz@artica.es>
* include/languages/index.pot: Updated Spanish translation.

        * include/languages/fr.po, include/languages/fr.mo: Updated French  
          translation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1276 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-02 11:42:24 +00:00
jorgonzalez a6d37be77c 2008-12-02 Jorge gonzalez <jorgegonz@artica.es>
* pandoradb_data.sql: Added Bengali to translations.

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

        * include/languages/bn.po, include/languages/bn.mo: Added Bengali   
          translation from Rosetta and GNOME Translation Memory.

        * include/languages/Makefile: Added Bengali to translations.

        * include/languages/de.po, include/languages/de.mo: Updated German  
          translation from Rosetta.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1275 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-02 11:29:51 +00:00
Esteban Sanchez 068b17029e 2008-12-02 Esteban Sanchez <estebans@artica.es>
* godmode/agentes/manage_config.php: Fixed SQL sentence generation
        when copying a module. It was causing PHP notices and nothing was
        being copied.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1272 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-02 08:11:42 +00:00
Ramon Novoa 65ab67b296 2008-12-01 Ramon Novoa <rnovoa@artica.es>
* windows/pandora_wmi.cc,
          windows/pandora_wmi.h,
          modules/pandora_module_logevent.cc,
          modules/pandora_module_logevent.h,
          modules/pandora_module_factory.cc: Added event code filtering
          support to logevent module.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1271 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-01 17:49:16 +00:00
Esteban Sanchez 0059aad758 2008-12-01 Esteban Sanchez <estebans@artica.es>
* pandora_windows_service.cc: Removed debug output. Release mutex on
        sendXml()

        * modules/pandora_module.[cc,h]: Save latest output in a new property.
        It's used on generic_proc modules to check the value better.

        * modules/pandora_module_proc.[cc,h]: Added support for asynchronous
        mode. It checks process in a separeted thread and report the status
        quicker. Added getProcessName()

        * modules/pandora_module_service.cc: Style correction. Removed an
        indentation level.

        * windows/pandora_windows_info.[cc,h]: Added getProcessHandles() to
        get a list of handles of a running process, giving the process name.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1270 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-01 13:40:19 +00:00
jorgonzalez 9843334767 2008-12-01 Jorge Gonzalez <jorgegonz@artica.es>
* include/languages/index.pot: Updated po template.

        * include/languages/de.po, include/languages/de.mo: Updated German  
          translation from Rosetta translations.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1269 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-01 08:30:51 +00:00
Esteban Sanchez 5a63e70b7b 2008-11-28 Esteban Sanchez <estebans@artica.es>
* modules/pandora_module.[cc,h]: Added an async property. Added
	getLatestOutput() to get the latest output of a module.

	* modules/pandora_module_factory.cc: Parse async token in modules.

	* modules/pandora_module_list.[cc,h]: It can create empty lists now
	and add modules using new addModule() function.

	* modules/pandora_module_service.[cc,h]: Added an async thread to
	watch services events and track services status changes quickly and
	asynchronously.

	* windows/pandora_wmi.cc: Style correction.

	* pandora_windows_service.[cc,h]: Pandora Windows service object is
	now single instance, so the instance to the running service can be
	accessed anywhere (useful in async threads). The XML generation and
	sending process has been moved to a new function called sendXml()
	which is thread-safe.

	* windows_service.h: Some properties are now protected instead of
	public to make it easier the singleton pattern in child classes.

	* main.cc: Adopted to singleton pattern in Pandora windows service.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1268 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-28 10:51:03 +00:00
jorgonzalez 453c3d534d 2008-11-27 Jorge Gonzalez <jorgegonz@artica.es>
* pandoradb_data.sql: Added Greek translation.

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

	* include/languages/Makefile: Added 'el' files for translation.

	* include/languages/cs.po, include/languages/pt_BR.po, 
	  include/languages/es.po, include/languages/pl.mo, 
	  include/languages/it.mo, include/languages/sl.mo, 
	  include/languages/sk.po, include/languages/uk.po, 
	  include/languages/pt.mo, include/languages/ro.po, 
	  include/languages/ast.mo, include/languages/cs.mo, 
	  include/languages/ar.po, include/languages/pt_BR.mo, 
	  include/languages/es.mo, include/languages/fr.po, 
	  include/languages/sk.mo, include/languages/uk.mo, 
	  include/languages/ro.mo, include/languages/ca.po, 
	  include/languages/da.po, include/languages/tr.po, 
	  include/languages/sv.po, include/languages/de.po, 
	  include/languages/ja.po, include/languages/zh_TW.po, 
	  include/languages/he.po, include/languages/fi.po, 
	  include/languages/ar.mo, include/languages/hi.po, 
	  include/languages/zh_CN.po, include/languages/fr.mo, 
	  include/languages/te.po, include/languages/eu.po, 
	  include/languages/hu.po, include/languages/ca.mo, 
	  include/languages/da.mo, include/languages/tr.mo, 
	  include/languages/de.mo, include/languages/sv.mo, 
	  include/languages/ru.po, include/languages/ja.mo, 
	  include/languages/zh_TW.mo, include/languages/he.mo, 
	  include/languages/fi.mo, include/languages/hi.mo, 
	  include/languages/zh_CN.mo, include/languages/gl.po, 
	  include/languages/te.mo, include/languages/eu.mo, 
	  include/languages/hu.mo, include/languages/pl.po, 
	  include/languages/it.po, include/languages/sl.po, 
	  include/languages/pt.po, include/languages/ru.mo, 
	  include/languages/ast.po, include/languages/gl.mo, 
	  include/languages/ko.mo, include/languages/ko.po: Added Greek
	  translation, updated translations.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1267 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-27 14:40:55 +00:00
slerena 3d0b20a047 2008-11-26 Sancho Lerena <slerena@artica.es>
* godmode/agentes/configurar_agente.php: Fixed problem with agent module
        groups.

        * include/config_process.php: Fixed typo on prominent_time config token.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1265 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-26 16:52:09 +00:00
slerena 0ea1032176 2008-11-26 Sancho Lerena <slerena@artica.es>
* util/plugin/mysql_plugin.sh: New Mysql plugin for Plugin server.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1263 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-26 16:38:00 +00:00
Esteban Sanchez 80cf5e1a13 2008-11-26 Esteban Sanchez <estebans@artica.es>
* pandora_strutils.cc, pandora_strutils.h, ftp/pandora_ftp_client.cc,
	ftp/pandora_ftp_test.cc, ftp/pandora_ftp_client.h,
	ftp/pandora_ftp_test.h, windows/pandora_windows_info.h,
	windows/pandora_wmi.cc, windows/pandora_windows_info.cc,
	misc/pandora_file.cc, misc/pandora_file.h, pandora_agent_conf.cc,
	ssh/pandora_ssh_client.cc, ssh/pandora_ssh_test.cc,
	ssh/pandora_ssh_client.h, ssh/pandora_ssh_test.h,
	pandora_agent_conf.h, windows_service.cc, windows_service.h,
	modules/pandora_module.h, modules/pandora_module_logevent.cc,
	modules/pandora_module_exec.cc, modules/pandora_module_logevent.h,
	modules/pandora_module_exec.h, modules/pandora_module_freedisk.cc,
	modules/pandora_module_freedisk.h, modules/pandora_module_service.cc,
	modules/pandora_module_service.h, modules/pandora_module_proc.cc,
	modules/pandora_data.cc, modules/pandora_module_proc.h,
	modules/pandora_data.h, modules/pandora_module_factory.cc,
	modules/pandora_module_odbc.cc, modules/pandora_module_odbc.h,
	modules/pandora_module_factory.h,
	modules/pandora_module_freememory.cc, modules/pandora_module_list.cc,
	modules/pandora_module_freememory.h,
	modules/pandora_module_cpuusage.cc, modules/pandora_module_cpuusage.h,
	modules/pandora_module.cc, pandora.h: Tab style correction.
	Indentation blankspaces moved to tab characters.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1262 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-26 10:08:19 +00:00
jorgonzalez 55cdcaefe2 2008-11-26 Jorge Gonzalez <jorgegonz@artica.es>
* pandoradb_data.sql: Added korean translation.

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

        * include/languages/Makefile: Added 'ko' files for translation.

        * include/languages/ko.mo, include/languages/ko.po: Added korean
          translation.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1261 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-26 09:03:31 +00:00
jorgonzalez a3c4a4f5cc 2008-11-24 Jorge Gonzalez <jorgegonz@artica.es>
* include/languages/index.pot: Updated po template.

        * include/languages/es.po, include/languages/es.mo,
          include/languages/da.po, include/languages/da.mo: Updated
          translations.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1260 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-11-24 16:10:40 +00:00