* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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