Commit Graph

2171 Commits

Author SHA1 Message Date
mdtrooper 1e62c60690 2010-02-25 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: use zoom level.
	
	* godmode/gis_maps/configure_gis_map.php: include the things about
	default zoom level in function "validateMapData", "getMapData" and add
	the function "getNumZoomLevelsOfConnectionDefault".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2430 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-26 11:20:15 +00:00
slerena 8a94e178d1 2010-02-25 Sancho Lerena <slerena@artica.es>
* godmode/alerts/configure_alert_template.php,
	godmode/alerts/alert_templates.php,
	godmode/alerts/configure_alert_action.php,
	godmode/alerts/alert_actions.php: Show/Edit group for templates and actions.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2429 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-25 19:17:59 +00:00
slerena 0234c9e8c8 2010-02-25 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Implemented new alert type "onChange".




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2428 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-25 19:16:56 +00:00
slerena 9c8b33b3d9 2010-02-25 Sancho Lerena <slerena@artica.es>
* include/functions_ui.php: Alert information now show the default
	actions properly,and the action conditions (max/min).

	* include/functions_alerts.php: Added support on get_alert_templates_types
	for new alert type "onchange".

	* pandoradb.sql,
	extras/pandoradb_migrate_v3.0_to_v3.1.sql: Added new support for alert
	type "onchange".

	* godmode/alerts/alert_list.php: Alert information now shows the default
	action (if exist) and have a link to edit the template directly from here.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2425 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-25 18:48:36 +00:00
mdtrooper 6c62d8f94f 2010-02-25 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/agent_manager.php: fix dinamic show icon when change
	the select and show other icon the icon with "without status".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2424 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-25 18:18:30 +00:00
mdtrooper 3b6892c709 2010-02-25 Miguel de Dios <miguel.dedios@artica.es>
* ChangeLog: I did'nt upload in previous commit the changelog.

	* include/functions_gis.php: refactor the name of function "addPoint"
	to "addAgentPoint". In function "get_agent_icon_map" add new parameter
	$status for pass the status.
	
	* include/javascript/openlayers.pandora.js: add function "js_addAgentPoint"
	is same more or less "js_addPoint" and too for "js_addAgentPointExtent" and
	"js_addPointExtent".

	* operation/gis_maps/render_view.php: add the id_parent in the call of
	"addAgentPoint".
	
	* operation/gis_maps/ajax.php: clean source code and add the id_parent to
	return json for each agent.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2423 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-25 17:27:55 +00:00
Pablo de la Concepción Sanz a2001ff2ce 2010-02-25 Pablo de la Concepción <pablo.concepcion@artica.es>
* conf/pandora_server.conf: New option, update_parent to let the
    agent update it's parent by sending the parent name on the XML.

    * lib/PandoraFMS/Config.pm: Support for new option update_parent.

    * lib/PandoraFMS/Core.pm, lib/PandoraFMS/Dataserver.pm: Modified to
    update the parent of an agent at creation time and on update if
    the update_parent parameter is set to 1

    * man/man3/PandoraFMS::Core.pm.3: Updated manpage with the new
    documentation of the interface



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2422 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-25 17:09:19 +00:00
mdtrooper 6f91b31b80 2010-02-25 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: in function "addPath" fix the query to extract
	the path from a time.
	
	* operation/agentes/gis_view.php: add no-ajax control for filter the time
	to show path.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2421 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-25 16:32:07 +00:00
mdtrooper c58e3c3a5d 2010-02-25 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: in function "addPath" add the parameter
	$history_time for to set limit in seconds to past where to start path.
	Use new parameter in function "getAgentMap".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2420 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-25 15:51:37 +00:00
mdtrooper 45539d31f2 2010-02-25 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/gis_view.php: change the empty message to standar.
	
	* godmode/menu.php: change the text of visual console builder and GIS map
	builder, and move to down the Conection GIS editor.
	
	* godmode/gis_maps/configure_gis_map.php: change some text.
	
	* godmode/gis_maps/index.php: use new header.
	
	* godmode/reporting/map_builder.php: change some text.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2419 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-25 13:30:42 +00:00
