Commit Graph

47 Commits

Author SHA1 Message Date
Tony Murray
32a7c50189 Use Laravel authentication (#8702)
* Use Laravel for authentication
Support legacy auth methods
Always create DB entry for users (segregate by auth method)

Port api auth to Laravel

restrict poller errors to devices the user has access to

Run checks on every page load.  But set a 5 minute (configurable) timer.
Only run some checks if the user is an admin

Move toastr down a few pixels so it isn't as annoying.

Fix menu not loaded on laravel pages when twofactor is enabled for the system, but disabled for the user.
Add two missing menu entries in the laravel menu

Rewrite 2FA code
Simplify some and verify code before applying

Get http-auth working
Handle legacy $_SESSION differently.  Allows Auth::once(), etc to work.

* Fix tests and mysqli extension check

* remove duplicate Toastr messages

* Fix new items

* Rename 266.sql to 267.sql
2018-09-11 07:51:35 -05:00
TheGreatDoc
d475665601 Added BGP Peer Descriptions (#9165)
* Added BGP Peer Descriptions

* Fixed formatting

* Added to device routing tab too

* Some text formatting

* Test files

* Added default null to bgpPeerDescr

* Added db_schema.yaml

* Fix default value for bgpPeerDescr

* Fixed Order and Search box

* Added glyphicon for success/error

* Switch to toastr notification

* Removed unused bootstrap code
2018-09-10 22:54:46 -05:00
Tony Murray
7250376104 refactor: Don't access $_SESSION directly for Auth (#8513)
* Don't access $_SESSION directly for Auth

* fix style

* add property annotations
2018-04-07 21:55:28 +01:00
Tony Murray
c22c879983 fix: Remove faulty memcached code (not related to distributed polling) (#7881) 2017-12-10 20:40:45 +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
Tony Murray
4c0412b14d feature: Wireless Sensors Overhaul (#6471)
* feature: Wireless Sensors
Includes client counts for ios and unifi
Graphing could use some improvement.
Alerting and threshold ui not implemented

WIP: starting OO based wireless sensors.

Class based functionality working
remove old functional files
add schema file

discovery needs to be enabled, not polling

fix up schema

fix Unifi discovery not returning an array

Add some debug when discovering a sensor.
Fix style.

Add missing semicolin

Add a null object (Generic) for OS.
Fill out some phpdocs

Re-organized code
Each sensor type now has it's own discovery and polling interface
Custom polling tested with Unifi CCQ

Left to do:
Implement UI (Graphs and Custom thresholds)
Alerting
Testing

Fix event message text

Remove runDiscovery and runPolling from OS, they are unused and don't belong there.

Cleanups/docs

Missed this file.

Remove the requirement to fetch the current value to check validity.
Do that automatically if current is not specified
A few cleanups here and there

First pass at graphing.
device_ and wireless_ graphs added.

Add RouterOS support

Singleton OS instance isn't required right now.
Remove that to allow some memory to be freed.

Add wireless to the device list metrics.
Make all metrics clickable

Tweak graphs a bit

Implement limit configuration page.
Use sensors page as common code instead of duplicating.
Clean up some javascript interactions:  Allow enter on values to save. Cancel if update is not needed. Enable the clear custom button after setting a custom value.
Add some wireless alert rules to the library.

Add documentation.

Add unifi client counts by ssid in addition to radio.
Optimize Sensor polling a bit.

Add HP MSM clients support (for full controller)
Fix function accessibility

Formalize the discovery and poller interfaces.

Add Xirrus clients and noise floor
move module interfaces to a more appropriate place.
push caching code up to os, unsure about this do to the limitations

No point in selectively enabling wireless discovery.  We only discover if the device supports something.

Add RSSI, Power, and Rate.
Add these sensors for Ubnt Airos.
Clean up some copyrights.

Reduce the amount of files need to add new types.
Leave graph files for consistency and to allow customization.

Remove the old wifi clients graph completely.
ciscowlc should have improved counts (total and per-ssid)

Schema didn't get added.

Impelement the rest of the AirOS sensors
Reformat and re-organize the Airos.php class.

Add several UBNT AirFiber sensors

A few fixes add links to the section headers

Add HP MSM mibs.

* Schema file got dropped in rebase.

* Add wireless menu to view sensors across all devices.
Icons in the menu need help :/

* Add HeliOS, Mimosa, and Siklu support
Sensors added SNR + Noise

* Add power and utilization to Unifi

* Update polling to prefetch all sensor data in a few snmp requests as possible

* Add Extendair: tx+rx power, aggregate rate, frequency

* Add a check for duplicate sensors in discovery.  Just print an error for now.

* Add Bit Error Ratio (named error-ratio to allow for bit error rate to be added if needed)
Fix an incorrect link in the wireless sensors table

* Add error rate and change all bps and Hz to use si units

* Fixes to limits and frequency display

* Fix overview graph frequency display
A few decimal place tweaks

* Don't allow switching sensor and wireless-sensor graphs, it doesn't work.
Change individual distance graphs to use si units

* Go through the OS and make sure I got all the sensors I can (probably missed some still)
Because pollWirelessChannelAsFrequency() is generic and a little complex, so pull it up to OS.
Message to help developers adding supports that don't return an array from discover functions.

* Fix some issues

* Remove noise and signal for now at least
A couple more fixes
Add a notification

* Oopsie

* Bonus AirFiber sensors
2017-05-01 23:49:11 -05:00
Robbie Penziol
afb838bc10 webgui: Added ability to set warning percentage for CPU, mempools from device edit page (#5895) 2017-03-03 15:07:12 +00:00
Richard Mayhew
6a1fd3ec05 webui: Additional Font Awesome icons (#5572) 2017-01-25 17:42:26 +00:00
Tony Murray
8c639aa5a4 PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now.
Fixed all errors, left most warnings.
2016-08-18 21:29:30 -05:00
Daniel Preussker
731e43bc66 Revert "[WIP] Sanity!" 2016-02-17 13:59:58 +00:00
f0o
c767a26732 more bulk sanity 2016-02-10 16:02:13 +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
laf
e9deae1315 Centralised the date selector for graphs for re-use 2015-10-20 21:35:08 +00:00
laf
13e3ff04aa Moved some files around 2015-10-10 13:49:09 +00:00
laf
37b7e8247d Added support for excluding devices from Oxidized api 2015-10-10 13:40:27 +00:00
Daniel Preussker
511f4e9037 Excluded more pages from caching 2015-09-30 20:27:12 +00:00
Daniel Preussker
6b020e0d82 Merge pull request #1613 from laf/issue-1524
Added edit page to update storage percent warn value
2015-08-09 09:26:17 +00:00
Mike Rostermund
0cc3e1a9e2 Remove php closing tags to fix scrut issues 2015-08-04 19:29:43 +02:00
laf
94351d788e Initial start of adding edit storage page 2015-08-03 10:46:40 +00:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
laf
487906b34e Updated services edit / delete pages 2015-05-19 17:18:39 +01:00
laf
a404082d51 Updated some of the main pages to no longer refresh 2015-03-21 21:30:55 +00:00
laf
807fc9a3ba Alerts gui commit 2014-12-16 20:03:19 +00:00
laf
911647d08c Added new health admin page for thresholds 2014-06-14 23:10:53 +01:00
Tom Laermans
6a1cce6090 syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@3147 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-07 16:23:43 +00:00
Tom Laermans
56b2b49089 allow multiple icons to be defined per OS, let user select one in the device settings
git-svn-id: http://www.observium.org/svn/observer/trunk@3146 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-07 15:39:48 +00:00
Tom Laermans
ab2668981c Add page title changing infrastructure, do it for device tabs already
git-svn-id: http://www.observium.org/svn/observer/trunk@2690 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-18 14:27:21 +00:00
Tom Laermans
a369c442eb syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2643 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-04 14:38:54 +00:00
Adam Amstrong
0e6284b5c3 fixed edit tab (test?)
git-svn-id: http://www.observium.org/svn/observer/trunk@2495 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-18 18:38:42 +00:00
Adam Amstrong
99c6fc3e65 vastly simplified .htaccess and cleaned up how we use variables a little
git-svn-id: http://www.observium.org/svn/observer/trunk@2446 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-12 04:57:56 +00:00
Adam Amstrong
02a9089584 show what modules there are (useless, indeed!)
git-svn-id: http://www.observium.org/svn/observer/trunk@2227 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-03 16:55:52 +00:00
Tom Laermans
6cc1abf2e5 get rid of base_url, part 1 of ...
git-svn-id: http://www.observium.org/svn/observer/trunk@2132 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-21 13:41:24 +00:00
Adam Amstrong
b76ad33b3b extend simpler menubar to more pages. fix graphname to device_temperature for os definitions.
git-svn-id: http://www.observium.org/svn/observer/trunk@2051 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-11 09:16:50 +00:00
Tom Laermans
9fd77cd884 allow disabling of alerting per device, allow override of syscontact, minor cleanups
git-svn-id: http://www.observium.org/svn/observer/trunk@1995 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-30 16:28:24 +00:00
Tom Laermans
7454791074 code standard/cleanups
git-svn-id: http://www.observium.org/svn/observer/trunk@1978 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-26 19:12:24 +00:00
Tom Laermans
febdea231e move snmp options to separate form on device edit, also hide services link when services disabled
git-svn-id: http://www.observium.org/svn/observer/trunk@1928 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-18 16:49:15 +00:00
Tom Laermans
1a477eebbe device subpages cleanup, remove dead code
git-svn-id: http://www.observium.org/svn/observer/trunk@1896 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-16 23:10:10 +00:00
Tom Laermans
dacb3d2252 Add webinterface support for IPMI poller
git-svn-id: http://www.observium.org/svn/observer/trunk@1766 61d68cd4-352d-0410-923a-c4978735b2b8
2010-12-20 12:26:26 +00:00
Adam Amstrong
632bf99239 allow manual ignore of ports
git-svn-id: http://www.observium.org/svn/observer/trunk@1697 61d68cd4-352d-0410-923a-c4978735b2b8
2010-09-03 13:32:11 +00:00
Adam Amstrong
5bdb0f31e4 some more icons, changes to device editing system
git-svn-id: http://www.observium.org/svn/observer/trunk@1221 61d68cd4-352d-0410-923a-c4978735b2b8
2010-06-20 17:21:35 +00:00
Tom Laermans
2682ff9e6d refactored device types, added power type for APC and MGE stuff + some warning fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@1137 61d68cd4-352d-0410-923a-c4978735b2b8
2010-06-10 20:13:41 +00:00
Adam Amstrong
0f1bd1f25d hide some sensitive stuff for users < level 7
git-svn-id: http://www.observium.org/svn/observer/trunk@1031 61d68cd4-352d-0410-923a-c4978735b2b8
2010-03-17 15:15:36 +00:00
Adam Amstrong
e227df8ef2 rename some gui include files
git-svn-id: http://www.observium.org/svn/observer/trunk@891 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-20 17:37:42 +00:00
Tom Laermans
ffcae1f80a optional printers type in devices menu
git-svn-id: http://www.observium.org/svn/observer/trunk@738 61d68cd4-352d-0410-923a-c4978735b2b8
2010-01-28 17:46:41 +00:00
Tom Laermans
acce06e54e allow editing of community on device tab, fix yellow border on bgp page
git-svn-id: http://www.observium.org/svn/observer/trunk@639 61d68cd4-352d-0410-923a-c4978735b2b8
2010-01-09 17:37:51 +00:00
Adam Amstrong
211e9d0283 HURRAH FOR SID3WINDR
git-svn-id: http://www.observium.org/svn/observer/trunk@560 61d68cd4-352d-0410-923a-c4978735b2b8
2009-12-28 12:00:57 +00:00
Adam Amstrong
d25b189dc4 fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@324 61d68cd4-352d-0410-923a-c4978735b2b8
2008-11-27 12:00:39 +00:00