* include/functions.php: Fixed problem in show_event_type() function
who mades events.php to do a invalid filtering by event status.
* operation/events/events_rss.php: Added optional (commented code)
support for filtering RSS request by the API ACL. need to implement a switch
in the config array to use here ACLs or not.
* operation/events/events.php: Fixed problem filterings events by status
(warning, critical, normal and not-normal).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2306 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* conf/pandora_server.conf, lib/PandoraFMS/Config.pm,
lib/PandoraFMS/Core.pm, lib/PandoraFMS/DataServer.pm: Added activate_gis
configuration parameter, and modified Core.pm and Dataserver.pm to skip
positional data processing when activate_gis is not activated
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2305 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Added group column to control
ACLs as it was done in pandoradb.sql.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2304 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: add the group column for SLA purposes.
* operation/agentes/gis_view.php: page for GIS data in agents view.
* operation/agentes/ver_agente.php: add the tab for GIS data.
* operation/menu.php, godmode/menu.php: change the lines for show the
entries in menu, now show the entries gis when it's set on.
* godmode/setup/setup.php: add the field to set on or off the GIS features
in the Pandora Console.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2303 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: small fix for to erase a alert message in php
when call a ajax.php.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2302 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_server.spec: Fixed spec to be more compatible with other
RPM distros.
* lib/PandoraFMS/NetworkServer.pm: Fixed ugly/noisy message "Use of
uninitialized value $output in string eq at /usr/local/share/perl
/5.10.0/PandoraFMS/NetworkServer.pm line 268".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2299 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql,
pandoradb_data.sql: Modified the GIS related tables, to make a better
GIS Data model, also included the activate_gis config parameter on tconfig.
Added column timezone_offset to table tserver_export so the export server
can send timezone information
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2298 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/config_process.php: use the flag "$develop_bypass" to change the
method to show the php messages for developing purposes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2297 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/setup/setup.php: fix bug that overwrite the row of "Attachment
store" field when put the row of field "IP list with API access".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2296 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/styles/menu.css, godmode/gis_maps, godmode/menu.php,
godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php: add the
page to manipulate the GIS maps and add the page to create (and edit not at
the moment) the GIS maps.
* operation/gis_maps/render_view.php: small changes in the develop of
render, add events and popups.
* include/functions_gis.php: add code for respond to events, add function
"saveMap" to save a map.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2294 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Modified to unify create and update functions
using optinal parameters as Ramon sugested.
* lib/PandoraFMS/DataServer.pm: Modified to ignore invalid positional data,
use the unified functions from Core.pm, and store the agent_timestamp
modified by the agent_timezone.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2292 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_gis.php, operation/gis_maps/ajax.php: code for GIS maps,
now show correctly the path points and start to show the popup for this
points.
* include/javascript/OpenLayers/lib/Gears/gears_init.js,
include/javascript/OpenLayers/lib/OpenLayers/Format/ArcXML/Features.js:
some files of OpenLayers that I erased in the previous clean.
* images/spinner.gif: image for ajax loading.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2287 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/OpenLayers/*: include the OpenLayers library into the
Pandora file system for GIS use.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2278 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/OpenLayers/*: include the OpenLayers library into the
Pandora file system for GIS use.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2277 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Modified distance_moved function to calculate
the distance using Havesine formula to take in account the earths curvature
Modified update_agent_position to update also number_of_packages on
tgis_data
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2276 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Added column
number_of_packages to tgis_data to track the number of data packages
received while the agent is in the same position.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2275 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm, lib/PandoraFMS/DataServer.pm: Fixed a bug with
some parameters called on wrong order, standarized the order of the
position parameters so always is longitude, latitude, altitude.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2274 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Modified DB
schema to give a default value to start_timestamp on tgis_data, without
it as is a timestamp MySQL sets the default value as CURRENT_TIMESTAMP
and also sets the CURRENT_TIMESTAMP ON UPDATE, setting the DEFAULT
CURRENT_TIMESTAMP prevents MySQL to set the ON UPDATE CURRENT_TIMESTAMP.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2273 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Modified to have different functions for the
creation and update of the agent when it has position information, also
added some auxiliary functions to store and update this position information.
* lib/PandoraFMS/DataServer.pm: Modified to use the new functions to create
and update the agent data adding also the position information.
* lib/PandoraFMS/PluginServer.pm, lib/PandoraFMS/PredictionServer.pm,
lib/PandoraFMS/NetworkServer.pm, lib/PandoraFMS/WMIServer.pm: Modified to use
again the old functions to create and update the angent as in this servers
we don't have the position information.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2272 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Modified DB
schema to add, group_id and zoom_level to the table tgis_map and set the
primary keys of the new tables as autoincremet.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2271 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* DEBIAN/* : restore previus version, I had mistake with this directory in
Eclipse aplication between Enterprise and Open.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2270 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql, extras/pandoradb_migrate_v3.0_to_v3.1.sql: Modified DB
schema to store more efficiently the GIS information,and added some
comments to explain the use of the new columns. Also added the last
change on the graph weights to the migrate script.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2267 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/DataServer.pm: Updated to process GIS information from
the .data (altitude, latitude, longitude and timezone_offset).
* lib/PandoraFMS/Core.pm: Added pandora_update_position function, to
store GIS information on the databse.
* lib/PandoraFMS/PluginServer.pm, lib/PandoraFMS/PredictionServer.pm,
lib/PandoraFMS/NetworkServer.pm, lib/PandoraFMS/WMIServer.pm: Updated
to send timezone_offset to pandora_update_agent function.
* util/pandora_xml_stress.pl, util/pandora_xml_stress.README: Updated
to generate agents with GIS information (altitude, latitude, longitude
and timezone_offset).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2262 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: Custom graph weights now can be float.
* include/config_process.php: Updated version to 3.1-dev
This is the first commit of 3.1 version ! :-)
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2261 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb.sql: upps, too small, in huge systems could give a
problem in the autoinsert ID.
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: Fixed a broken line
that make problems in our upgrade script. Added upgrade for
update manager from 2.x to 3.0 version URL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2259 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/Image/image_functions.php: PHP 5.2 and higher does
not support (deprecated) get_mimetype. Avoiding headers lets
the browser to decide contents of stream and now this works
on modern PHP, before not :(
* extensions/hello: Removed sample.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2257 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_servers.php: Fixed notice (division by 0).
* include/functions_visual_map.php: Fixed problem in graphs
embedded in the visual console maps (problem with & in
fgraph call !!?).
* include/config_process.php: Added supression of DEPRECATED
system messages for PHP 5.2.11 or higher insted 5.3
* godmode/agentes/module_manager_editor_prediction.php: Fixed
several missing fields in the prediction module edition.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2256 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* lib/PandoraFMS/Core.pm: Fixed problem generating events with
character ' that makes SQL queries in console to fail.
* util/plugin/webcheck_plugin.sh: Christmas extra :-). Plugin
to check WEB content change (by MD5 stamp).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2255 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* linux/pandora_agent_daemon: Some ugly warnings are fixed.
* linux/pandora_agent.spec: /spool../data_out was not correctly
working, fixed.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2254 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f