Commit Graph

378 Commits

Author SHA1 Message Date
Fermin 2e1bb2ac9c Merge branch 'develop' into 2290-seguridad-en-la-api
Conflicts:
	pandora_console/include/functions_api.php
2018-06-07 11:38:37 +02:00
fermin831 b3bdd5d492 [API ACL] More get functions (2) 2018-06-06 19:39:57 +02:00
fermin831 7f2d583f63 [API ACL] More get functions 2018-06-06 19:04:06 +02:00
daniel 867e00c50d fixed minor error 2018-06-06 18:00:44 +02:00
daniel ea6f96e96b fixed minor error api 2018-06-06 17:53:52 +02:00
daniel d7da009804 fixed errors in graphs 2018-06-06 17:23:32 +02:00
fermin831 0afd436cea [ACL API] Added ACL to some get api calls and refactorized agent count 2018-06-06 15:04:30 +02:00
daniel badfd83b0d Merge remote-tracking branch 'origin/develop' into 1827-Graficas_TIP_eje_x_no_mantiene_ratio
Conflicts:
	pandora_console/include/functions_graph.php
	pandora_console/include/graphs/fgraph.php
2018-06-06 11:57:02 +02:00
vgilc b620c1e7d9 Merge branch '2016-plugin-monitorizacion-con-docker-swarm' into 'develop'
Minor fix in plugintools api_methods

See merge request artica/pandorafms!1484
2018-06-04 10:19:56 +02:00
vgilc 900f6ba609 Merge branch '2294-Requisitos-API-cluster-2' into 'develop'
Add cluster and API get functions - #2294

See merge request artica/pandorafms!1495
2018-06-04 10:13:28 +02:00
daniel a8b8f309e6 fixed graphs 2018-05-30 17:45:17 +02:00
enriquecd dbafab2ae7 Add cluster and API get functions - #2294 2018-05-23 19:13:47 +02:00
fbsanchez a82299f1cf PluginTools minor changes
API cluster minor changes
2018-05-21 18:08:36 +02:00
fbsanchez 2ab45d28b8 Added api_get_agent_id (API) updated plugintools 2018-05-21 14:42:27 +02:00
fermin831 8a1f5c87ec [Rebranding] Open API 2018-05-10 18:56:59 +02:00
enriquecd d92dc1a2b0 Change API and flags in cluster manager - #2007 2018-04-27 11:06:29 +02:00
enriquecd b4b6852e27 Change id_os number refence and add get_cluster status function in api and CLI - #2007 2018-04-23 13:52:16 +02:00
enriquecd 676835ddc8 Merge branch 'develop' into 2007-Monitorizacion-de-cluster-fase-2-API
Conflicts:
	pandora_console/include/functions_api.php
2018-04-20 10:10:33 +02:00
enriquecd 9bb7ba475e Fix api collection function include - #2110 2018-03-26 18:34:52 +02:00
enriquecd dcb33e08b7 Merge branch 'develop' into 983-API-CLI-posibilidad-de-aplicar-templates-componentes-a-un-agente
Conflicts:
	pandora_server/util/pandora_manage.pl
2018-03-22 11:11:01 +01:00
enriquecd d21ca7eb5f Add API cluster functions - #2007 2018-03-21 18:20:59 +01:00
daniel c8118c2e08 fixed minor error 2018-03-12 19:31:24 +01:00
daniel 1f3b95f6d1 check problems migration 2018-03-08 12:09:03 +01:00
enriquecd 3ee2f8615f API and CLI apply template components - #983 2018-02-26 19:10:53 +01:00
vgilc 61ce7237c3 Merge branch '1688-Error-en-API-al-habilitar-alertas' into 'develop'
Add new function enable alert by alias - #1688

See merge request artica/pandorafms!1177
2018-01-29 13:25:54 +01:00
danielmaya c2a467064e Added string graph in mail 2018-01-12 13:17:57 +01:00
vgilc 6ac8571b2d Merge branch '979-CLI/API-Para-sincronizar-la-metaconsola' into 'develop'
Metaconsole synchronization for api - #979

