Commit Graph

14826 Commits

Author SHA1 Message Date
mattie47
4a0acad79a device: Implement Allied Telesis Environmental Monitoring (#8140)
* device: Implement Allied Telesis Environmental Monitoring

Initial patch to monitor:
- fans
- temperature

State:
- fans
- temperature

* device: Implement Allied Telesis Environmental Monitoring

Patches cover:

- Fan Speed and State
- Voltage Speed and State
- Temperature and State
- Power Supply State

* updated awplus test data

* Update awplus sensors and snmprec test data

* Add awplus processor snmprec stats
2018-02-14 17:11:53 -06:00
Richard Mayhew
df724a78b7 webui: Fix panel device header for themes (#8238)
* New event log severity model

* Revert "New event log severity model"

This reverts commit 0783527af8.

* Fixed Panel Bar - #8157

* Reverted back the counter
2018-02-12 15:50:16 +00:00
Tony Murray
561846a44b fix: Fiedx issues with new config init (#8242)
* Fix non-config defaults

* update processConfig and remove file
2018-02-12 09:15:44 +00:00
Kevin Krumm
16424ef3a4
docs: Added more info about wireless sensors (#8243)
* docs: Added more info about wireless sensors

* Update Device-Sensors.md
2018-02-11 16:18:49 -06:00
Neil Lathwood
31fe743273 fix: Fixed the HTML Purifier config so allowed values work (#8239) 2018-02-10 21:27:04 -06:00
Neil Lathwood
9a30846e01 webui: Updated vis js and moment js (#8240)
* webui: Updated MomentJS to latest version 2.20.1

* Updated vis.js to 4.20.1
2018-02-10 21:19:56 -06:00
Tom Sealey
63cc936f60 docs: Created Gateone 3rd party integration doc (#8229)
* Create Gateone.md

Doc for Gateone integration.
Credit to davama who wrote most of this.

f6a7e5973f

* Update Gateone.md

* Update mkdocs.yml

added gateone.md
2018-02-10 20:52:26 +00:00
Tom Sealey
2f6f99a330 feature: Added gateone link SSH support (#8189)
* adding gateone link

* Added gateone support, now checks config.php for settings

* adding gateone link

* Added gateone support, now checks config.php for settings

* fixed an incorrect url

* fixed syntax errors

* added new option to config.php, $config[gateone][use_librenms_user] is a boolean that inserts the logged in Librenms user to the SSH link if set to true

* removed code duplication

* removed hostbox-menu.inc.php
2018-02-10 20:51:26 +00:00
Tony Murray
de56dccc8a refactor: Move config loading into the Config class. (#8100)
Self contain dbFacile too.
Update rrdtool default setting to be similar to others.
Move silly cisco-entities.php into entity-physical.inc.php
2018-02-10 20:38:25 +00:00
Robbert
363c24a117 fix: Changed e-mail validation TLD max length to 18 (#8236) 2018-02-10 13:25:50 +00:00
Aldemir Akpinar
5880f06780 webui: Added sysNames to pulldowns and the main page (#8137)
* Add dependency info for api

* webui: made dev dependency list more like devices page. Also added sysNames to pulldowns and the manin page

* Create common function for sysname display

* A better function name
2018-02-10 13:18:53 +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
tduehr
2793958f05 fix: Correct unix socket handling in discovery-wrapper to match poller-wrapper (#8214) 2018-02-09 21:09:56 +00:00
Tony Murray
9cc542bc6a webui: Adding invalid hostnames is no longer fatal. (#8233)
* Adding invalid hostnames is no longer fatal.
Will still fail if they are unpingable.

* Fix up snmp enable/disable handling
2018-02-09 07:55:18 +00:00
Tony Murray
1188b53192 security: Use more secure password hashes (#8213)
* More secure password hashes
Use PHP 5.5 password_hash(), currently uses bcrypt
increase password field length as per php documentation

* Use password_hash()/password_verify() for cookies too

* forgot to update db_schema.yaml
2018-02-08 23:08:21 +00:00
Tony Murray
496575ea99 docs: Add composer back to the CentOS install docs (#8224)
* Add composer back to the centos install docs
This is for CentOS 7, not CentOS 6...

* In tree composer requires php 7.2

* Rename socket file to match

* Clean up the initial config.php a bit
Add clearer releasing info in that config.php
Update the manual update instructions
2018-02-08 21:46:55 +00:00
Tony Murray
016455f784 webui: Port realtime graph, more space for the interface name (#8234) 2018-02-08 20:57:45 +00:00
Richard Lawley
763c86fc11 refactor: Removed Unused Billing PDF reports (#8235) 2018-02-08 20:56:40 +00:00
Martin Nilsson
2bd88a2f2b device: Added support for OpenBSD PF states (#8211)
* First basic support for graphing openbsd pf states

* Now openbsd pf state graphing actually works

* First basic support for graphing openbsd pf states

* Now openbsd pf state graphing actually works

* Wrong graph types for searches, removals and inserts

* Removed unused file "openbsd_pfstates.inc.php"

* Remove openbsd from filenames, make it more generic
2018-02-08 20:54:29 +00:00
Kevin Krumm
a4bc98e555 docs: update Dashbaord iframe (#8232)
updated doc with iframe using info from #PR8219
2018-02-08 10:32:01 -06:00
Tony Murray
e00597db10
Case insensitive alert rule searching (#8231) 2018-02-08 08:49:19 -06:00
Maurice den Braber
1cdb37d416 Update notes.inc.php (#8219)
Allow from iframe border removal by allowing frameborder attribute.
2018-02-08 08:38:59 -06:00
Alan Gregory
977796382d StoneOs improvements (#8155)
* Added snmp mibs from vendor (https://www.hillstonenet.com)

* Added memoery discovery and pool

* Added serial and os version discovery.

* Added cpu discovery.

* Added temperature and power sensors

* Added test data.

* Fix yaml format.

* Pass mib name as parameter.

* Pass mib name as parameter.

* Use numeric OID

* User snmp_get_multi_oid

* Use snmp_get_multi_oid

* Remove default extension from vendor.

* Update test data.

* Renamed some mibs + changed oid in disco proc

* Updated json test data

* Update processor discovery to yaml
2018-02-07 23:28:46 -06:00
Tony Murray
f6ad067af4
airos processor and sensor fixes (#8227) 2018-02-07 23:24:20 -06:00
axemann
f6cc671bb0 Add OPNsense support (#8199)
* Add OPNsense support

* Add OPNsense support (#8196)

* Revert unix.inc.php, move polling to opnsense.inc.php

* Revert unix.inc.php

* Update opnsense.inc.php
2018-02-07 23:17:35 -06:00
crcro
bfcc15aaa8 webui: fix services display (#7993)
* fixed display bug when only one host had services

* small cleanup, renamed vars as laf change request

* message display wrongly removed, integrated back

* missed one changed line by #8030
2018-02-07 21:20:27 -06:00
Tony Murray
6bbe5038e8
fix linkify to work with with ip addresses (#8226)
* fix linkify to work with with ip addresses

* update tests
2018-02-07 20:48:18 -06:00
Tony Murray
8abe508cfd
Cisco Processor update (#8216)
Fix issues with newer devices by updating CISCO-PROCESS-MIB
Detect individual cores on supported processors
2018-02-07 20:47:56 -06:00
Tony Murray
7a2e5f4e40
Update to phpunit 5 (#8217)
remove array_column it is no longer needed
2018-02-07 20:45:56 -06:00
Tony Murray
f43e23e15a
Restore vendor contents even if composer is not available (#8223)
* Restore vendor contents even if composer is not available
Leave the code in both places for safety.

* Instruct users to use the wrapper instead of straight up composer...
2018-02-07 20:45:18 -06:00
dragans
547451974d Update librenms.logrotate (#8220)
* Update librenms.logrotate

- Change path /opt/librenms/logs/*log so that logrotate catches http logs (access_log and error_log).
- Added SU parameter to rotate files with librenms user, as it was throwing insecure permissions error without it.
- Added CREATE parameter to create new log files as librenms user.

* Update librenms.logrotate
2018-02-07 13:44:17 -06:00
Misha Komarovskiy
26ce852c95 device: Add XOS X480 and X650 desc and tests (#8206)
* device: Add XOS X480 and X650 desc and tests

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

* device: add XOS x480 and x650 test data

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

* Add missing hardware string in test data
2018-02-06 23:47:56 -06:00
Rémy Jacquin
19a17ed348 Allow administrators to edit devices sysName (#8149)
* Allow administrators to edit devices sysName
Signed-off-by: Rémy Jacquin <remy@remyj.fr>

* Fix html/pages/device/edit/device.inc.php identation
Signed-off-by: Rémy Jacquin <remy@remyj.fr>

* Revert "Allow administrators to edit devices sysName"

This reverts commit 11b127b082.

* Moved sysName editing to snmp tab

Signed-off-by: Rémy Jacquin <remy@remyj.fr>
2018-02-06 23:35:00 -06:00
Tony Murray
e97c3bcb0c
Fix awplus typo (#8215) 2018-02-06 22:42:07 -06:00
Tony Murray
913d6dc641 refactor: Update awplus to new processor discovery (#8204)
* Update awplus to new processor discovery
Have no test data, so this needs testing.

* Updated YamlTest to include data as optional param for processors
2018-02-06 22:28:14 +00:00
Tony Murray
226f420608 device: Airos added CPU, GPS, and Temp health sensors (#8203)
For devices that support it
https://community.ubnt.com/t5/airMAX-Frequently-Asked/airMAX-Where-can-I-find-the-latest-MIB-for-airOS/ta-p/1294379
2018-02-06 21:27:23 +00:00
Tony Murray
5141fc4872 refactor: Share code between all mysql based authorizers (#8174)
* Share code between all mysql based authorizers
I plan to update the mysql password encryption and this will allow the code to be changed in a single location.
It also reduces a lot of duplication.

* Fix tests, I suspect reauthenticate will work for these...
Do not allow password updates for several authorizers
2018-02-06 21:20:34 +00:00
Tony Murray
f706d0ab41 fix: Fixed cbgp peers data on some devices (#8208)
* IOSXR snmprec data (unsorted)

* iosxr sorted

* Fix cbgp peers data on some devices

* fix formatting
2018-02-06 21:06:44 +00:00
Andrew Steen
a2acccd531 Add QFX5110-48S4Q to rewrites.php (#8201) 2018-02-06 14:06:12 -06:00
Tony Murray
e940f0b39c
Add some wireless test data (#8210)
saf lumina, saf phoenix, airos, airos-af, unifi uap
2018-02-06 14:05:46 -06:00
Tony Murray
9b9fb121ab
Remove dependencies from the repository, update install docs (#6920)
After vendor is un-indexed restore the contents so things keep working.
2018-02-06 08:17:44 -06:00
Tony Murray
fa1d9e9238
Fix incorrect processor unique index query (#8202) 2018-02-05 23:02:57 -06:00
Tony Murray
3ddeb1dbc5 fix: Switch detached head for daily updates (#8194)
If HEAD is detached, switch to master.
(Detached head is ok for the release version)
2018-02-05 21:20:06 +00:00
bergroth
b834d2d4b4 fix: Removed div by 100. Junos SNMP value was not 0.01 resolution (#8198) 2018-02-05 20:48:32 +00:00
Tony Murray
11147d3bbf
Major Processors rewrite (#8066)
* Extract DiscoveryItem and move some things to better places.
Extract model class
Fix up model construction.  I have problem with construction...
Makeshift model working.  Switch constructor to factory.  discover() and create()
Support legacy discovery.
Remove uneeded custom pollers
Remove netonix custom detection as we try ucd on all os now.
Add a few yaml procs.  Fix a couple things.
More processor discovery conversions
Move Calix e7 to standard hrProcessorLoad, but it doesn't fully implement the HR-MIB, move things around to make it work.
Add a few yaml procs.  Fix a couple things. Correct some stupid mib stuff.
Move more, drop php 5.3
Add netscaler which uses string indexes.  Port fiberhome to yaml and use skip_values
More conversions.  BroadcomProcessorUsage Trait
Serveriron and Ironware share some mibs.  Create a common abstract os for them.
Add yaml support for mib specification in each data entry
Make legacy discover_processor() set 0 for hrDeviceIndex

Untangle Dell switch OS processors

Use use shared OS for groups if they don't have a specific group.
fix silly mib mistake

Make index optional

Move HR and UCD to Traits and out of Processor.

* forgot to update the fortiswitch index

* Make sgos and avaya-ers match the old index.

* fix comware test data

* fix merge errors

* fix dsm and remove pointless empty modules

* file not found exception is in the wrong place.

* Updated processor development docs
2018-02-05 07:39:13 -06:00
Richard Mayhew
d9e366398e Mikrotik MIB - 5-JAN-2018 (#8195)
* New event log severity model

* Revert "New event log severity model"

This reverts commit 0783527af8.

* Updated Mikrotik MIB - 5-JAN-2018
2018-02-05 08:26:36 +00:00
FTBZ
eb72a5394e feature: Copy all email alerts to default contact (#8178)
* feature: Copy all email alerts to default contact

* change in SQL and add check as requested

* Rename 233.sql to 234.sql

* tab removing
2018-02-05 08:25:24 +00:00
Tony Murray
dc2883f59d Use composer wrapper in pre-commit (#8192) 2018-02-03 22:40:15 +00:00
Tony Murray
609676a9f8
Move InfluxDB to vendor and update dependencies. (#8184)
Update all dependencies

Updated event-dispatcher too far
2018-02-02 22:57:31 -06:00
Tony Murray
41f0689d58 fix: Fixes FusionSwitch portname in description for sensors (#8188)
* fix FusionSwitch portname

* Add tests
2018-02-02 16:00:35 +00:00