* include/functions_api.php: fixed the call "get_total_modules" now
it does not count the pending delete modules. And thanks Cucumber for
to the advise.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9486 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Added 'plugin_macros' and
'module_macros' to the return column of tree_agents API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9266 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Added 'module_macros' parameter
to api_set_create_*_modules, api_set_update_*_module, and so
on. Also added 'macros' parameter to plugin module functions.
Fixes: #2398
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9265 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: fixed the get events filtered by group.
MERGED FROM THE BRANCH PANDORA_4
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9176 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: fixed the get events when not found the
agent, before it returned the systems events, now it returns empty
list.
MERGED FROM THE BRANCH PANDORA_4
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9169 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* mobile/operation/events.php
mobile/include/style/main.css: Improve events layout
and fix events validation
* include/functions_events.php
include/functions_api.php: Fix event validation from API
and delete deprecated function
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9131 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_events.php: Change the way of store
the event comments (supporting old way)
* include/functions_api.php: Improve API clean process
of the csv output.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9034 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: fixed the output of data as csv when
the data have a return carriges.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8981 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_agents.php, include/functions_graph.php,
include/functions_api.php: fixed a pair of bugs of the api calls.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8892 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: added calls to set gis data for agent
"set/gis_agent_only_position" and "set/gis_agent", and for to get
gis data "get/gis_agent".
* include/functions_agents.php: added function "agents_update_gis".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8680 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Changed the way of encode
data configuration in create/update config form API
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8450 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/tag/tag.php: fixed the column for large list of emails,
now it shows a dialog.
Fixes: #3611472
* include/functions_api.php, operation/snmpconsole/snmp_browser.php,
extensions/ssh_gateway.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8031 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: New function to create a tag
via API.
* include/functions_tags.php: Create tag only if not exists.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7916 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Improved performance of
get_tree_agents() API by omitting unnecessary data copies and
queries when output fields are explicitly specified.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7853 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Added new API function to
create custom field and to get custom field ID by name.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7748 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_config.php: added code to set the config options
for the history actions.
Fixes: #3606285
* include/functions_api.php: improved the source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7738 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_events.php: Added new fields to events_create_event
function: critical warning and unknown instructions, source and tags.
* include/functions_api.php: Reimplemented api_create_event API function,
the behaviour was completly wrong from documented and events_create_event
function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7733 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/setup/setup_general.php, godmode/setup/setup_netflow.php,
godmode/setup/setup.php, godmode/setup/performance.php,
godmode/setup/setup_visuals.php, include/functions_config.php: added
check of update the options in the setup and show the message to
success or not the operation for the user.
Fixes: #3605972
* include/functions_api.php,
operation/agentes/estado_generalagente.php: fixed the code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7730 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/javascript/pandora_modules.js, include/functions_api.php:
improved the source code style.
* operation/agentes/estado_generalagente.php: fixed the set name
style for the agent.
Fixes: #3606134
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7729 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/agentes/module_manager_editor_common.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/agentes/agent_manager.php: updated the code to module
constants.
* include/javascript/pandora_modules.js: fixed the set the
module_data from to the json.
* include/functions_api.php: cleaned source code style.
* include/constants.php: addded lost constant for the module
prediction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7728 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php, operation/agentes/alerts_status.php:
improved the style code.
* include/functions_alerts.php: in function "get_group_alerts" fixed
the get all alerts, sometimes set empty the return array.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7712 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/modules/manage_network_components_form_common.php,
godmode/massive/massive_edit_modules.php,
include/functions_api.php: improved the form of modules the part
of critical and warning widgets.
Fixes: #3605482
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7710 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php, include/functions_agents.php,
include/functions_config.php, include/ajax/reporting.ajax.php,
include/functions_snmp_browser.php,
operation/agentes/status_monitor.php: improved code style.
* include/functions_graph.php, include/graphs/fgraph.php,
include/graphs/flot/jquery.flot.pie.js,
include/graphs/flot/jquery.flot.pie.min.js,
include/graphs/flot/pandora.flot.js,
include/graphs/functions_flot.php: fixed the pie graphs, added the
expanded version of flot pie js file with some changes for the
last version of jQuery.
Fixes: #3604555
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7675 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandoradb_data.sql: Fixed the macros of the
default plugin MySQL
* include/functions_groups.php
include/functions_api.php
include/functions_ui.php
include/functions_agents.php
include/functions_modules.php
include/constants.php
operation/agentes/estado_ultimopaquete.php
godmode/db/db_sanity.php
godmode/agentes/agent_template.php
godmode/agentes/configurar_agente.php
godmode/servers/plugin.php: Create a function to disable
modules fixing the status counts and replace the old way of
do it in all the console. Fixin a lot of old way of create
and delete modules too to use the centralized function and
dont break counts. BUG 3604463
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7651 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/ajax/events.php
include/functions_graph.php
include/functions_events.php
include/javascript/pandora_events.js
include/functions_config.php
operation/events/events_list.php
operation/events/events.php: Create a new
event visor to metaconsole history events
* include/functions_api.php: Added a new API function
to create netflow filters
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7483 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/alert_list.builder.php,
operation/messages/message_edit.php, include/functions_api.php,
operation/reporting/reporting_xml.php,
godmode/reporting/graph_builder.graph_editor.php: cleaned source
code style.
* include/functions_io.php: improved the function "__" for to hook
the translations from metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7292 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f