See merge request artica/pandorafms!1057
2017-12-21 11:00:09 +01:00
enriquecd e4cc09e09c Add new function enable alert by alias - #1688 2017-12-13 13:57:38 +01:00
enriquecd 2f9f2ddf90 Metaconsole synchronization for api - #979 2017-11-13 16:37:08 +01:00
Daniel Maya 5a2a97e94c Fixed function api_set_disable_alert 2017-10-27 12:25:00 +02:00
daniel 8a7b0a0f79 fixed errors in new macro graph treshold 2017-09-08 13:55:03 +02:00
daniel c29d8a4fdb Revert "merge develop"
This reverts commit 8232911713, reversing
changes made to f5da86ac0a.
2017-08-23 09:35:17 +02:00
vgilc 901a163c84 Merge branch '1108-bad-api-and-cli-request-in-meta-with-events-dev' into 'develop'
Fixed meta event table in cli and api functions

See merge request !665
2017-08-18 12:50:19 +02:00
daniel 6e45b3cd9e add threshold graph send for mail 2017-08-02 11:48:37 +02:00
Daniel Maya dd5cb8088c added service functions in the API 2017-08-01 10:39:02 +02:00
vgilc 6dba0a5040 Merge branch 'develop' into '713-Asignar-políticas-a-grupos-dev'
# Conflicts:
#   pandora_console/extras/mr/4.sql
2017-07-18 12:24:49 +02:00
Daniel Maya f0e43e252c New feature: Add groups to policies 2017-07-18 12:06:57 +02:00
Arturo Gonzalez bec023dc4d Fixed meta event table in cli and api functions 2017-07-18 11:36:57 +02:00
daniel 9b1338b4c2 fixed autovalidate event in pandora_revent with extra_id 2017-06-27 10:51:35 +02:00
daniel d3a0c4b52b fixed errors in pandora revent 2017-06-21 14:34:06 +02:00
vgilc c78711ba6f Merge branch '539-encrypt-agent-custom-fields-in-pandora-console-dev' into 'develop'
539 encrypt agent custom fields in pandora console dev

See merge request !520
2017-06-14 11:42:51 +02:00
daniel d85ec51220 fixed errors caase sensitive servername 2017-06-13 12:42:21 +02:00
Arturo Gonzalez 463c393c00 Added changes to encrypt custom values with a new token 2017-05-29 11:48:50 +02:00
daniel e5c0440d0b fixed errors in mail module_graph 2017-03-09 08:58:53 +01:00
Daniel Maya d1302731b6 Added alias when creating and modifying agent 2017-03-07 15:36:04 +01:00
Daniel Maya 4b8ec8e5ae Added alias in api 2017-03-07 10:31:23 +01:00
m-lopez-f 0b943fcf08 Remove debug traces 2017-03-03 13:27:02 +01:00
fermin831 ec515db179 Fixed get module_data to get url_encode_separator 2017-03-01 15:30:40 +01:00
Arturo Gonzalez 938dc40f77 Fixed api get module data. Ticket #385 2017-02-27 14:58:40 +01:00
Arturo Gonzalez fc7e2f69b7 Fixed exception in datetime object. Functions api get_module_data. Ticket #378 2017-02-27 11:05:23 +01:00
Arturo Gonzalez cb7ab827d2 Fixed module type chart selected in conf. Ticket #345 2017-02-21 16:36:46 +01:00
Arturo Gonzalez 3c8bc86ab7 Added cascade protection by module (agent, massive and api). Ticket #187 2017-01-25 13:59:14 +01:00
Arturo Gonzalez 196da4098e Added new options to api module data function. Ticket #4283 2016-12-22 15:58:45 +01:00
Daniel Maya d9b60534b6 added function db_uncompress_module_data 2016-11-30 16:01:22 +01:00
daniel 653da41402 Ticket integria:3621 fixed image in mail #75 2016-09-19 16:43:46 +02:00
Hirofumi Kosaka 0cc2ffa928 Added new API 'delete_group'. 2016-09-02 12:55:16 +09:00
fbsanchez b644f15d00 Ticket Integria: 3951 Changed workaround to generate api module graphs #31
(cherry picked from commit 95b162f63a)
2016-08-25 20:22:11 +02:00
Daniel Maya b63567bf3b Modified error messages and warnings. Ticket #3206. 2016-08-24 15:32:29 +02:00
Hirofumi Kosaka 3a7e5fcf2f Added the handling of agent's address list at new_agent/update_agent API call. 2016-07-21 17:15:22 +09:00
Hirofumi Kosaka 9abcfbf1b3 Fixed that API couldn't create snmp module with module group id > 17. 2016-06-30 17:39:00 +09:00
Ramon Novoa 98420e4c06 Fixed a regexp in functions_api.php. Sometimes img tags are not properly
closed!

