* include/functions_gis.php: disabled the use of night version of
Openlayers. Change the "refreshMapView" javascript to load the library of
google maps with the api, and add function "refreshMapViewSecondStep"
for asincrone call in "refreshMapView" when load map google.
* include/javascript/openlayers.pandora.js: clean source code of
"js_refreshParentLines" and add the test if the parent agent is in the
map.
* godmode/setup/gis_step_2.php: disabled the use of night version of
Openlayers in function "printMap" and change the text of hierachy layer for
better english text.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2445 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Solved issue with several undefined
vars.
* include/functions_servers.php: Solved issue with several undefined
vars.
* include/functions_config.php: Added metaconsola witch to readconfig.
* include/config_process.php: Update build.. is YYMMDD !
* include/functions_ui.php: Removed deprecated call to split and replaced
by preg_split.
* index.php: Activated developer mode.
* operation/agentes/estado_monitores.php: Solved small problem with modules
without history, filling missing column in table. Added headers
* godmode/alerts/configure_alert_compound.php,
operation/agentes/status_monitor.php
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php,
godmode/alerts/alert_commands.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php: Removed deprecated call to include
config.php and in some cases, added new header style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add function "addParentLines", in ths function
make a hierachy layer and call "js_refreshParentLines" for paint hierachy
lines. In function "activateAjaxRefresh" use the function
"js_refreshParentLines" for repaint the lines.
*include/javascript/openlayers.pandora.js: add the global var
"storeLayerNameHierachy" for save the text localiced name of Hierachy lines
layer. Add the function "js_refreshParentLines" for paint the lines from
parent to sons. In function "changeShowStatus" add the
"js_refreshParentLines"
* operation/gis_maps/render_view.php: use the function "addParentLines" for
start the parent lines.
* operation/agentes/gis_view.php: clean sourcecode.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2442 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/gis_maps/ajax.php: fix the query to extract the GIS data for
agent, in any moment in the past I dirty the query, but now it's clean, and
now run fine the agent movement.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2441 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/openlayers.pandora.js: Modified js_printMap to support
Gmap type of maps.
* include/functions_gis.php: Modified printMap to support Gmap type of maps
* godmode/setup/gis_step_2.php: Modified to load on demand the Gmaps api
TODO: Use the key from the gmap_key input box.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2440 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/menu.css,
include/functions_db.php,
operation/menu.php: New code for give support for Metaconsole. Added nocache
settings in some SQL main functions to avoid globally usage of SQL cache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2439 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/gis_maps/configure_gis_map.php: fix in javascript function
"setFieldsFormLayer" set the checkbox.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2438 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: in fuction "getAgentsLayer" fix when none data
for agents in this layer.
* operation/gis_maps/render_view.php: fix link to edit map and fix the text
of header.
operation/gis_maps/index.php: use function "print_page_header".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2437 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: now function "getAgentMap" return true or false
if there is default map or not.
* operation/agentes/gis_view.php, godmode/agentes/agent_conf_gis.php: show
message of error when there isn't a default map
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2436 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: update with the new data in
the sql data file of pandora.
include/config_process.php: update the version.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2435 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/gis_maps/configure_gis_map.php: erase console log in some parts
in javascript, and fix the fill a hidden input with the levels of zoom in
a connection.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2434 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: add the default map from Open street map, and set
active by default the GIS.
* godmode/setup/gis_step_2.php: fix tiny bugs in the form that the default
values for zooms were exchangeds.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2433 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/tentacle_serverd,
util/pandora_server: Fixed "stop" problem in debian/ubuntu, which was
due a problem in redefinition of several LSB functions, stop function
was not working fine and exit condition was ignored.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2432 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* 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