Commit Graph

5457 Commits

Author SHA1 Message Date
Tony Murray
d7bcd92612 Realtime graph handle snmp server caching (#10113)
* Realtime graph handle server caching
Handle server caching more gracefully than setting the throughput to 0 Mbps

* smoother estimated interval

* don't change the graphing timescale
2019-05-01 23:02:14 +01:00
Tony Murray
f2b6aaeb11
Fix transition os (#10169) 2019-04-30 09:18:18 -05:00
JoshWeepie
4e62838cce Add support for Transition NIDs (#9729)
* Add support for Transition NIDs

* Upload Transition logo

* Create transition

* Add files via upload

* Add files via upload

* Delete transition

* Delete MEF-UNI-MIB.smi

* Delete PTP-MIB.smi

* Delete BRIDGE-MIB.smi

* Delete ENTITY-STATE-TC-MIB.smi

removed standard mibs

* remove extensions from mibs

* Create TN-AC-MIB

* Removed extensions from Transition MIBs

* Delete TN-AC-MIB

* Create transition.snmprec

Added test data

* Renamed some mibs + updated tests

* Update transition.json
2019-04-29 22:14:46 -05:00
Spencer Butler
9cfa2aaf40 Added support for Zmtel greenpacket devices (os: zmtel) (#10067)
* Added support for Zmtel greenpacket devices (os: zmtel)

* added more sensors

* move count sensors to features

* rename MIB and move modulation scheme to state sensor

* added test data

* graph pCID
2019-04-29 09:53:35 -05:00
PipoCanaja
a3263b802b Added packetlight support (#10131)
* MIBS

* logos
sensors
user_func
cleaning

* tests

* Switch to Packetlight class, and use is_callable instead of function_exists

* tests

* CodeClimate

* Rename functions
2019-04-29 09:46:53 -05:00
Tony Murray
39ff4c7aaf
Fix install.php can't find config.php (#10129) 2019-04-20 12:32:17 -05:00
Tony Murray
36431dd296
Security fix: unauthorized access (#10091)
* Security fix: unauthorized access
Affects nginx users:
Moved php files outside of public html directory (Apache was protected by .htaccess)

Affects all users:
Some files did not check for authentication and could disclose some info.
Better checks before including files from user input

* git mv html/includes/ includes/html
git mv html/pages/ includes/html/
2019-04-11 23:26:42 -05:00
Slushnas
b81af32ed2 Fixed display minimum values in uptime graphs. (#10078)
Fixes an issue with several uptime graphs using the average value when it should be using the minimum value.

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2019-04-11 23:05:18 +01:00
Tony Murray
4718cd594c
Fix unescaped variables in ajax_search.php (#10088) 2019-04-11 09:39:25 -05:00
Tony Murray
8926d7cfe6 Fixed arp api network query (#10085)
It was using a non-existent function

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`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2019-04-10 22:33:25 +01:00
Neil Lathwood
54c7ed3d0d
Fixed a duplicate route name in the api (#10082) 2019-04-10 10:36:48 +01:00
smiles1969
9c3f987d7c Cleanup of typo in oxidized view (#10079)
* HTML Cleanup

Extra quote and semicolon

* Revert "HTML Cleanup"

This reverts commit 6a956916fc.

* HTML Cleanup

Extra quote and semicolon
2019-04-09 18:37:46 +02:00
Tim de Boer
91ca7b37fe Refactored Nvidia Application (#10037)
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.

- [ ] 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`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2019-04-09 14:47:43 +01:00
Misha Komarovskiy
7b4c63a2f4 Added API call to list all ports FDB (#10020)
Add FDB API calls to resolve this [forum request](https://community.librenms.org/t/fdb-table-search-via-api-mac-ip-switch-port/1772/4) 

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`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
2019-04-09 13:51:01 +01:00
PipoCanaja
e285a9268e Improve Huawei BGP polling + BGP webui & graphs patches (#10010)
* basic adress family for VRP

* Improve BGP prefixes display

* Improve BGP prefixes display

* Improve BGP prefixes display

* climate
2019-04-09 13:44:48 +01:00
tomarch
e7ba1b195f Added initial support for teltonika (#10059)
* initial support for teltonika
* fix sensors
* fix mibs name
* add rutos.json
* Update rutos.json
2019-04-08 08:54:17 +02:00
Neil Lathwood
edf81cca7e Update api_functions.inc.php (#10068) 2019-04-07 09:00:20 -05:00
Tony Murray
68916a1930
Fix notification creation (#10058)
* Fix notification creation
also refactor so it is a bit more logical

* Don't allow empty title and body

* Updated to use error message in toastr
2019-04-03 20:52:08 -05:00
djamp42
c1fab98cc3 Added device WISI Tangram (#10039)
* Added device WISI Tangram
2019-04-03 06:43:39 +02:00
Neszt Tibor
f30d5afa35 Added PPPoE Sessions Graph for Mikrotik (#10056) 2019-04-02 22:35:37 +02:00
smiles1969
c4fa3278b5 Add SysName to Oxidized view (#10012)
* Add sysName to Oxidized view

* Add sysName to Oxidized view

* Add force_ip_to_sysname check

* Add force_ip_to_sysname check

* Add force_ip_to_sysname check Config::get method

* Add force_ip_to_sysname check Config::get method

* Add force_ip_to_sysname check loose comparison

* Add force_ip_to_sysname check loose comparison

* Fix Spacing - Travis check

* Fix Spacing - Travis check

* Travis Check

* Travis Check

* Travis check changes

* Whitespace Travis Check

* Replace ifcheck with ternary operator

Always send column id tag, but hide SysName conditionally

* Move php tags

* Remove ifcheck
2019-04-01 22:19:31 -05:00
priiduonu
5fc2f18af1 Added support for IONODES video encoders (#10031)
* Added support for IONODES video encoders

* fixed expected number instead of string value error when running tests

* removed extra colon

* added mibs_dir for ionodes

* removed IF-MIB from ionodes.yaml
2019-04-01 09:25:32 +02:00
PipoCanaja
7fd7ba5a84 Added support for Orvaldi UPS (#10021)
* ovaldi UPS support

* ovaldi UPS tests

* serial + model + version inc tests

* update of the code using details from requester

* update of the code using details from requester

* update of the tests

* forgot discovery yaml ...
2019-03-27 07:21:35 -05:00
Spencer Butler
2ad13f1836 Added support for Ruijie Networks (#10026)
* Added support for Ruijie Networks

* Extend discovery

Let's extend to all the products from this brand, at least until we have more detailed discovery
2019-03-26 20:38:28 +01:00
JoshWeepie
9037c0736d Fix missing pipe in ports page menu (#10025)
The ports page has a missing pipe in the menu between 'Update URL' and 'Search'.
2019-03-25 22:34:24 +01:00
TheGreatDoc
5535768d25 New Device: ATS - Automatic Transfer Switch (#9889)
* New Device: ATS - Automatic Transfer Switch

* Small fixes

* Fixed test data

* More fixes, again

* Moved temp to php to retrieve limits from device

* Fixed perms again...

* Final test file. Or I hope so...
2019-03-24 18:48:55 -05:00
PipoCanaja
546849f326 Added Panduit Eagle-I (was Sinetica) (#10014)
* Panduit eagle-I

* tests

* mibfile

* over update

* tests redone with dynamic sensors
2019-03-24 18:45:50 -05:00
Yann Gauteron
76597ea94a Improving Health limits display (#10007) 2019-03-21 08:52:01 +01:00
Yann Gauteron
96797aa813 Beautify port health (#9981)
* Removal of the unused  variable
* Replace double quotes by single quotes when possible
* Adding spaces between operands of the concatenation operator
* Rewrite of code echoed to the browser
* Reuse the logic of the Device/Health page for displaying current and limit values
* New helper function to determine the unit for the different sensor classes
* Fixing wrong value for current unit
2019-03-20 16:17:49 +01:00
Misha Komarovskiy
55f4870b91 Added resources/sensors api call to list all sensors (#9837)
* Added resources/sensors api call to list all sensors

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

* Use global read permission check

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

* fix typo

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

* fix another typo

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

* Use laravel style for call

Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2019-03-19 08:22:39 -05:00
Tony Murray
00a1185980
New permissions code (#9986)
* Initial permissions

* initial tests

* updates

* finish tests, other tweaks

* update legacy permissions checks
remove global :D

* missed facade extend

* Update eloquent permissions to use the new facade and drop joins

* method descriptions

* more docs

* fix style
2019-03-19 08:14:01 -05:00
Tony Murray
edd18b4f9f
Fix world map when location has been deleted that a device still references (#9997) 2019-03-19 06:52:20 -05:00
Tony Murray
bc24d39bf1
Fix device list down devices that have never been polled (#9994)
* Fix device list down devices that have never been polled

* Suggestion with 'Never' in case last_polled empty and down

* Improve handling of all cases

* fix doc comment
2019-03-19 06:52:06 -05:00
Ryan Medlyn
b237e42615 Add location to alert hostname tooltip (#9991) 2019-03-19 11:07:05 +01:00
PipoCanaja
0e63e92edb blue theme (#9970) 2019-03-18 21:30:02 -05:00
PipoCanaja
16f7e6c697 Riello UPS os definition with RFC 1628 support (#9962)
* Riello RFC 1628

* tests + logo

* private mibs

* private mibs
2019-03-17 21:54:19 -05:00
PipoCanaja
a2d378e0be Display Up/Down time in Device List (#9951)
* First attempt of Up/Down time

* First attempt of Up/Down time

* Moved to Time::formatInterval()

* cleaning

* last polled in casts

* Cleaning the variants of formatUptime()

* Cleaning in ./html/includes/dev-overview-data.inc.php

* Cleaning in ./html/includes/dev-overview-data.inc.php

* Cleaning in ./html/includes/dev-overview-data.inc.php

* updated includes/polling/core.inc.php

* updated includes/alerts.inc.php

* clean accessors
2019-03-17 21:09:58 -05:00
Yann Gauteron
af2b4055d3 Fix inconsistent <h3> closed by </div> (#9982) 2019-03-17 08:27:32 -05:00
PipoCanaja
46839e09e7 Do not use $sensor[sensor_limit] if not available 2019-03-16 18:06:09 +01:00
Spencer Butler
907579dbef added new OS - sensatronics-em1 (#9960)
* added new OS - sensatronics-em1

* #9960 - added logo, icon, and update skip_values

* #9960 - fixed over: value

* #9960 - updated icon, logo, and updated descr: from static to table names
2019-03-15 13:18:52 -05:00
Tony Murray
2fd7c4fab4
fix an issue with web installer looking for the mysqli extension when we only use pdo_mysql (#9958) 2019-03-14 13:10:45 -05:00
Tony Murray
c7c7b57de4
Always boot Laravel (#9842)
* Always boot Laravel
That way we can depend on it being available.
Saves us crashes if some code accidentally uses something that isn't booted and a lot of silly if/elses.

* ignore init php errors
2019-03-14 08:06:27 -05:00
PipoCanaja
be58ec3b72
Fixed overview graph on Cisco ASA announcing all interfaces in type l2vlan (by default filtered) (#9849)
* Fix ASA announcing all interfaces in l2vlan
* Fix ASA announcing all interfaces in l2vlan
2019-03-13 09:04:51 +01:00
PipoCanaja
7b8ccc2ea2
Allowed 14 chars in graph legend for rrd descr. (#9926) 2019-03-12 08:57:56 +01:00
PipoCanaja
6ec97309a0 Grandstream basic support (#9906)
* grandstream simple discovery

* grandstream simple discovery tests

* exclusion in linux matching

* Revert un-necessary changes, and change "over:" to ping
2019-03-10 08:38:46 -05:00
David
6eda5eea91 Quoted all column names to avoid breakage for reserved keyword "row" introduced in MySQL 8.0.2 (#9922)
Fix widgets page with MySQL 8
2019-03-08 08:18:01 -06:00
Vitali Kari
06bba5a2b2 add support for cirpack soft switch (#9914)
* add support for cirpack soft switch

* remove unused lines
2019-03-07 19:57:06 -06:00
tarik
e3e3de1442 Printer paper tray status and error states (#9859)
* adding paper tray status and error states

* adding paper tray test data

* Create jetdirect_papertray.json

* Store printer supply type

* Update json data

* fix style
2019-03-06 18:58:14 -06:00
PipoCanaja
9deb00f20c Added Patton SmartNode OS discovery and polling (#9901)
* Patton SmartNode OS discovery and polling

* mempools

* graphs overs

* []
2019-03-05 21:35:58 -06:00
network-guy
65fba42306 Dantel WebMon Device Support (#9767)
* Dantel WebMon Support

Webmon tep discovery changes

Fix Code Climate Issues

* WebMon - Move MIB to folder and create json reference

* Minor changes to Webmon polling
2019-03-05 00:46:00 -06:00