(cherry picked from commit c22ea46899)
2016-06-27 13:38:37 +02:00
Daniel Maya 5c713e15f7 New feature domain names. Ticket #3130. 2016-06-21 16:15:57 +02:00
Daniel Maya 0035b74f47 new macro in CLI and API get_module_id. Ticket #3525. 2016-06-17 08:50:30 +02:00
Daniel Maya 0696bccdcd policy_linked in set_update_*_module added. Ticket #3292. 2016-06-15 10:15:14 +02:00
Hirofumi Kosaka 1ca151fa03 Fixed get_plugins API that had returned values in wrong order if updated from ver 4.x. 2016-02-18 16:58:01 +09:00
m-lopez-f 2ff36cc245 Add lost variable in funtion 2016-02-09 10:22:40 +01:00
m-lopez-f 3315b732f8 Fixed problems with create syntethic module with API. 2016-02-09 10:20:42 +01:00
mdtrooper c817d96937 Cleaned source code. 2016-01-27 15:58:54 +01:00
mdtrooper fe8300655d Cleaned source code. 2016-01-27 13:08:11 +01:00
fermin831 7eab842adc Blocks nonexistent id_agent when updating modules with api #3191 2016-01-13 18:22:30 +01:00
mdtrooper 1e9f086cae Fixes for the management groups in the API. TICKET: #3119
(cherry picked from commit f9ee9a7032)
2016-01-05 12:17:46 +01:00
m-lopez-f fea29a84a0 Add new function of locate agent in servers. Tiquet: #3119
(cherry picked from commit 4c6451372b)
2015-12-30 13:43:15 +01:00
m-lopez-f e91dc72885 add new function to use in metaconsole
(cherry picked from commit a93ca7ec0e)
2015-12-30 13:17:52 +01:00
m-lopez-f d916ed55ea Add CLI/API new function of create modules synthetic. Tiquet: #3034
(cherry picked from commit c0563a54ed)
2015-12-21 15:42:45 +01:00
Hirofumi Kosaka 2c1fd62374 had planned_downtimes_created API accept date with time for date_from/to params. 2015-12-16 19:37:32 +09:00
m-lopez-f 89fcaec748 Fixed functions of cli/pai of planned downtime. Tiquet: #3020 2015-12-03 11:54:08 +01:00
m-lopez-f 4ef2b08f09 Change form of send dates in planned downtimes 2015-12-02 17:08:42 +01:00
m-lopez-f 4fd6a2a47b Add new functions in API calls about planned downtimes. Tiquet: #3020 2015-12-01 17:15:29 +01:00
Hirofumi Kosaka 6bc0928c32 Added {critical,warning}_inverse to return values of get_tree_agents and get_module_properties APIs. 2015-12-01 16:06:31 +09:00
Hirofumi Kosaka 157abf68d2 Added new params {critical,warning}_inverse to set {create,update}_{network,plugin,data}_module APIs. 2015-12-01 15:52:09 +09:00
Hirofumi Kosaka 587f4c98c9 Fixed to allow empty descripcion/module_macros at create/update plugin/data/network modules APIs. 2015-12-01 15:25:43 +09:00
m-lopez-f c4af25cf34 Add to API/CLI new function: Create planned downtimes and items to this planned. Fixed error in creation items. Tiquet: #2972 2015-11-23 09:21:35 +01:00
Arturo Gonzalez Diaz add2e74e2b Added new function in functions_api to set cache agent value. 2015-08-28 15:57:53 +02:00
mdtrooper 3498e9e1e7 Killing some unicorns and magic numbers. 2015-06-29 16:49:48 +02:00
Alejandro Gallardo Escobar 3b037caf32 Merge remote-tracking branch 'origin/develop' into features/oracle 2015-06-18 20:02:01 +02:00
mdtrooper 7574f6ed09 Clean the source code style. 2015-06-08 13:13:09 +02:00
mdtrooper 89cac169f4 Clean the source code style. 2015-06-08 11:05:19 +02:00
Alejandro Gallardo Escobar c95f70dde7 Error fixes related with the improved oracle compatibility 2015-05-04 18:27:23 +02:00
mdtrooper 2798b2230a Fixed. Added lost result message in the api call create tag 2015-03-10 12:35:31 +01:00
Alejandro Gallardo Escobar e32e563447 Minor changes on the module_graph function 2015-02-06 14:09:57 +01:00
Alejandro Gallardo Escobar d3151557f7 Now the api can return a string with a module graph encoded in base64 2015-02-06 13:48:59 +01:00
Hirofumi Kosaka 1fe60927b0 Added new APIs: get_module_properties and get_module_properties_by_name.
These functions share the field name tables with get_tree_agents.
2015-02-05 14:44:23 +09:00
m-lopez-f 0956132e39 changed the way of returning the data in the all_agents api function. 2015-01-19 13:24:51 +01:00
mdtrooper 95873d9356 Added api for metaconsole. Ticket: #1474 2014-12-15 19:39:05 +01:00
mdtrooper d78461a92c Working in the improvements. Incident#1574 2014-12-12 15:01:50 +01:00
mdtrooper 8633186b0e Working in the improvements. Incident#1574 2014-12-12 15:00:21 +01:00
mdtrooper 303b4f148f Added feature to set bbcode links in agents description and custom fields. Ticket #1404 2014-12-02 16:38:07 +01:00
hkosaka 4f3a9c4187 Added new API (delete_module_template_by_names). 2014-11-05 17:35:08 +09:00
hkosaka 89a5f3dee1 Updated get tree_agents API to get group_description, group_contact and group_other. 2014-10-14 11:42:39 +09:00
hkosaka 723e68a9ed Updated that add_event API can support newline literally. 2014-10-07 15:23:49 +09:00
hkosaka 88e2ca3a46 Changed update_group's parameters in the same order of 'create_group'. 2014-10-03 15:56:23 +09:00
hkosaka a17c13981d Added new API 'update_group'. 2014-10-03 14:17:37 +09:00
Ramon Novoa 36c0f3a7b7 Added a function to test the connection to the event replication DB. 2014-09-30 16:15:33 +02:00
Vanessa Gil b02e994701 Removed wildcards '%' from querys where its filtered by tag. Ticket #1363. 2014-09-30 15:11:20 +02:00
jsatoh 9fcc2c76a5 2014-08-21 Junichi Satoh <junichi@rworks.jp>
* include/functions_api.php: Added a function to add an event comment.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10439 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-08-21 01:04:00 +00:00
mdtrooper a6197fccb2 2014-07-31 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_networkmap.php, include/functions_graph.php,
	include/db/postgresql.php, include/db/oracle.php,
	include/functions_api.php, extensions/agents_alerts.php,
	operation/search_main.php, operation/search_agents.getdata.php,
	operation/agentes/status_monitor.php,
	operation/agentes/networkmap.topology.php,
	operation/agentes/ver_agente.php,
	operation/search_modules.getdata.php, operation/search_results.php,
	operation/events/events_list.php,
	godmode/alerts/alert_list.builder.php,
	godmode/alerts/configure_alert_template.php,
	godmode/modules/manage_network_components_form.php,
	godmode/reporting/reporting_builder.php,
	godmode/reporting/map_builder.php: tiny fixes for the improve the
	support of postgreSQL databases.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10368 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-07-31 14:27:43 +00:00