mdtrooper 4ac27420e1 2010-02-24 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: change the setup params "maxExtent",
	"maxResolution", "numZoomLevels" from map to baselayer. Add new function
	"getAgentsLayer" to get agent info of agents in layer, but only agents not
	in group in layer. 
	
	* operation/gis_maps/render_view.php: use new function "getAgentsLayer".

	* operation/gis_maps/ajax.php: fix the extract agent gis info, and clean
	source code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2418 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-25 12:46:47 +00:00
Pablo de la Concepción Sanz e6d38f325c 2010-02-25 Pablo de la Concepción <pablo.concepcion@artica.es>
* godmode/setup/gis_step_2.php: Modified to get the KEY to load the Google
    Maps Javascript for the used domain. Now it stores the key, but still it
    doesn't load dinamicaly the javascript to show the preview.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2417 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-25 11:30:56 +00:00
Pablo de la Concepción Sanz d509fd443c 2010-02-24 Pablo de la Concepción <pablo.concepcion@artica.es>
* lib/PandoraFMS/Core.pm, lib/PandoraFMS/Dataserver.pm: Modified to
    update the parent of an agent if in learning mode.

    * man/man3/PandoraFMS::Core.pm.3: Updated manpage with the new
    parameter and improved documentation for pandora_update_agent

    * lib/PandoraFMS/Config.pm: Updated build




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2416 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-24 15:25:56 +00:00
mdtrooper 311f31d5dd 2010-02-24 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: fix map to show correct position the agent
	icons in the function "printMap".
	
	* include/javascript/openlayers.pandora.js: fix map to show correct position
	the agent icons in the function "js_printMap".

	* godmode/gis_maps/configure_gis_map.php: fix a mechanographic mistake in a
	text.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2415 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-24 15:19:16 +00:00
