* 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
Updated tentacle from the tentacle repository and generated
manpage. TODO:Make the installer install the manpages
* unix/tentacle_client: Added pod documentation to generate manpages.
* man/man1/tentacle_client.1: First version of the manpages for
tentacle_client
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2369 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf, lib/PandoraFMS/Config.pm: New configuration
parameters: recon_reverse_geolocation_mode, recon_reverse_geolocation_file,
recon_location_scatter_radius. As now the Recon Server can try to geolocate
an agent when it's found by revers geoip location.
* lib/PandoraFMS/Core.pm: Added first version of POD documentation to
create the manpage and to have most of the subrutines documented. Also
it's possible to add the description of the location to the GIS information
on the pandora_update_agent and pandora_create_agent subroutines. And
finaly moved away the GIS related functions (distance_moved) to their own
new module PandoraFMS::GIS
* lib/PandoraFMS/GIS.pm: New module to keep all the GIS related functions
of Pandora FMS. Now it exports distance_moved, get_reverse_geoip_sql,
get_reverse_geoip_file and get_random_close_point.
* lib/PandoraFMS/ReconServer.pm: Updated to get GIS information by doing
reverse IP geolocation using GIS module.
* man/man3/PandoraFMS::Core.pm.3, man/man3/PandoraFMS::GIS.pm.3: New
manpages for Core and GIS modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2368 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/tentacle_server: Updated tentacle server and synchronized with the
version from tentacle proyect.
* man/man1/tentacle_server.1: Updated manpage from the updated pod
documentation on bin/tentacle_server
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2367 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Added cusstom colums (
custom_string_1, custom_string_2, custom_string_3, custom_integer_1 and
custom_integer_2) to tnetwork_component, added also some configuration
parameters that were missing. Reordering a bit. And fixed a missplaced ';'
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2366 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: in the function "saveMap" set the first map
as default.
* godmode/setup/gis_step_2.php: minor stetic change the link of refresh by
button.
* godmode/gis_maps/index.php: add many alerts in the change the default map
and delete any map. And fix the delete map parameter.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2359 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/tentacle_server: Added first version of POD documentation, there
are still room for improvement (TODO: add the example section)
* man/man1/tentacle_server.1: ManPage generated from bin/tentacle_server
using pod2man.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2358 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: add new fields to tnetwork_component for support the
snmp ver 3.
* godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_components_form_network.php
godmode/modules/manage_network_components.php: add support to snmp ver 3,
add the fields for this use, and now can create and edit network
component with snmp ver 3.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2356 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/modules/manage_network_components_form.php: clean source code and
set correct ident.
*godmode/modules/manage_network_components_form_network.php: remove the end
of source code that it's unused.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2355 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: clean source code, delete javascript debug
info messages for firebug.
* godmode/agentes/module_manager_editor_network.php,
godmode/agentes/configurar_agente.php: add support for SMNP ver3 in the
forms to add or edit "Network module".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2352 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_agent_installer: fix bug when uninstall the agent in the same
machine that it have a Pandora Server, that the uninstaller deleted the
dirs share with Pandora Server (/var/spool/pandora/*)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2351 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Validation of positiona parameters, check
if the parameters are defined and if they have valid values.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2350 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/db/db_main.php: Added new metrics about DB usage. Added
last time pandora_db.pl was running in the system.
* godmode/db/db_info.php: Added graphic from db_main
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2347 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/reporting/reporting_viewer_pdf.php
include/functions_reporting_pdf.php: Small fixes for PDF reporting.
Decode entities to show texts correctly in description of each element.
* pandoradb.sql: new enterprise structures.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2345 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: in function "saveMap" now save the default
connection.
* operation/gis_maps/ajax.php: add option "get_data_conexion" for get by
ajax the data connection when pass id_connection.
* godmode/gis_maps/configure_gis_map.php: now you can set the default
connection and too load the data by default for each connection.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2344 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* bin/pandora_server: Better error management, avoiding to show Enterprise
loading errors, and showing in console critical errors, helping to identify
silly errors like DB credentials, etc.
Added usage of pandora_get_sharedconfig() to get configuration from DB.
* Config.pm: Updated build. Added pandora_get_sharedconfig(). Force three
config tokens to be readed from DB, using default values if cannot be readen
from database (agentaccess, realtimestat and stats_interval).
* Core.pm: Added new parameter to pandora_event() to pass status of the
event (validated, not validated). Implemented auto-validation of low
priority events: normal/ok events will be always shown as autovalidated, and
warning and normal events will be validated with critical events, and when
a module is restored (normal/ok), all it's warning/critical pending events
will be validated.
Fixed also bug with FF Threshold who doesnt' trigger events until FF + 1
instead FF value.
* Server.pm,
NetworkServer.pm,
Dataserver.pm,
ReconServer.pm: Raise event with status 0 (non validated) by default.
* NetworkServer.pm: Implemented support for SNMP v3.
* util/pandora_db.pm: Very important upgrade to this script. Now will
delete all huge tables (tagente_datos, tagente_datos_string and
tagent_acccess) using several independent blocks (by default 100) avoiding
mysql locks which happen in the past.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2341 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/gis_maps/index.php: Fixed regresion, standarized using map_id
as parameter.
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Added column
default_map to table tgis_map to mark the default map
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2340 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Changes in several tables and new tgroup_stat table.
Added several index and dropped some fields in tagente_datos and
tagente_datos_string tagent_access.
* godmode/setup/setup.php,
* include/functions_config.php: Management of new timezone settings and
realtime stats parameters.
* include/config_process.php: New timezone management. Updated build.
* pandoradb_data.sql: Build update. Added new tokens realtimestats and
stats_interval.
* install.php: Several changes: Now display GPL licence, better SQL error
management, and steps are shown now as text instead a progress bar. Also
show version and build of the installer.
* extensions/dbmanager.php: Removed some warnings
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Updated with latest changs.
* godmode/agentes/module_manager_editor_network.php
godmode/agentes/configurar_agente.php
godmode/agentes/module_manager_editor.php: Implemented partial support for
SNMP v3. Miguel will finish the work :-)
* index.php: Session close function deprecated, replaced by a more standard
method with unset.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2338 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add in the function "getAgentMap" a new
parameter "centerInAgent" (default true) for center the map in the last
position of agent.
* operation/agentes/ver_agente.php: clean source code.
* godmode/agentes/agent_conf_gis.php: add page that you can change the
position of agent.
* godmode/agentes/configurar_agente.php: add the code to update the changed
coords of agent, and show the tab to access the agent_conf_gis.php.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2337 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: clean source code, and extract the javascript
code to openlayers.pandora.js.
* include/javascript/openlayers.pandora.js: new file, have a source code of
gis in javascript.
* operation/gis_maps/render_view.php, operation/gis_maps/index.php,
operation/agentes/gis_view.php, godmode/agentes/agent_manager.php,
godmode/setup/gis.php, godmode/gis_maps/configure_gis_map.php,
godmode/gis_maps/index.php: add the require javascript to
"openlayers.pandora.js".
* godmode/setup/gis_step_2.php: add the source code to improve usability,
now can set with the mouse points of center and default position for agents
without gis data.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2335 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* util/pandora_db.pl: Script upgrade to purge data in several steps
avoiding timeout and deadlocks() in high capacity enviroments.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2333 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf, lib/PandoraFMS/Config.pm: Added
location_error parameter
* lib/PandoraFMS/Core.pm: Fixed bugs in the creation and update of
the agent that where messing with the locations. Fixed distance on the
earth formula. Use of the location_error parameter to decide if an
agent has moved or not.
* util/pandora_xml_stress.pl, util/pandora_xml_stress.README: added
parameter timezone_offset_range to let the timezone be random in the
range given, and added the code to use it.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2332 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/menu.php: small stetical change in menu entry that I forget to
commit in previus upload.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add javascript function "isInt" for test int
values, rename some javascript functions for to avoid typing mistakes with
similar name functions in PHP. Add the function "activateAjaxRefresh" and
"getArrayListIcons".
* operation/gis_maps/ajax.php: add new operation "get_new_positions" for
ajax refresh the points.
* operation/gis_maps/render_view.php: change the source code for to use new
functions as "activateAjaxRefresh" for example.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2330 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/agentes/ver_agente.php: fix the show icon agent view.
* images/gis_map/icons/dot_bad.png, images/gis_map/icons/dot_ok.png,
images/gis_map/icons/dot.png, images/gis_map/icons/dot_warning.png: add one
more icons for agent in GIS system.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2329 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/configurar_agente.php, godmode/agentes/agent_manager.php:
add in the agent config form the fields Icon agent select and Ignore new
GIS data.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2328 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
Changes ported from 3.0 branch.
* include/javascript/pandora_visual_console.js: Thiner lines in maps.
* include/functions_visual_map.php: Fixed several issues in visual maps
(bad hierarchy status color, limited depth for recursion, get unknown
for agents and modules, and line color is now always associated to
parent status) and non-status elements like labels, graphs or progress
bars now doesnt propagate module status to parents.
* include/functions_db.php: Added parameter to get_db_all_rows_sql() to
avoid use of cache. Function process_sql() was not properly checking if
cache usage was disabled and was always using cache. Added support for
checking unknown status in get_agentmodule_status() function.
* extensions/dbmanager/dbmanager.css,
extensions/dbmanager.php: Fixed width of textarea.
* operation/events/events.php: Fixed bug #2943907.
* operation/agentes/exportdata.php: Fixed problem exporting CSV
when data to export is TOO big, using an internal cache to read
data.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2327 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/gis_maps/render_view.php: Fixed call to get_agent_names to
get the names in the same case as they are in the DB.
* operation/agentes/gis_view.php: Changed size of the map to be relative
* include/functions_gis.php: Fixed the call to addPoint in getAgentMap
to use the new parameters.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2322 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/gis_maps/render_view.php: add the check if there aren't any
connection to map.
* operation/menu.php: change parameter "id" to "id_map".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2318 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: add function "deleteMap" for to delete the map
and other rows in tables related.
* godmode/gis_maps/index.php: use the "deleteMap" in link of delete map.
* include/functions_db.php: add function "clean_cache" for clean the
problematic (sometimes) cache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2317 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php: Modiffied addPoint and addPointExtent to
receive more parmeters so it's possible to use any kind of point.
Modified comments on saveMap2
* operation/gis_maps/render_view.php: Used map_id instead if id when
the parameter passed in the url is a map id.
Fixed to work with the new function getMapConf.
Improved "pure" view. Still some things are hardcoded and needs improvement
* operation/gis_maps/ajax.php: Modified to suppor calls to get info of
different kind of points. Removed hardcoded data.
* operation/gis_maps/index.php: Used map_id instead if id when
the parameter passed in the url is a map id.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2315 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f