mdtrooper 091ed258dd 2014-07-10 Miguel de Dios <miguel.dedios@artica.es>
* 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
2014-07-10 09:32:14 +00:00
mdtrooper 700f0a8055 2014-07-10 Miguel de Dios <miguel.dedios@artica.es>
* 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
2014-07-10 09:10:30 +00:00
hkosaka 22521eec3d 2014-07-08 Hirofumi Kosaka <kosaka@rworks.jp>
* include/functions_api.php: Fixed that 'set enable_module'
	had not worked.

	MERGED FROM BRANCH 5.0



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10323 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-07-08 03:50:42 +00:00
jsatoh 34d4abede6 2014-06-24 Junichi Satoh <junichi@rworks.jp>
* 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
2014-06-24 02:35:46 +00:00
jsatoh 3690344dec 2014-06-24 Junichi Satoh <junichi@rworks.jp>
* 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
2014-06-24 01:54:23 +00:00
jsatoh bd500a0da9 2014-06-22 Junichi Satoh <junichi@rworks.jp>
* 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
2014-06-22 03:46:27 +00:00
jsatoh 95bb70615d 2014-06-21 Junichi Satoh <junichi@rworks.jp>
* 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
2014-06-21 14:37:04 +00:00
zarzuelo b8afeec545 2014-06-13 Sergio Martin <sergio.martin@artica.es>
* include/functions_api.php: Add doc info to pagerduty
	webhook option



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10183 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-13 08:57:59 +00:00
alexhigh f734ea00f6 2014-06-09 Alejandro Gallardo <alejandro.gallardo@artica.es>
* 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
2014-06-09 18:23:36 +00:00
alexhigh 90a846e2cc 2014-05-20 Alejandro Gallardo <alejandro.gallardo@artica.es>
* 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
2014-05-20 14:44:07 +00:00
jsatoh bd7a3c7e60 2014-04-29 Junichi Satoh <junichi@rworks.jp>
* include/functions_api.php: Added new API functions to manage
	special days.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9830 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-04-29 02:17:58 +00:00