mdtrooper 1a95c79454 2010-02-24 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: in function "printMap" add the posibility to
	show the Static_Image base layer (WIP because it'snt show the icons), in
	function "getAgentMap" pass the status in the feature.
	
	* include/javascript/openlayers.pandora.js: in the function "js_printMap"
	add the posibility to show the Static_Image base layer (WIP).
	
	* operation/gis_maps/render_view.php: clean source code for the part of
	baselayers and add the code for Static Image baselayer.
	
	* godmode/setup/gis_step_2.php: clean source code uninitialize vars, add
	the preview static image var (WIP because it'snt show the icons).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2414 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-24 13:42:01 +00:00
Pablo de la Concepción Sanz bc1d03f1e7 2010-02-24 Pablo de la Concepción <pablo.concepcion@artica.es>
* godmode/setup/gis_step_2.php: Modified to be able to manage also
    Goolge Maps (TODO:preview and KEY management) and Static Images (TODO:
    preview).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2413 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-24 12:01:23 +00:00
mdtrooper 7db3cb7f1c 2010-02-24 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: fix the refresh time in function
	"activateAjaxRefresh", in functions "activateAjaxRefresh" and "addPoint"
	 add status agent.
	 
	* include/javascript/openlayers.pandora.js: add function "changeShowStatus"
	for change show icons by status, in function "changeRefreshTime" add reset
	timer, in function "js_addPoint" and "js_addPointExtent" add the state and
	hide if it's necesary.
	
	* operation/gis_maps/render_view.php: change the style of page, and add
	controls for hide agent icons by state.

	* operation/gis_maps/ajax.php: add the option "get_map_connection_data" in
	switch for get map connection data.

	* godmode/gis_maps/configure_gis_map.php: start to develop the preview map
	in editor.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2412 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-24 11:49:03 +00:00
Pablo de la Concepción Sanz f5fcd58481 2010-02-24 Pablo de la Concepción <pablo.concepcion@artica.es>
* pandora_console/operation/gis_maps/render_view.php: Changed PanZoom
    to PanZoomBar in the map.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2411 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-24 10:58:07 +00:00
raulmateos 31d35c315e 2010-02-23 Raul Mateos <raulofpandora@gmail.com>
* lib/PandoraFMS/*.pm, DEBIAN/make_deb_package.sh, pandora_server_*: 
	Updated year / build. Some spaces to tabs.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2410 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-23 17:49:05 +00:00
mdtrooper 132ab90b41 2010-02-23 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: in function "activateAjaxRefresh" add the
	posibility to change refresh time in execution time.
	
	* include/functions_ui.php: add in the "print_page_header" the feature to
	pass a array of buttons/items.

	* include/javascript/openlayers.pandora.js: add the function
	"changeRefreshTime" for change the refresh time.

	* operation/gis_maps/render_view.php: change the top of page for to
	adapt the new header, and add refresh control.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2408 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-23 16:36:24 +00:00
Pablo de la Concepción Sanz 6448be331c 2010-02-23 Pablo de la Concepción <pablo.concepcion@artica.es>
* godmode/setup/gis_step_2.php, godmode/gis_maps/configure_gis_map.php: 
    Usability improvements, change some texts, added some contextual tips.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2407 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-23 14:47:41 +00:00
mdtrooper 279067add1 Fix changelog copy & paste error.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2406 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-23 13:18:47 +00:00
mdtrooper 78a81f5234 2010-02-22 Sancho Lerena <slerena@artica.es>
* include/functions_gis.php: change the function "activateAjaxRefresh" for
	refresh also the agent maps, and in the function "getAgentMap" show icon
	with status the agent maps.
	* operation/gis_maps/ajax.php: in the switch option "get_new_positions"
	return GIS data for agent maps, in the "point_agent_info" and
	"point_path_info" option change for new tables.
	* operation/agentes/gis_view.php: add the ajax moving agent and click
	bubble info.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2405 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-23 12:12:41 +00:00
Pablo de la Concepción Sanz 9d81f45b63 2010-02-22 Pablo de la Concepción <pablo.concepcion@artica.es>
* lib/PandoraFMS/DataServer.pm: Fixed bug #2926077 there were one
    more place where the timestamp should be checked.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2403 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-22 20:18:37 +00:00
Pablo de la Concepción Sanz 6f2525311a 2010-02-22 Pablo de la Concepción <pablo.concepcion@artica.es>
* lib/PandoraFMS/Core.pm: Updated documentation, fixed wrong parameters
    in the call to distance_moved.

    * man/man3/PandoraFMS::Core.pm.3: Updated manpage.

    * lib/PandoraFMS/DataServer.pm: Added the process of position_description,
    parent_agent_name now is readed (TODO: process it). Fixed bug #2926077
    by handling the error returned by timelocal and ignoring the received
    timestamp to use the server one.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2402 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-22 19:43:39 +00:00
Pablo de la Concepción Sanz 535f5ac6c4 2010-02-22 Pablo de la Concepción <pablo.concepcion@artica.es>
* unix/Linux/pandora_agent.conf: Added parameters position_description
    and parent_agent_name, and updated loadaverage with a more efficient
    version.

    * unix/pandora_agent: Added POD documentation, modified to only add
    to the XML the minimum parameters (positional parameters,
    parent_agent_name,...) are not sent with default values if not
    deffined in the config file. Updated verion and build.

    * man/man1/pandora_agent.1: ManPage generated from unix/pandora_agent
    first version of the manpage.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2401 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-22 19:32:10 +00:00
slerena 1cb2846036 2010-02-22 Sancho Lerena <slerena@artica.es>
* include/functions_menu.php: Add calls for new enterprise ACL system.

	* include/config_process.php
	include/functions_config.php: Added new setup token for ACL enterprise.

	* index.php: Implemented new Enterprise ACL on page load.

	* extras/pandora_diag.php: Added new header style.

	* general/noaccess.php: Ending <div> was breaking layout. Fixed.

	* godmode/db/db_main.php: Added new header style.

	* godmode/menu.php: Added new Setup option for Enterprise ACL system.

	* godmode/snmpconsole/snmp_alert.php,
	godmode/setup/news.php
	godmode/users/configure_user.php
	godmode/reporting/map_builder.php: Added new header style.

	* godmode/setup/setup.php: Added new Setup option for Enterprise ACL system.

	* godmode/setup/setup_visuals.php: Added new header style.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2400 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-22 19:03:55 +00:00
mdtrooper f5377c5122 2010-02-22 Miguel de Dios <miguel.dedios@artica.es>
* operation/gis_maps/ajax.php: fix bug that pass wrong var to search
	status in function "get_agent_status".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2399 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-22 18:09:56 +00:00
mdtrooper 48865d8a62 2010-02-22 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_alerts.php: fix when try delete only the alerts from
	alert policies form. 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2397 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-22 17:01:58 +00:00
mdtrooper aa95edc888 2010-02-22 Miguel de Dios <miguel.dedios@artica.es>
* images/groups_small/*.ok.png, images/groups_small/*.default.png,
	images/groups_small/*.bad.png, images/groups_small/*.warning.png: add the
	group images for diferent status, it's used in the GIS map.
	
	* godmode/agentes/agent_manager.php: change for new form to name the icons
	with status.
	
	* include/functions_gis.php: clean source code in function "addPoint",
	rewrite the function "get_agent_icon_map" for used icons with state for
	group, change some parts of source code in the function "getArrayListIcons"
	for new form to name the icons.
	
	* images/gis_map/icons/*.png: change some icons.
	
	* operation/agentes/estado_generalagente.php: show message when there isn't
	the GIS data.
	
	* operation/gis_maps/ajax.php: change the source code and db query to
	return the GIS data for return default position for agent without GIS data.
	
	* operation/gis_maps/render_view.php: show agents without GIS data.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2396 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-22 16:13:12 +00:00
mdtrooper 2b337dde2a 2010-02-22 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/estado_generalagente.php: fix, use the new tables.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2395 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-22 10:01:50 +00:00
slerena cab8b481cc 2010-02-20 Sancho Lerena <slerena@artica.es>
* godmode/setup/setup.php: Fixed bug #2952636, thanks Junichi
        for the patch.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2393 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-21 18:50:00 +00:00
slerena 1044c0a75f 2010-02-20 Sancho Lerena <slerena@artica.es>
* include/gettext.php: Applied patch to solve problem in 64bit
        systems. Thanks Junichi!.  



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2392 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-21 18:37:55 +00:00
slerena e76cdb0747 2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.

	* include/styles/pandora.css: Changed background color of th default style.

	* include/functions_reporting.php: Improved function get_group_stats(). Now
	supports stats from batch-mode and get realtime stats in a more efficient
	way. Fixed get_fired_alerts_reporting_table() to avoid problems in external 
	reporting (PDF & XML).

	* include/functions_servers.php: get_server_performance() now uses batch mode
	stats reporting, and improved also the realtime stats generation. Same with
	function get_server_info().

	* include/functions_config.php: Added new config tokens (not fully 
	implemented yet) for event, trap, strings and audit automatic purge.

	* include/functions_ui.php: Added new print_page_header() function to set
	the new standard header in all pages, using the "tabbed" format to show
	the title, subtitle and other options like help, or custom-tabs for the page

	* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to 
	tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
	agents_unknown.

	* extensions/ext_backup: New directory to place "deleted" extensions.

	* extensions/dbmanager/dbmanager.css: Table names now are in it's original
	lowercase/uppercase format.

	* extensions/dbmanager.php: Updated headers, and now return "empty" when
	a search is empty, instead "error" as before.

	* extensions/users_connected.php
	extensions/module_groups.php
	extensions/plugin_registration.php
	extensions/pandora_logs.php
	operation/incidents/incident.php
	operation/snmpconsole/snmp_view.php
	operation/users/user.php
	operation/users/user_edit.php
	godmode/agentes/planned_downtime.php
	operation/events/events.php
	operation/visual_console/index.php
	operation/agentes/estado_generalagente.php
	operation/agentes/estado_agente.php
	operation/agentes/exportdata.php
	operation/agentes/ver_agente.php
	operation/agentes/status_monitor.php
	operation/agentes/alerts_status.php
	operation/users/user_statistics.php: Added new header format.

	* operation/agentes/estado_grupo.php: Removed old group view.

	* operation/agentes/tactical.php: Adapted to use new realtime/batch 
	statistical system. Placed events above server info. Showing only pending
	events and other minor changes.

	* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
	most ugly, but much more useful than before.

	* operation/agentes/networkmap.php: Added title.

	* operation/messages/message.php: Added title and adding some exists in 	
	code was missing before.

	* operation/reporting/reporting_viewer.php: Added title.

	* operation/reporting/graph_viewer.php: Added title.

	* operation/reporting/custom_reporting.php: Added title.

	* operation/servers/view_server.php: 

	* operation/menu.php: Replaced old group view with new (this has english
	name). Removed autorefresh "by default" in server view.

	* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.

	* extras/pandora_diag.php: Minor changes, removed some info and added other.

	* general/logon_ok.php: Minor aesthetic changes.

	* general/header.php: Fixed missing ";"

	* operation/extensions.php,
	godmode/extensions.php: Added support for delete extensions.

	* godmode/menu.php: New setup items.

	* godmode/setup/setup.php,
	godmode/setup/performance.php,
	godmode/setup/setup_visuals.php: Reordered setup options, new setup section	
	"Performance", added new performance options to set  "realtime" statistics
	or "batchmode" with it's own interval. Some setup info is now shared with
	the servers (but it it's any change in setup, servers should be restarted 
	anyway).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 15:16:03 +00:00
Pablo de la Concepción Sanz 2f878ad76e 2010-02-19 Pablo de la Concepción <pablo.concepcion@artica.es>
* lib/PandoraFMS/Core.pm: Updated docuemtation of the interface.

	* man/man3/PandoraFMS::Core.pm.3: Updated manpage with the new
	documentation of the interface



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2389 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 14:26:09 +00:00
Ramon Novoa 24d57bbcbf 2010-02-19 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Enabled FF protection for module states
          (not just events).




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2388 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 13:16:46 +00:00
slerena a003fd22e4 2010-02-19 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/Core.pm: Added comments to new statistical functions.
	Added support for log4x  in statistical functions.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2387 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 13:08:42 +00:00
mdtrooper 72bc9ecb30 2010-02-19 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: adapt to new tables.
	
	* include/javascript/openlayers.pandora.js
	
	* operation/gis_maps/render_view.php: adapt to new tables.
	
	* operation/gis_maps/ajax.php: adapt to new tables.
	
	* operation/agentes/gis_view.php: clean source code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2386 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 12:26:54 +00:00
Pablo de la Concepción Sanz b4515f6638 2010-02-18 Pablo de la Concepción <pablo.concepcion@artica.es>
* lib/PandoraFMS/Core.pm: Restored documentation lost in one of the
    last commits.


    * man/man3/PandoraFMS::Core.pm.3: Updated manpage with the restored 
    documentation



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2381 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-18 18:16:27 +00:00
mdtrooper aae4dd1fb6 2010-02-18 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/configurar_agente.php:  fix the date to save into DB.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2380 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-18 18:14:02 +00:00
Pablo de la Concepción Sanz efc6f3acd7 2010-02-18 Pablo de la Concepción <pablo.concepcion@artica.es>
* lib/PandoraFMS/Core.pm: Modified to use the new tables
    (tgis_data_history and tgis_data_status).

    * man/man3/PandoraFMS::Core.pm.3: Updated manpage with the new
    documentation



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2379 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-18 17:49:48 +00:00
mdtrooper ced57d7aa1 2010-02-18 Miguel de Dios <miguel.dedios@artica.es>
* operation/gis_maps/render_view.php: change to use new tables.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2378 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-18 17:32:14 +00:00
slerena 5b1ce7cc82 2010-02-18 Sancho Lerena <slerena@artica.es>
* conf/pandora_server.conf: New option, self_monitoring.

	* lib/PandoraFMS/Config.pm: Support for new option self_monitoring.

	* lib/PandoraFMS/Core.pm: 	Access update is not refreshed by network 
	modules anymore (gaining a lot of performance here). Added new functions
	for internal statistics and automonitoring.

	* lib/PandoraFMS/Tools.pm: New funtions for self_monitoring.

	* bin/pandora_server: Modified error handler to avoid show info about bad
	load of some optional libraries. 
	Modified general loop of maintance tasks in three
	blocks: high, medium and low latency. Placed here in fixed steps (5, 30 and
	one minute) all tasks pending before by server_threshold. Added 
	self_monitoring and internal statistic mode (for group and servers).

	* util/pandora_db.pl: Update tconfig with last time of database maintance 
	time 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2377 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-18 17:21:40 +00:00
mdtrooper baf9fc4f85 2010-02-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: check in the function "addPath" if the agent
	haven't history data. And clean source code.
	
	* operation/agentes/gis_view.php: change to use new tables, and show
	messages when the agent haven't data GIS.
	
	* godmode/agentes/agent_conf_gis.php: change the message for agent without
	data GIS.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2376 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-18 16:54:24 +00:00
mdtrooper 3a7cfb3b3f 2010-02-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php: hightlight that the parameter $script in
	function print_input_text_extended isn't in use.
	
	* include/functions_gis.php: create function "getDataLastPositionAgent"
	that return row of position and other data for id agent.
	
	* godmode/agentes/agent_conf_gis.php: add the validate fields and adapt
	to new tables.
	
	* godmode/agentes/configurar_agente.php: adapt to new tables.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2375 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-18 13:29:36 +00:00
Pablo de la Concepción Sanz fc6c4c678a 2010-02-17 Pablo de la Concepción <pablo.concepcion@artica.es>
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Modified data
    model using a new table tgis_data_status to save the current GIS data and
    the table tgis_data_history to store the historical GIS data. That also
    means that the GIS related fields from the table tagente are now in the
    table tgis_data_status. The foreign key in the table tgis_map_layer to
    tgrupo has been droped because now it's possible to have layers without
    group, just agents.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2374 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-17 19:35:39 +00:00
mdtrooper 2e1410f8dd 2010-02-17 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: add the parameter id layer in the function
	"makeLayer" for add the id layer (id of db) in the layer. Fill in the
	sourcecode  in the function "activateAjaxRefresh" that now show new
	agents in the map in real time and add make changes in this function.
	 
	* operation/gis_maps/render_view.php: use the new parameter in the call
	of function "makeLayer".

	* operation/gis_maps/ajax.php: add code to return new positions (and name
	and icon) when the ask the positions in "activateAjaxRefresh".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2373 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-17 17:27:25 +00:00
slerena f848cb4711 2010-02-18 Sancho Lerena <slerena@artica.es>
* unix/Linux/pandora_agent.conf,
        linux/pandora_agent.conf: Modified way to get loadaverage, taken from
        Enriquegm from the forums.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2372 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-17 02:16:03 +00:00
raulmateos e0e853741d 2010-02-16 Raul Mateos <raulofpandora@gmail.com>
* extensions/module_groups.php: Better description text. Changed font
	colour.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2371 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-16 22:36:12 +00:00
mdtrooper 23af6b04ff 2010-02-15 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: add the function "getMapConnection" get the row
	of connection for id connection, "updateMap" function update the all data in
	the DB, "validateMapData" function validate the map data previous update or
	save in the database and if it's invalid, write the css code for set colors
	and other styles, "getMapData" return all data about map for id map,
	"addConectionMapsInForm" tranlate the map connection array to html code and
	javascript for to write in the form when edit, "addLayerList" translate the
	layer array to html code and javascript for write in the form when edit.  
	
	* operation/gis_maps/render_view.php: fix the link to edit map.
	
	* godmode/gis_maps/configure_gis_map.php: change many parts of the source
	code for add the method the edit in the form and add more usability
	to form.
	
	* godmode/gis_maps/index.php: fix the links to edit and view map.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2370 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-16 15:28:07 +00:00