Commit Graph

14439 Commits

Author SHA1 Message Date
Adam Bishop
1c6b7a967f Single Sign-On Authentication Mechanism (#7601)
* Allow the URL a user is sent to after logging out to be customised
This is required for any authentication system that has a magic URL for logging out (e.g. /Shibboleth.sso/Logout).

* Allow auth plugins to return a username

This is a bit cleaner than the current auth flow, which special cases e.g. http authentication

* Add some tests, defaults and documentation

* Add single sign-on authentication mechanism

* Make HTTPAuth use the authExternal/getExternalUsername methods

* Add to acknowledgements

* Add reset method to Auth
2017-11-28 20:40:17 -06:00
Chris A. Evans
3720f0e776 feature: Implement dynamic temperature scale detection and value conversion for siteboss (#7734)
* added comments describing changes needed to be implemented

* Added patch by laf to update the underlying function, modified OID value in yaml to poll string instead of integer

* Second patch to discovery function peer laf/murrant
2017-11-28 20:30:24 -06:00
mattie47
3206447326 device: Improve Allied Telesis support within LibreNMS (#7670)
* Add support for Allied Telesis AlliedWare Plus products

- Uses mibs from 5.4.7-2.1 for AlliedWare Plus products
- Updates Legacy AlliedWare mibs
- Added Allied Telesis svg

* Remove unnecessary "trim" from snmpget

* Add new line to end of file

* Minor fixes for commit
2017-11-28 20:18:39 -06:00
Tony Murray
6b5dccc169
refactor: AD Auth defer connection until it is needed (#7768)
* refactor: AD Auth defer connection until it is needed
Nice error if php-ldap is missing instead of http 500.

* Add the same error when ldap is missing to other auth methods.
Not as graceful looking in the authorizers since they do not defer connection.
2017-11-28 09:19:34 -06:00
Neil Lathwood
8d98fa5a5e device: Added support for NetPing UniPing devices (#7807)
* device: Added support for NetPing UniPing devices

* Fix svg viewbox and remove useless style cdata
2017-11-28 08:15:22 -06:00
Martin Zatloukal
666c7b2700 Fix: Current tx power on Racom Ray (#7813) 2017-11-28 08:02:42 -06:00
Neil Lathwood
e1bb3261de
webui: Disabled page refresh on Add services page (#7804) 2017-11-27 17:45:02 +00:00
Martin Zatloukal
6b4241381f fix: Fixed UPS time remaining in Mikrotik RouterOs (#7803)
* Fix UPS time remaining in Mikrotik RouterOs

* Fix UPS time remaining in Mikrotik RouterOs

* Remove space
2017-11-27 17:13:09 +00:00
Kevin Krumm
199d160fe0
docs: VM image install doc minor spelling fix (#7801)
* docs: VM image install doc minor spelling fix

* Update CentOS-image.md
2017-11-26 17:22:28 -06:00
Neil Lathwood
ae062f901b
device: Added additional sensors for Geist Watchdog devices (#7795)
* device: Added additional sensors for Geist Watchdog devices

* added missing divisor

* added os unit test
2017-11-26 21:53:14 +00:00
Kevin Krumm
90dced7dc8
docs: minor sentence fix cleanup options. (#7800) 2017-11-26 14:11:52 -06:00
Kevin Krumm
cf58d15838
docs: build new Cleanup Options doc (#7798)
* docs: build new Cleanup Options doc

* docs: create new cleanup options doc

* Update Cleanup-options.md
2017-11-26 11:37:02 -06:00
Kevin Krumm
b6abf158a0 alerting: Added more rules to collection (#7797)
Comware Sensors PSU, Fan
Cisco Sensors Fan, PSU
UBNT EdgeSwitch Chassis State
2017-11-26 14:32:32 +00:00
Kevin Krumm
d0a5be128b
docs: updated the user account types doc (#7794)
* docs: updated the user account types doc

added a bit more info on user account levels.

* added oxidized info

* Update Authentication.md
2017-11-25 15:21:45 -06:00
Kevin Krumm
4120bbc2a9 docs: Minor changes and fixes to Alert Rules (#7789)
* docs: minor changes and fixes to Alert Rules

* Update Rules.md

* Update Rules.md
2017-11-24 23:06:32 +00:00
Tony Murray
2e73b75297 fix: Use memcached to lock daily processes on Distributed Pollers (#7735)
* fix: use memcached to lock daily processes on Distributed Pollers

* All the locks!
2017-11-24 09:37:52 +00:00
Tony Murray
9c0a74debb docs: Don't suggest setting distributed poller name incorrectly (#7790) 2017-11-24 09:17:11 +00:00
Martin Zatloukal
8c8a2e05c6 feature: Added additional sensors for ups-nut
* Add db schema for ups-nut alerting

* Add db schema for ups-nut alerting

* Add db schema for ups-nut alerting

* Add db schema for ups-nut alerting
2017-11-23 20:37:05 +00:00
Tony Murray
9113f81272 fix: Allow discovery to check if devices are down before skipping (#7780)
* fix: allow discovery to check if devices are down before skipping
We could also exclude snmp_disable devices from SQL query, worthwhile?

* also skip ping only devices
2017-11-23 08:31:15 +00:00
Tony Murray
257a314fca feature: Validate session directory is writable (#7784) 2017-11-23 08:29:10 +00:00
Neil Lathwood
b45302bf70 newdevice: Updated Checkpoint Gaia detection and added storage (#7656)
* newdevice: Updated Checkpoint Gaia detection and added storage

* update db_schema

* added murrants discovery options

* Rename 216.sql to 217.sql
2017-11-22 23:28:33 -06:00
Kevin Krumm
6fe5ac60d6
docs: rules doc small changes (#7787)
some minor movements to the alert rules doc.
2017-11-22 19:37:39 -06:00
Kevin Krumm
381f4b0cdf
docs: fix link clean options (#7786)
well, the link didn't work as planned. :(
2017-11-22 19:04:15 -06:00
Kevin Krumm
998a797bcd
docs: added links/alerts/Cleanup Options (#7785)
* docs: added link to the alerts collection

* docs: added link to clean options

added link under setup to help users locate Clean options.
2017-11-22 18:34:10 -06:00
Tony Murray
cfe4cecc8e Precache undefined variable $array_data (#7781)
Not sure of the implications of this but I'm pretty sure it should be $oid
2017-11-22 21:50:22 +00:00
Tony Murray
0dee809607 fix: Discovery os changes weren't properly reflected if os changed (#7779) 2017-11-22 21:48:28 +00:00
Tony Murray
6371e47fea fix: Fixed precache data (#7782)
Missed one pre-cache data layout
fixes: #7777
2017-11-22 21:42:19 +00:00
Tony Murray
67e83cc2ea fix: Reduce chance of incorrect os detection (#7776)
I think using the strict check was causing some of our odd incorrect os detection.  The previous php code was not using a strict check, so revert to that.
2017-11-22 08:18:55 +00:00
Tony Murray
ea684c3543 webui: Allow deletion of dead poller nodes (#7721)
* webui: allow deletion of dead poller nodes

* improve messages
2017-11-22 07:50:29 +00:00
Neil Lathwood
ccbe3ea2e3 fix: Use correct entity columns for sensors (#7775)
* fix: Use correct entity columns for sensors

* updated schema

* Update custom rules too
2017-11-21 22:41:22 -06:00
Tony Murray
a56267e5ba fix: poller-wrapper.py keeps running when a poller takes too log (#7722)
name space the memcache variables for each polling interval based on the rrd.step value.
Make poller-wrapper.py respect the rrd.step setting
2017-11-21 09:22:53 +00:00
Kevin Krumm
f04d7f1e94
docs: added note to adding device (#7774)
* docs: added note to adding device

added a note to SNMP port.

* Update Adding-a-Device.md
2017-11-20 23:00:10 -06:00
Tony Murray
d10047c32e
fix: bgp-peers fails when ip parsing fails (#7773)
Don't try to call ->getFamily() if we didn't parse an IP
2017-11-20 18:46:15 -06:00
Neil Lathwood
ba51dc263e refactor: Only update sensor/bgp tables when values are changed (#7707)
* refactor: Only update sensor table when sensor values are changed

* included bgp peers in as well

* updated with comments from github
2017-11-20 12:37:02 -06:00
Richard Lawley
c56f04e1e2 fix: Set API log start at 0 rather than 1(#7772) 2017-11-20 15:31:21 +00:00
Tony Murray
0c83bd051b
Fix: Authentication on CentOS6 (#7771)
There is no need to redeclare abstract functions if the class is already abstract and they are declared in parent.
For some reason the PHP on CentOS7 throws an error with this where all other php versions I tested were fine with it.
2017-11-19 21:59:05 -06:00
Tony Murray
e205c93c07
remove extra backtick (#7770) 2017-11-19 20:53:25 -06:00
Kevin Krumm
8a4a5b2987 docs: added Web UI rename device. (#7769) 2017-11-19 20:20:02 -06:00
Tony Murray
1cc0e7cd6d fix: Fixed empty group query for devices (#7760)
* fix: empty device group query

* fix: empty device group query
Optimize it a bit to use the relationship.
2017-11-19 21:54:09 +00:00
Tony Murray
d8c33463c6
fix: ldap auth typo (#7766) 2017-11-19 13:02:19 -06:00
Kevin Krumm
6a6ae97084
docs: snmp config for Mac OSX (#7767) 2017-11-19 12:50:55 -06: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
mcq8
c9728a1f71 refactor: Refactored authorizers to classes (#7497)
* Refactored authorizers to classes

* Merge changes for #7335

* ! fix php 5.3 incompatibility

* Update ADAuthorizationAuthorizer.php

* Fix get_user -> getUser

* Rename AuthorizerFactory to Auth, fix interface missing functions

* Add phpdocs to all interface methods and normalize the names a bit.

* Re-work auth_test.php AD bind tests to work properly with the new class.
Reflection is not the nicest tool, but I think it is appropriate here.
Handle exceptions more nicely in auth_test.php

* Restore AD getUseList fix

Not sure how it got removed

* fix auth_test.php style
2017-11-18 10:33:03 +00:00
Neil Lathwood
38be66993f
webui: Updated sensors overview header to be consistent with others (#7761)
* webui: Updated sensors overview header to be consistent with others

* added line break
2017-11-18 10:26:12 +00:00
Paul Blasquez
03cba5b24d fix: discovery.nodes can sometimes be None when not master (#7747)
* Fix: discovery.nodes can sometimes be None when not master

* Update discovery-wrapper.py

* Address short TTL as root cause.
2017-11-18 10:09:21 +00:00
Seti
00a73a2432 Only warn if there is ipv6 disabled (#7757)
* Only warn if there ipv6 is disabled

* Change message & if condition
2017-11-18 01:36:06 -06:00
Kevin Krumm
51a641c93b
docs: added ports template to alert rules doc (#7763)
Ports utilization template
2017-11-17 19:33:35 -06:00
Tony Murray
59625dc836 Remove the duplicated API TOC (#7759) 2017-11-17 15:04:49 +00:00
Tom Hayward
b42c7de486 refactor: Better default temperature sensor limits (#7754)
* fix: use typical Mikrotik operating range for default temperature sensor limits.

* fix: Use static offsets for default temperature limits. Previous scaling did not work well for small or negative values.
2017-11-17 14:07:50 +00:00
Tony Murray
af27195746 feature: Script to collect port polling data and compare full walk vs selective port (#7626)
* Script to collect port polling data and compare full walk vs selective port polling.

* Select hosts. Colors. Percent. Units (s). Enable sel poll.

* Moved the colors. Disable selective if needed. Report set status and count.

* Style fix.

* CLI help.

* Docs.

* Style fix.

* Allow comma separated device_id list.
Better color formatting for output
Fix issue when using &$device by reference
2017-11-17 09:10:37 +00:00