zarzuelo 33ba6ee953 2014-04-02 Sergio Martin <sergio.martin@artica.es>
* 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
2014-04-02 16:23:38 +00:00
mdtrooper 1ab0555617 2014-03-04 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: fixed the function "get_module_name".
	Thanks Cucumber.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9501 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-03-04 16:51:30 +00:00
mdtrooper 6d579568a9 2014-03-04 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: fixed the function "api_get_policies".
	Thanks Cucumber.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9495 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-03-04 14:39:19 +00:00
mdtrooper 66c459e425 2014-03-04 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: fixed the function
	"api_get_tactical_view". Thanks Cucumber.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9492 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-03-04 10:53:09 +00:00
mdtrooper 468d49df9e 2014-03-04 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: fixed the function "api_get_gis_agent".
	Thanks Cucumber.
	
	* include/functions_io.php: cleaned source code style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9491 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-03-04 09:57:31 +00:00
mdtrooper 6f266063ca 2014-03-03 Miguel de Dios <miguel.dedios@artica.es>
* 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
2014-03-03 17:06:31 +00:00
hkosaka 2c47ecec58 2013-12-27 Hirofumi Kosaka <kosaka@rworks.jp>
* 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
2013-12-27 09:44:57 +00:00
hkosaka 71c7271707 2013-12-27 Hirofumi Kosaka <kosaka@rworks.jp>
* 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
2013-12-27 07:22:57 +00:00
mdtrooper e7f7bc5746 2013-12-05 Miguel de Dios <miguel.dedios@artica.es>
* 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
2013-12-05 15:10:57 +00:00
mdtrooper f30a3708dd 2013-12-05 Miguel de Dios <miguel.dedios@artica.es>
* 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
2013-12-05 14:00:51 +00:00
zarzuelo 6dfc476f8a 2013-11-26 Sergio Martin <sergio.martin@artica.es>
* 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
2013-11-26 13:08:27 +00:00
zarzuelo 5aaed435b8 2013-11-07 Sergio Martin <sergio.martin@artica.es>
* 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
2013-11-07 16:37:43 +00:00
mdtrooper 53e2b98415 2013-11-07 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: fixed the validate event with the
	new validation form.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9032 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-11-07 15:47:17 +00:00
zarzuelo b2652d8750 2013-11-06 Sergio Martin <sergio.martin@artica.es>
* include/functions_api.php: Fix create event typo 
	errors in api. Fix sent by tomas in incident #347



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9015 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-11-06 12:17:09 +00:00
hkosaka 8af1214b13 2013-10-31 Hirofumi Kosaka <kosaka@rworks.jp>
* include/functions_api.php: Added some parameters to
	'create_group' API function.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8987 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-10-31 11:50:06 +00:00
