65 Commits

Author SHA1 Message Date
Hans Erasmus
65b40bc870 docs: Fixed a few typo's (#8794)
Nothing major, just spotted it as I went through the docs.

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
2018-05-31 16:55:20 +01:00
Neil Lathwood
08022aae7a api: Map LibreNMS OS' to known Oxidized models (#8758) 2018-05-24 22:08:44 -05:00
Paul Heinrichs
2d7423cdaa API: System endpoint, more health graphs (#8730)
* API: System endpoint, more health graphs

* Add new line api_functions

* Get count of relationships

Using eloquent

* Add new lines in Models
2018-05-18 23:36:06 -05:00
Paul Heinrichs
ff0063b515 api: Add option to output graphs as base64 (#8535)
* Allow 'option' param in graph endpoint

* Update lint and update docs

* Uncomment api response

* Add imagedestroy on 'tobias_trim' section

* Add base64 to port endpoints also
2018-04-11 08:02:04 -05:00
Nils Büchner
59f99f1962 api: Added routes to delete,add/edit traffic bills (#8272)
* add API calls to delete,add/edit traffic bills

* scrutinizer fixes

* app needed

* explicitly use === null

* requested changes
2018-02-27 19:51:29 +00:00
Richard Lawley
10829893ec api: Added Billing Graphs & Data (#8245)
* Move Billing/Bandwidth Graphs to common format, extract data generation to central function

* Add API functions to access billing graphs and graph data

* Scrutinizer fixes

* Fix transfer graphs with from/to

* Scrutinizer Fix

* Fix docs, transfer page and missing from API param

* Document and fix reducefactor, Add Graph Stats to Graph Data

* Standardise times in graphdata

* Fixed renamed function for History GraphData
2018-02-20 14:57:56 +00:00
Richard Lawley
2018c9f804 api: Added History to Billing API Functions (#8209)
* Add Previous Period options to Bill API functions

* Add Bill History API Functions
2018-02-09 21:14:55 +00:00
iTeV
54dac46f6c docs: Changed err-msg to message for API docs (#8182) 2018-02-01 19:52:38 +00:00
Rémy Jacquin
e12e6720f8 api: Added add_service_for_host endpoint to API (#8113)
* Add add_service_for_host endpoint to API

Signed-off-by: Rémy Jacquin <remy@remyj.fr>

* Change permissions to allow users to modify device

Signed-off-by: Rémy Jacquin <remy@remyj.fr>
2018-01-21 19:56:57 +00:00
Misha Komarovskiy
06c46765f2 api: Added API calls for routing and resources management (#8017)
* api: Added API call for VRF listing

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* api: Added API call to retrive VRF by ID

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* api: Change list_vrf permissions

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* api: Added new api calls for routing and resources mgmt

* This commit includes list_cbgp, list_vlans,
list_ip_addresses, list_ip_networks and
get_network_ip_addresses calls

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* fix: Correct indentation issue in get_ip_addresses

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* api: Fix per device permissions and messages

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* Fix identation issues

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* api: Remove excessive result counters

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* api: Add list_locations api call

* Get devices by location not very comfortable
without list all locations api call

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* Spelling fix

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2018-01-18 15:43:15 +00:00
Misha Komarovskiy
6009d209cf docs: Doc api fixes (#7950)
* doc: fix get_port_ip_info name

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>

* doc: Update API Routing.md

* Add list_bgp output example
* Fix typo in list_ospf output example

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2017-12-23 21:55:41 +00:00
zombah
e57c311767 doc: Add list_ospf for API documentation (#7944)
Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2017-12-22 23:37:33 +00:00
Thom Seddon
d6d4a3a69a api: Added API method to rename devices (#7895) 2017-12-19 09:32:31 +00:00
Neil Lathwood
daa0773f48 api: Added support for wireless sensors (#7846)
* api: Added support for wireless sensors

* Added docs for new api calls
2017-12-06 22:27:30 +00:00
Lee Spottiswood
e3082873f6 api: Added retrieve BGP sessions by ID (#7825)
* add support for retrieving BGP sessions via id

* fix syntax, use router params

* use count properly

* add get_bgp docs

* streamlined get_bgp sql query
2017-11-30 22:51:20 +00:00
Tony Murray
3bd9920e38 docs: Continue to reorganize docs (#7762)
* docs: Continue to reorganize things
Make landing pages for /Installation, /API, etc.
Split API out into multiple docs
Properly use multi-level navigation
Add lower nav buttons (tops are bug so disable for now)
Add logo for fanciness
Refine index page a bit

* Improve API TOC layout

* Couple of fixes.

* Fix API/API-Docs, assumed it was at the right url.
2017-11-19 01:19:18 +00:00
Tony Murray
59625dc836 Remove the duplicated API TOC (#7759) 2017-11-17 15:04:49 +00:00
Neil Lathwood
c6a0c9d124 api: Added support for Oxidized asking for a single host (#7705) 2017-11-16 21:21:52 +00:00
Richard Lawley
925a713a1c docs: Moved ARP function docs from Bills section (#7701) 2017-11-10 12:42:51 +00:00
Zmegolaz
f8d7ccfe0d feature: Support for up/down detection of ping only devices.
* Added support for ping only devices.

* Renamed sql-schema/206 to 207.

* Discovery tried to detect the OS when it shouldn't.

* Updated db_schema.yaml

* Added ping icon.

* Don't show unused graphs and tabs when SNMP is disabled.

* Allow the user to specify OS of ping only devices.

* Removing custom OS now changes it to 'ping'.

* Removed unnecessary use of mres().

* UI select box for SNMP enable/disable.

* Hide device_ping_perf if ping is disable on device.

* Fixed SNMP settings update status messages.

* Added functionality to add ping only devices via the web ui.

* Added ping only option to addhost.php

* Added ping only support to snmp-scan.py

* Moved sql 208 to 211

* Fixed scrutinizer issues.

* Fixed broken ossearch.

* Added ping only support to the API.

* Updated API doc.

* Added (optional) to OS and hardware description. Hid Port Settings, Applications, Modules, Storage, Processors, Memory and Components from the edit menu

* Style fix.

* Updated ping icon.

* clean() instead of mres(). More escaping. Better help in snmp-scan.py and addhost.php

* Fixed scrutinizer issue.

* Always try SNMP in snmp-scan.py, new option for it in addhost.php. Slice instead of chunk in ajax_ossuggest.php. Other minor style changes.

* Updated sql modifications to insert the new column in the same place as in db_schema.yaml.
2017-10-27 22:59:25 -05:00
Bennett Blodinger
f71c708183 docs: Updated API docs formatting
* Ignore docs/

* Fix indenentation

YAML's pretty strict

* Remove static anchor names

Markdown does this automatically for us

* Tabelize entities

* Remove tildes

They don't do anything

* Renamed to index.md

* Remove backticks for headings

* Switch output format

text -> json

* renamed to index.md

* Removed `top` links

Cause TOC generation problems.  A theme-wide `top` button would be more
appropriate

* Use [TOC]

Automatically generates everything

* Wrapped routes in backticks

* Moved logs around a bit

* Revert already pulled commits
2017-08-21 13:24:22 +01:00
Neil Lathwood
fc2041caaf api: Added api routes for eventlog, syslog, alertlog, authlog (#7071) 2017-07-27 19:56:38 +01:00
Tony Murray
52fabcb770 api: Add search by os to list_devices (#6861) 2017-06-19 19:49:43 +02:00
Tony Murray
4ab358501d api: API allow cidr network searches of the ARP table (#6378)
* api: API allow cidr network searches of the ARP table

* Allow non-encoded / in request
I also noticed that all is allowed to be called without device, which the sql query does not support.
2017-04-07 21:05:46 +01:00
Neil Lathwood
014682b60b api: Added new route for multiport bit graphs + asn list_bgp filter (#6129)
* api: Added new route for multiport bit graphs + asn list_bgp filter

* fixed scrut errors
2017-03-12 21:17:09 -05:00
Mark Hughes
dc41c0eae1 api: Expose ports in API requests for bills (#6069)
* Expose ports in API requests for bills
2017-03-03 20:40:15 +00:00
Neil Lathwood
bbc7d71cf9 some small updates (#6022) 2017-02-27 14:39:02 +00:00
gilrim
1c9cbc42f5 api: Add ability to return all device info for get_devices_by_group() (#5971)
* Changed GetDevicesFromGroup to output all columns if  is defined in url
2017-02-22 09:37:40 +00:00
gilrim
8b401fd05b api: Added the ability to list devices by location in the api (#5693)
* Adding location based filter for api-device calls

* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.

* configured linting etc, now pr should pass

* rebase and add entry to docs
2017-02-08 21:57:15 +00:00
William George
7240741b69 web: Added IP and port calls to API 2017-02-07 09:46:09 +00:00
Neil Lathwood
6df39b9bbd api: Added support for retrieving health information and graphs #5399 (#5446) 2017-01-19 10:09:20 +00:00
Neil Lathwood
32668026a7 api: Added support for updating multiple device table fields in one call #4954 (#5033) 2016-11-26 20:55:24 +00:00
Neil Lathwood
37126ba09f Updated api docs formatting 2016-09-22 22:36:55 +01:00
nerdalertdk
8924e954c4 Missing variable in services api call
fix: Missing variable in services api call
2016-08-27 14:46:54 +01:00
nerdalertdk
8973a78664 Update API-Docs.md (#4218) 2016-08-26 13:40:05 +01:00
nerdalertdk
cd7cf30c00 services docs 2016-08-26 12:01:33 +02:00
Neil Lathwood
383c50b4f4 Updated docs to have source to use for edit github (#4185)
* Added source link for edit on github

* Updated formatting issues

* Updated formatting issues

* Updated formatting issues
2016-08-24 08:12:20 +01:00
Tony Murray
1482e6e0a9 Update docs 2016-08-07 20:28:53 -05:00
laf
0b8f06efa3 Added support for searching for arp entry 2016-06-27 14:48:07 +01:00
laf
78204f3971 Added api call for ipsec tunnels 2016-04-22 13:41:38 +00:00
jnewell
0e6093abfc Added device/port_stack API endpoint. Updated documentation 2016-04-05 14:25:45 -07:00
Aaron Daniels
9706a85454 - Added add, edit and delete API calls for components.
- Added documentation for the new calls.
2016-03-30 17:16:14 +10:00
Jameson Finney
437d1fc40c Removed extra spaces from ends of lines. 2016-01-30 21:06:58 -05:00
Aaron Daniels
6492b887e9 Merge branch 'master' of https://github.com/adaniels21487/librenms into issue-1650 2016-01-14 06:10:31 +10:00
laf
a35f6d8c7a Added group support for Oxidized 2016-01-10 19:45:54 +00:00
Rosiak
c3ce59124e Fix some spellings. 2016-01-07 23:02:18 +01:00
Aaron Daniels
6286d7cb6a Merge branch 'master' of https://github.com/adaniels21487/librenms into issue-1650
Conflicts:
	html/api_v0.php
	html/includes/api_functions.inc.php
2015-12-22 11:16:54 +10:00
Daniel Preussker
c276cc5ec4 Merge pull request #2611 from laf/issue-2451
Added new API calls to support device groups
2015-12-20 17:35:27 +00:00
laf
d8095707b2 Added flag to get_graph_by_port_hostname() API call to switch port look up to use ifDescr 2015-12-19 19:10:18 +00:00
Aaron Daniels
c63b7119cb Device Components.
The purpose of this feature is to provide a framework for discovery modules to store
information in the database, without needing to add new tables for each feature.

This Feature provides:
- A database structure to store data.
- An API to store and retrieve data from the database.
- Integration to the LibreNMS APIv0.
- Ability to disable/ignore components.
- Default alerting rules.

- The API returns $COMPONENT[$device_id][$component_id] to allow pulling of data for multiple devices.
  The intent is to be able to create 'Applications' the consolidate data from applications covering multiple devices.
- Added some developer documentation
2015-12-14 07:52:03 +10:00