* include/functions_api.php: fixed the call "set_update_agent"
because before the call get the id_server but this data never
was translated to name_server. And added id_server into the call
"get_pandora_servers" in the last position.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10333 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: restored the parameter name server in
the api call "set_new_agent", thanks KOSAKA.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10332 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Added support for 'each_ff' and
'ff_timeout' to 'set add_*_module_policy'.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10268 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Added support for ff_threshold to
'set new_local_component'. Fixed that component id can not be set
correctly by 'set new_local_component'.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10267 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Added support for 'each_ff' and
'ff_timeout' to 'set new_network_component',
'set new_plugin_component' and 'set new_snmp_component'.
Fixed that component id can not be set correctly by
'set new_*_component'.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10254 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Added support for 'each_ff' and
'ff_timeout' to module creation and modifying APIs.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10250 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Added the parameter
"address resolution" to the functions
"api_get_netflow_get_data" and "api_get_netflow_get_stats".
* include/functions_netflow.php: Added the parameter
"address resolution" to the functions "netflow_get_data",
"netflow_get_stats", "netflow_get_summary",
"netflow_get_record" and "netflow_draw_item".
* operation/netflow/nf_live_view.php: Added an option to
apply IP address resolution to the netflow searches.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10147 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Fixed the function
"get_events_with_user". Fixed the json output format.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9966 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Added new API function to validate
alerts from PagerDuty notification service
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9704 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* 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
* include/javascript/pandora.js, include/functions_api.php: cleaned
source code style. And erased deprecated functions.
* include/functions_ui.php: I hope that is finished the changes for
the function "ui_print_agent_autocomplete_input" (at the moment) and
added a huge header doc on the function.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6991 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/incidents/incident_detail.php,
operation/agentes/exportdata.php, operation/events/events_list.php,
operation/events/events.php, godmode/events/event_edit_filter.php,
godmode/massive/massive_edit_agents.php, include/functions_api.php,
include/constants.php, include/javascript/pandora.js,
include/functions_ui.php: started to use the new function
"ui_print_agent_autocomplete_input" to make more easy (and standar)
the autocomplete agent input.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6974 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* godmode/users/configure_user.php: fixed when the metaconsole is
not set.
* godmode/reporting/reporting_builder.php: cleaned source code
style.
* include/functions_reports.php: fixed into the function
"reports_get_reports" to get reports in All group for users of
others groups.
* include/functions_api.php: fixed the confused error messages when
there is data events.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6878 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Add the missed function api_get_graph_module_data
and update it to work with last graph system
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6854 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Change the return of the
functions recently added to numeric values to be
easily checkable
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6840 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_console/include/functions_api.php: Added
a safe_input to fix entities problems in last feature
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6834 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Added API function to
get the module data info from the agent conf file
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6833 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Added to API the actions:
add, update and delete module in agent config file
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6831 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_reporting.php: Improved several
parts of SLA reports. Add icons to criticity, etc.
* include/functions_api.php: Fixed bug in get events
api function remaning function
* godmode/reporting/graph_builder.graph_editor.php: Increase
the size of little combo boxes in combined graphs editor
Merged from 4.0.2
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6679 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php
include/api.php: Change the names of the functions_api
functions with prefix 'api_' for security. Improve
the wildcards of the ACL's IP list to allow place
wilcard anywhere. Add to API the possibility
of be extended from extensions.
MERGED from 4.0.2
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6551 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_tags.php: Added a method to get all tags.
* include/functions_api.php: Added de get_tags api call.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6391 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Added to API a test function
to test the API connection returning OK when success
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6364 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_events.php: into the function
"events_validate_event" fixed the return false when fail validation.
* include/functions_network_components.php: fixed the includes.
* operation/agentes/exportdata.php: cleaned source code style.
* include/functions_api.php: fixed the checking error to healty
level into the function "get_events".
MERGED FROM 4.0.2
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6212 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* operation/agentes/exportdata.php,
operation/events/events_list.php: cleaned source code style.
* include/functions_events.php,
include/functions_network_components.php,
include/functions_api.php: fixed some things, the function
"events_validate_event" when can't update as validate any event
return false, into the file "functions_network_components" added
$config['homedir'] for situations where include in a other path that
index. And show error when make a bad validate event.
MERGED FROM 4.0.2
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6197 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_db.php, operation/agentes/exportdata.php:
cleaned source code style.
* include/functions_api.php: fixed prevent the empty string in the
status into the search events.
MERGED FROM 4.0.2
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6182 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php, include/api.php: fixed when some error
in get_events__user, and added constants flags for debug in the
header of source file.
MERGED FROM 4.0.2
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6170 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Fixed set_create_plugin_module
to look proper data in checking input parameters.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5834 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* extensions/update_manager/main.php, general/shortcut_bar.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.preview.php, include/functions_api.php,
include/functions_html.php, include/htmlawed.php, include/pchart_graph.php,
operation/events/events_list.php, operation/netflow/nf_live_view.php:
cleaned source code style.
* godmode/menu.php, godmode/agentes/manage_config_remote.php: removed the
enterprise feature that have been wrong for years.
* general/header.php: changed to load the jquery-ui and jquery javascript
library to last version.
* extensions/insert_data.php, extensions/snmp_explorer.php,
godmode/agentes/agent_manager.php, include/ajax/agent.php,
include/javascript/pandora.js, operation/agentes/exportdata.php,
operation/events/events.php: changed the unknow plugin autocomplete for
the autocomple from jquery-ui.
* include/functions_ui.php: cleaned source code style and into the function
"ui_process_page_head" added the blacklist hardwrote for to use old jquery.
* include/styles/jquery-ui-1.8.17.custom.css,
include/javascript/jquery-1.7.1.min.js,
include/javascript/jquery.jquery-ui-1.8.17.custom.min.js: added the last
version of Jquery and Jquery-ui.
Merge from the branch "pandora_4.0"
* godmode/reporting/visual_console_builder.constans.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
include/javascript/pandora_visual_console.js: changed the unknow
plugin autocomplete for the autocomple from jquery-ui and added function to
paint a Bubble Chart (http://en.wikipedia.org/wiki/Bubble_chart) with the
name "progress_bubble".
* images/percentile_item.disabled.png, images/percentile_item.png: added
images for button of percentile item (new item in visual map).
* include/styles/pandora.css: added the style for the new button percentile
item.
* include/functions_graph.php, include/graphs/fgraph.php,
include/graphs/functions_gd.php: cleaned source code style, and added the
params to set text and color in the function "progress_bar" and added
function to paint a Bubble Chart (http://en.wikipedia.org/wiki/Bubble_chart)
with the name "progress_bubble".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5693 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* pandora_console/include/functions_ui.php: changed the source code into the
function "ui_get_full_url" for accept false for to return url with the home
url or with any string (as query) return url with the php file.
* pandora_console/include/functions_graph.php,
pandora_console/include/functions_html.php,
pandora_console/include/functions_events.php,
pandora_console/include/functions_reporting.php,
pandora_console/include/functions_api.php,
pandora_console/include/functions.php, pandora_console/index.php,
pandora_console/extensions/system_info.php,
pandora_console/operation/agentes/stat_win.php,
pandora_console/operation/menu.php,
pandora_console/operation/events/events_rss.php,
pandora_console/operation/events/events_marquee.php,
pandora_console/operation/events/events.php: change in more part of source
code to use "ui_get_full_url" instead the hard write method of $_SERVER
vars, now Pandora Console run fine (in all actions I hope) with web servers
in other ports instead the typical 80.
Merged from branch pandora_4.0
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5646 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: fixed into function "get_events__with_user"
when try get list events when empty list of groups for user.
* include/api.php: fixed the auth.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5499 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Merged from 4.0. Add a missing
description of get_alert_template() in its leading comment.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5488 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php: Improved the get all agents
API function to retrieve more data as address, description,
operating system and url address
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5434 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
* include/functions_api.php
include/functions_agents.php
include/functions_alerts.php: New functionality for the Api.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5393 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f