mdtrooper 7b5b0e0635 2013-10-30 Miguel de Dios <miguel.dedios@artica.es>
* 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
2013-10-30 15:00:46 +00:00
mdtrooper 2125245841 2013-10-23 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: fixed the get events filtered by the
	group in the parameters.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8952 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-10-23 12:30:11 +00:00
mdtrooper 3462a1717e 2013-10-21 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: applied the path from
	"http://sourceforge.net/p/pandora/bugs/2395/", thanks Jorge Loza.
	
	MERGED FROM THE BRANCH PANDORA_4.0




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8939 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-10-21 07:37:03 +00:00
mdtrooper 09e5a830aa 2013-10-11 Miguel de Dios <miguel.dedios@artica.es>
* 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
2013-10-11 11:33:07 +00:00
Ramon Novoa ebfb062743 2013-09-09 Ramon Novoa <rnovoa@artica.es>
* extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
	  extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
	  extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
	  include/ajax/events.php,
	  include/functions_api.php,
	  include/functions_events.php,
	  include/javascript/pandora_events.js,
	  pandoradb.sql,
	  pandoradb.postgreSQL.sql,
	  pandoradb.oracle.sql: Added support for event custom data (via CLI
	  and API).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8754 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-09 16:21:45 +00:00
mdtrooper c77a285a97 2013-09-03 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: fixed typing bugs...yes I wrote a lot
	of them, sorry.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8733 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-03 10:37:50 +00:00
mdtrooper 967e978fea 2013-08-29 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: added supoport for disabled unknown
	events modules, components and policies.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8711 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-29 07:48:10 +00:00
mdtrooper 3d6d479574 2013-08-23 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/modificar_agente.php,
	include/functions_snmp_browser.php, include/functions_api.php: fixed
	PHP warnings and PHP notices.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8690 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-23 06:24:42 +00:00
mdtrooper 04afb4615d 2013-08-20 Miguel de Dios <miguel.dedios@artica.es>
* godmode/servers/servers.build_table.php, include/functions_db.php,
	include/functions_servers.php, index.php: improved the source code
	style.
	
	* include/functions_api.php: added the call to update the agent.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8682 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-21 12:37:37 +00:00
mdtrooper 00c554f0b4 2013-08-20 Miguel de Dios <miguel.dedios@artica.es>
* 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
2013-08-20 13:13:52 +00:00
hkosaka 7e461eb008 2013-08-19 Hirofumi Kosaka <kosaka@rworks.jp>
* include/functions_api.php: Small Fix. Corrected error message.

	MERGED FROM branch4.x



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8678 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-19 08:00:31 +00:00
hkosaka c09b4e6591 2013-08-01 Hirofumi Kosaka <kosaka@rworks.jp>
* include/functions_api.php: Added new API function
	'api_set_enable_disable_agent'.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8615 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-01 12:34:00 +00:00
mdtrooper c7e78e0190 2013-07-30 Miguel de Dios <miguel.dedios@artica.es>
* mobile/operation/networkmap.php, godmode/users/user_list.php,
	include/javascript/pandora.js,
	include/javascript/openlayers.pandora.js,
	include/functions_snmp_browser.php, include/api.php,
	include/functions_api.php, operation/snmpconsole/snmp_browser.php,
	operation/agentes/networkmap.dinamic.php: improved the source code
	style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8596 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-30 10:25:49 +00:00
mdtrooper d343cc4c38 2013-07-29 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: a lot of tiny fixes.
	
	* extensions/api_checker.php: some fixes.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8591 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-07-29 17:13:52 +00:00
zarzuelo a1655972a6 2013-07-02 Sergio Martin <sergio.martin@artica.es>
* 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
2013-07-02 15:38:49 +00:00
mdtrooper 85413ab82b 2013-04-23 Miguel de Dios <miguel.dedios@artica.es>
* 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
2013-04-23 11:02:18 +00:00
darode 1706c1f9fd 2013-04-02 Dario Rodriguez <dario@artica.es>
* 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
2013-04-02 16:49:43 +00:00
hkosaka 86efc9c40e 2013-03-15 Hirofumi Kosaka <kosaka@rworks.jp>
* 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
2013-03-15 06:30:26 +00:00