Commit Graph

16263 Commits

Author SHA1 Message Date
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
CirnoT
735a81c887 Support multiple params when rendering graph view (#10127) 2019-04-29 22:03:06 -05:00
rkislov
125e8ec8e8 russian language support (#10137)
* russian language

* Add Translation Strings As Keys for russian language.
Translate menu.blade.php, librenms1v.blade.php
2019-04-29 22:01:13 -05:00
PipoCanaja
30537361db LLDP Discovery by IP (#10130)
* add ip polling on LLDP devices

* ipv6 support

* formatting

* codeclimate
2019-04-29 21:56:03 -05:00
CirnoT
ca18cf4176 Support for APC PDU Outlet traps (#10162)
* Support for APC PDU Outlet traps

* Add tests

* Remove unused $ipv4 from tests
2019-04-29 21:40:09 -05:00
Tony Murray
5c6a9ab623 Bump version to 1.51 1.51 2019-04-29 16:36:21 -05:00
Tony Murray
9d47476e31 Changelog for 1.51 2019-04-29 16:36:19 -05:00
CirnoT
fb32536189 Serial number and more robust OS version for Netgear switches (#10164)
* Serial number and more robust OS version for Netgear switches

* Update netgear.inc.php

* Update netgear.inc.php
2019-04-29 22:24:20 +02:00
Vitali Kari
df2e80544c Extended sensors for Timos devices (#10160)
* additional sensors for timos
change to yaml discovery for sensors
remove obsolete tmnxChassisPowerSupplyTable

* inconsistent data in snmpsim

* fix snmpsim data

* fix snmpsim data

* fix snmpsim data
2019-04-29 20:48:37 +02:00
CirnoT
33a51bc592 Store IPv4 networks as network address and fix address search page showing networks not addresses (#10144)
* Store IPv4 networks as network address, not device address

* Properly display addresses, not networks on address search page
2019-04-29 11:52:32 -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
bfa7537d83 Get and display the image patch version on Huawei VRP devices (#10099)
* Try to find the patch applied to this device

* tests all
2019-04-29 09:50:40 -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
h-barnhart
5115fa9ca0 Adva SNMP Trap Handlers (#10094)
* Added SNMP Trap Handlers for Adva Ethernet devices

* Fixed formatting.

* Fixed errors from previous commit.

* Refactored AdvaAttributeChange.php

* Updated a few handlers, added test script.

* Added changes to snmptraps.php to make handlers active

* Fixed issues found by travisci

* Missed two mistakes in travisci, fixed. Should be ready for human eyes.

* Added SNMP Trap Handlers for Adva Ethernet devices

* Fixed formatting.

* Fixed errors from previous commit.

* Refactored AdvaAttributeChange.php

* Updated a few handlers, added test script.

* Added changes to snmptraps.php to make handlers active

* Fixed issues found by travisci

* Missed two mistakes in travisci, fixed. Should be ready for human eyes.

* Added two tests.

* fixed error

* Updated handlers with changes introduced in 1.50

* Refactored and added a few tests

* Added test for StateChangeTraps

* Added AdvaObjectDeletionTest, still wip as I need to recapture flow del.

* Added Network Element Alarm Trap Test

* Added more tests, but they are wip.

* Finished traps handler tests, few handler refoactors.

* fixed style errors and refactored as requested

* made requested changes to threshold trap handlers

* removed a test script

* modified adva port threshold handler

* Update AdvaAccThresholdCrossingAlert.php

* Update AdvaNetThresholdCrossingAlert.php

* removed static method

* fixed mistake in AdvaNetThresholdCrossingAlert.php
2019-04-29 08:39:20 -05:00
CirnoT
a7ef43359f Fix services with scripts inheriting DS from previous service on detail view (#10142)
Ensures check_ds variable is always null on each run of loop that displays services graphs. Fixes services that have script (like check_dns) but don't set check_dns on their own inheriting check_dns from previous service that ran (for example check_icmp) and displaying additional bogus graphs as result.
2019-04-28 10:27:36 +02:00
VVelox
7609253a13 Setting font colors for RRD graphs is now possible (#10083)
* easily setting font colors for RRD graphs is now possible

* add a comment explaining the variable
2019-04-28 10:19:35 +02:00
CirnoT
df2930b671 Fixed filter by device and interface type on IP address search page (#10143) 2019-04-28 10:04:56 +02:00
kmpanilla
35b91e9d22 Updated Planetos support for additional models (#10149)
Add basic support for the IGS-10080MFT and IGS-10020MT (and probably other IGS-*) models.
2019-04-28 09:56:53 +02:00
CirnoT
272fabd8fc Added memory pool for Netgear switches (#10146) 2019-04-27 23:11:04 +02:00
Tony Murray
9a00092388 Fixed debug output when fetching version (#10155)
in some cases
2019-04-27 23:09:10 +02:00
pobradovic08
b774bb6900 Updated Code-Structure.md (#10156)
* documentation: Fix html/includes directory path

- Changed `html/includes` to `includes/html`
- Added overview of directories mentioned on the page

* documentation: Cleanup Code-Structure.md

- Reorganized document
- Added `includes/html/graphs` on the list
- Changed terminology (from folder to directory)
- Removed part referencing old auth method using authenticate.inc.php (changed in #8702)
2019-04-27 23:02:57 +02:00
h-barnhart
27ff49fb1d Added Fortinet SNMP Trap handlers (#10148) 2019-04-27 20:34:15 +02:00
CirnoT
b102cedc5c Added PSU state to Netgear discovery definition (#10150)
* Add PSU state to Netgear discovery definition

* Add tests for Netgear PSU
2019-04-27 20:06:22 +02:00
Martijn Schmidt
af5377e06c Handle health sensors with underscores in the name. (#10123) 2019-04-27 17:10:31 +02:00
pobradovic08
b8c4f38fb5 Added session graphs for Barracuda NGFW (#10102)
* devices: Corrected discovery object ID for Barracuda NGFW; Added fw session graphs
* device: Added test data
2019-04-27 15:33:55 +02:00
djamp42
ae1b5bbfc1 Allowed Add_Device API to set sysName (#10124)
sysName is a valid option via the WebGUI to set when SNMP is turned off. Currently you cannot set this via the API add device. This is to enable setting the sysName via the API.
2019-04-27 09:15:59 +02:00
Mihai Petracovici
2df2956817 Improved option naming & validation for smseagle (#10141)
* Relax validation for smseagle hostname
* Update property description and documentation
2019-04-27 09:08:16 +02:00
Tony Murray
d44dd55239 Fix chrome driver version mis-match (#10154) 2019-04-26 21:52:33 -05:00
TheGreatDoc
ea8f0de330 Fix formatting (#10135) 2019-04-24 10:09:48 +02:00
Tony Murray
0a12ede577 Fixed api *log date format (#10133)
fixes #10089
2019-04-23 15:26:50 +02:00
Tony Murray
6e6e54cb98 New User Management (#9348)
* Rewrite user management.

Error management

Revert edituser legacy page

Connect user permissions button to legacy page for now.

Implement user creation
Refine form

Remove PingCheck.php accidental add :)

Fixes for redirection and deletion

More fixes: realname accidental validation setting, hide can modify for read-only auths

Use a panel to improve style

Add icon to panel-title

Not allowed to delete own user (at least via the click of a button)

Use request validation to reduce complexity of controller.
Improve protection against users doing things they should not.

Switch to horizontal form and not nearly as wide of layout :)

delete without refresh.
Fix for buttons

Include all users (not just from this auth)
Hide the auth column if there is only one auth type

Show username if real name isn't set

Don't allow creation of demo users via the webui

a fix to the lnms user:add command, it didn't set auth_id

update edituser.inc.php to current
just redirect to users page

* Remove TwoFactorTest for now

* Update edituser.inc.php

* Update .env.dusk.testing

* Enable 2fa for 2fa test...
2019-04-22 19:01:39 -05:00
Tony Murray
39ff4c7aaf Fix install.php can't find config.php (#10129) 2019-04-20 12:32:17 -05:00
pobradovic08
69a453adf0 documentation: Fix paths of custom graph examples (#10128)
Change `html/includes/` path to `includes/html/`
2019-04-20 08:44:40 -05:00
CirnoT
141eab11ca fix call to shortDisplayName on null in MuninPluginController (#10126)
MuninPluginController did not ask for device_id in baseQuery, hence later it was impossible to construct valid Device model causing subsequent call to shortDisplayName in formatItem to be on NULL.
2019-04-19 08:12:33 -05:00
Tony Murray
d901d308d2 fix call to isUnderMaintenance() on null (#10090)
Not sure how people managed to trigger that one...
2019-04-18 10:14:17 -05:00
Tony Murray
d5ea3d42bd Don't require db for config_to_json.php (#10100)
DB is still used if available.
2019-04-17 22:11:40 -05:00
PipoCanaja
a08b8333cc Bug - Nasty user_func vs divisor-multiplier issue (#10122)
* Nasty user_func vs divisor-multiplier issue

* tests
2019-04-17 20:15:31 -05:00
TheGreatDoc
f63d7a8bfe Update Example-Hardware-Setup.md (#10115)
* Update Example-Hardware-Setup.md

* Restore DB type
2019-04-17 22:51:49 +02:00
TheGreatDoc
75e11a7d3f Update Templates.md (#10120) 2019-04-17 16:28:55 +02:00
PipoCanaja
5b6bf35d7a Display number of connections for ASA on over (#10106) 2019-04-17 08:14:45 +02:00
KodApa85
bb883501a9 fix: corrected markup (#10117)
Hadn't noticed the formatting was a little broken...
Looks a lot better now
2019-04-16 22:38:00 +02:00
Derek Johnson
d069d0fd46 Disable snmpbulkwalk for cyberpower os (#10109) 2019-04-15 20:00:10 +02:00
Neil Lathwood
d31a551464 Removed legacy code from transports (#10081) 2019-04-12 12:33:10 -05:00
Spencer Butler
c76115bf46 Added support dellNet devices (#10016)
* Added support DELL-NETWORKING-PRODUCTS-MIB (os: dell-net)

* dell-net - created mempool, removed flash (not enough data points)

* dell-net - updated yaml sysObjectIDs

* dell-net - added sensors, fixed sensors

* clean up

* dell-net added Tx/Rx indicators

* dell-net - regroup Lanes

* dell-net remove Lane quotes, removed random files

* dell-net - updated Model description per requester

* added rules to ignore 0 values

* restricted discovery match

* merge dellNet into os: dnos

* typo

* remove dell-net test files
2019-04-12 00:49:35 -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
PipoCanaja
36e709ebab Improved Linksys support, including POE (#10075)
Fixes #9718 

This PR adds POE graphs, even if not all the values that are polled on other OSes are available on this one.  

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 10075`
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 20:32:57 +01:00