Commit Graph

5721 Commits

Author SHA1 Message Date
Jozef Rebjak
bb9ebb4e45
Added support for Peplink Pepwave & FusionHub (#11432)
* Added support for Peplink Pepwave & FusionHub

* Travis fixes

* Another Travis fixes

* Travis fixed

* Travis fixes

* Update peplink.svg

* Resolved reviews

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-04-19 10:28:21 -05:00
SourceDoctor
3474b4493d
Global search MAC Address (#11434)
* Global Settings - Alert Default Settings

* Revert "Global Settings - Alert Default Settings"

This reverts commit a1af62b146.

* global search - mac address

* remove unnecessary command
2020-04-19 00:33:17 -05:00
Mikkel Mondrup Kristensen
212c9aad95
Add support for Advantech switches (#11415)
* Add Advantech logo.

Taken from https://commons.wikimedia.org/wiki/File:Advantech_logo.svg
with minor edits (removed width and height).

* Add Advantech MIB files.

* Add Advantech definitions.

* Add suppor for version and hardware polling.

* Add advantech snmp recording.

* Add sensors for SFP ports

Each SFP will have temperature, voltage, tx bias, Tx/Rx power.
Also update snmp recording to include new data.

* Rename ADVANTECH-EKI-PRONEER-MIB_1_01.mib to ADVANTECH-EKI-PRONEER-MIB

* Rename advantech-common-mib.mib to ADVANTECH-COMMON-MIB

* Update advantech.yaml

* Update advantech.svg

* Create advantech.json

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-04-14 11:05:22 +02:00
Tony Murray
4958aaf1a6
Update Meraki logos (#11406)
Had an issue with the SVG...
2020-04-10 18:05:27 +02:00
PipoCanaja
3fb46710a6
Added support for RIEDO data concentrator (#11237)
* Riedo E3Meter DataConcentrator

* Riedo E3Meter DataConcentrator Image

* logos

* name

* Freq + Power

* Power

* Tests + standalone riedo mib

* tests
2020-04-10 13:24:49 +02:00
PipoCanaja
07d4da21ca
Add support for Ascom IPBS (#11308)
* ascom support

* tests

* typo

* Correct missing 'mpls' in misc/os_schema.json

* remove mpls for now

* tests

* Update ascom.svg

* Don't disable already disabled modules

As I usually state, not much gain in disabling these here.   Would be better to optimize the modules if you think they take too long on devices that don't have support.

* refactor polling code

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-04-10 13:21:25 +02:00
Tony Murray
961beb0e8b
Fix Panos icon (#11404)
viewbox instead of width/height
2020-04-09 23:09:35 +02:00
dneto82
01350a29ab
Update on OS only logo. (#11399)
* Update on OS only logo.

Update for Palo Alto 2020 OS only logo.

* Update panos.svg

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-04-09 11:33:02 +02:00
dneto82
1bd86c4e58
Updated panos.svg (#11398)
* Updated panos.svg

Update for Palo Alto Networks 2020 Logo.

* Update panos.svg

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-04-09 10:49:56 +02:00
Tony Murray
204a79418c
Fix global search by IP (#11395) 2020-04-08 22:46:15 -05:00
Tony Murray
217969e140
Update php-codesniffer (#11368)
* PHPCS 3.5+

* Fix newly detected style issues
2020-04-03 08:41:24 -05:00
Jozef Rebjak
ad58cc6db9
Added Support for AirConsole Servers (#11302) 2020-04-01 22:51:36 -05:00
Martin22
df95b771b2
Device: Added IMCO POWER (#11296)
* New device IMCO POWER

* Add other outputower sensors

* Fix description sensor battery voltage

* Fix num_oid load sensors

* Index added

* Added test data

* Fix svg file

* Change image svg to png

* Fix yaml and change image size

* Fix permission .gitignore file

* Fix permission

* Fix state
2020-04-01 20:22:14 +02:00
Jellyfrog
daf451cef7
Convert overview page to laravel (#10757)
* Convert overview page to laravel

* Convert more pages

* More fixes
2020-03-31 23:03:02 -05:00
cjwbath
a70313f3ee
Sonus became Ribbon Communications - update logos (#11339)
* Sonus became Ribbon Communications - update logos

* minify

* Update ribbon.svg

* Create ribbon.svg

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-03-24 11:00:33 -05:00
SourceDoctor
d3bc503cf6
Global Settings - force_ip_to_sysname, force_hostname_to_sysname (#11335)
* Global Settings - force_ip_to_sysname, force_hostname_to_sysname

* add manifest.json

* Update mix-manifest.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-03-24 16:02:48 +01:00
Tony Murray
425ac28bab
Fix js warning in settings, update js deps (#11324) 2020-03-22 19:30:58 +01:00
dGs-
7020de0b7f
replace AES by SHA for authalgo (#11314) 2020-03-20 17:30:16 +01:00
PipoCanaja
46282bcefe
French translation update (#11293)
* FR Translation

* FR Translation

* FR Translation

* FR Translation

* FR Translation

* FR Translation

* revert manifest

* update mix-manifest.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-03-19 20:27:18 -05:00
Tony Murray
df16de9d2f
Refactor Datastores to allow future improvements. OpenTSDB Tags. (#11283)
* Datastores to object oriented code, using the Laravel IoC container

Change instantiation
better DI
move OpenTSDB

Small re-orgs

remove unused stuff

Fix graphs and other scripts

Use DI for all except rrd

fix up connection error handling

Add tests, fix up a "few" things
Add Config::forget()

Style fixes

Don't reference legacy code

remove accidental code paste

Add datastores phpunit groups

some tests

* rebase fixes

* some test fixes

* shorter tests

* shorter tests

* Don't except when rrdtool can't be started.

* restore tests

* fix rrd tests

* fix iterable change upstream

* fix isValidDataset

* fix invalid data bug

* fix mysql incorrect ds

* fix issue with data that is too long

* use regular data_update()

* Use log facade

* OpenTSDB mis-ordered arguments fix

* Making a singleton with different options makes different singletons.  Just use the global config settings to disable datastores.

* only filter tags for datastores that won't it don't modify the tags permanently

* Update copyrights to include original authors.

* Stats for all datastores

* Fix mysql sends different rrd / other ds names

* fix snmp last stats not initialized
remove unused function

* remove unused function and move single use function closer to its use

* InfluxDB does not need to update null or U values.
Skip write if all fields are empty

* Fix smart value checks

* fix style issues

* Make sure port data is stored the same way as before for Graphite and OpenTSDB
Add ifIndex tag to all to be compatible

* Missed rrdtool_tune() call

* Test update WIP

* OpenTSDB now includes tags

* fix style
2020-03-16 09:17:58 -05:00
Mathieu Poussin
1cf7e206e5
Geographical map: Show network links between locations (#11269)
* Geographical map: Show links between locations

* Fix manifest after merge conflict
2020-03-13 11:22:32 +01:00
Tony Murray
fd8de950be
Wrong translation key for sorting (#11281) 2020-03-12 20:39:25 -05:00
Tony Murray
121fbe7edd
Add datastore settings to the Web UI (#11266) 2020-03-12 11:46:41 -05:00
Tony Murray
82eddfcf27
Sort Settings by translated names (#11280)
If browser language is different from the language set in LibreNMS, it might sort slightly incorrectly.
2020-03-12 11:39:06 -05:00
SourceDoctor
7dd688927a
Global Search - IPv4, IPv6 (#11257)
* Global Search - IPv4, IPv6

* reduce DB load

* travis fix
2020-03-11 14:54:11 +01:00
Tony Murray
7fe895bd08
Revert "Refactor datastores to classes (#9179)" (#11273)
This reverts commit e5dad7a64e.
2020-03-11 07:52:52 -05:00
Tony Murray
e5dad7a64e
Refactor datastores to classes (#9179)
* Datastores to object oriented code, using the Laravel IoC container

Change instantiation
better DI
move OpenTSDB

Small re-orgs

remove unused stuff

Fix graphs and other scripts

Use DI for all except rrd

fix up connection error handling

Add tests, fix up a "few" things
Add Config::forget()

Style fixes

Don't reference legacy code

remove accidental code paste

Add datastores phpunit groups

some tests

* rebase fixes

* some test fixes

* shorter tests

* shorter tests

* Don't except when rrdtool can't be started.

* restore tests

* fix rrd tests

* fix iterable change upstream

* fix isValidDataset

* fix invalid data bug

* fix mysql incorrect ds

* fix issue with data that is too long

* use regular data_update()

* Use log facade

* OpenTSDB mis-ordered arguments fix

* Making a singleton with different options makes different singletons.  Just use the global config settings to disable datastores.

* only filter tags for datastores that won't it don't modify the tags permanently

* Update copyrights to include original authors.

* Stats for all datastores

* Fix mysql sends different rrd / other ds names

* fix snmp last stats not initialized
remove unused function

* remove unused function and move single use function closer to its use

* InfluxDB does not need to update null or U values.
Skip write if all fields are empty

* Fix smart value checks

* fix style issues
2020-03-10 19:08:00 -05:00
Jay Shepherd
34924f6ad3
Add device support for SilverPeak (#11270)
* Add Silver Peak VXOA Device

Rename MIB Files
Update to use snmp_get_multi

* Add test data for Silverpeak
2020-03-10 22:48:20 +01:00
Kevin Zink
3567386c48
Add Device: Innovaphone (#11225)
* Add Device: Innovaphone

* fix typo

* Move mib to subdir and Refresh testdata

* Fix typo

* Fix discovery index

* force test re-run

* Cleanup

* image

* Update innovaphone.yaml

* Update innovaphone.json

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-03-06 23:33:31 +01:00
PipoCanaja
6a3f321b69
Added support for Inteno devices (#11229)
* MIB

* fixMib

* sensors

* sensors

* cleaning

* tests
2020-03-03 09:45:22 +01:00
Jason Cheng
af4055aecb
Update settings.php translation string (#10928)
* Update settings.php translation string

* Update mix-manifest.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-02-26 14:37:29 -06:00
Tony Murray
79f2debbdb
Move storage module settings (#11206)
Actually verify regex setting
2020-02-26 17:53:33 +01:00
Tony Murray
f2346caef7
Update JS deps (#11203)
* Update JS deps

* language hash update
2020-02-26 08:39:35 -06:00
SourceDoctor
0baeab567b
Added Mountpoint ignore options to global settings (#11197)
* Global Settings - Mountpoint ignore options

* enhance AppServiceProvider with regex
2020-02-26 13:01:49 +00:00
PipoCanaja
3742e4f7ac
Add basic support for PICA8 devices (#11185)
* mib

* os_support

* polling

* tests

* codeclimate
2020-02-26 01:28:56 +01:00
Jellyfrog
564d43693b
Remove gitignored files (#11202) 2020-02-25 22:46:13 +01:00
SourceDoctor
c56b6fb9f8
Global Settings - Uptime Warning (#11198) 2020-02-25 08:06:02 -06:00
SourceDoctor
40cac40aec
Option to default open Location Map on Device View (#11167)
* Option to default open Location Map on Device View

* String set fixes

* adding lanugage files
2020-02-22 00:09:51 +01:00
Tony Murray
5b6a1f7889
Restore lang gitignore (#11173) 2020-02-21 07:53:31 -06:00
SourceDoctor
75955fad66
move lang files to right position (#11171) 2020-02-21 00:36:45 +01:00
SourceDoctor
9b70ce91db
Sync js language files for global Settings (#11170) 2020-02-20 23:20:19 +01:00
Kevin Krumm
c136e1ad6c
Revert "Global search by IP address (#11165)" (#11166)
This reverts commit c273ab28af.
2020-02-19 19:35:55 +01:00
Joseph Tingiris
c273ab28af
Global search by IP address (#11165)
* device search by (valid) ip address

* add device_ip & not empty conditions to search results

* updated comments

* spaces after commas

* search ip and overwrite_ip for name based searches, too
2020-02-19 05:51:39 -06:00
SourceDoctor
0bc2ea1f45
Configurable Alert Rule default settings (#11152)
* configurable Alert Rule default settings

* codeclimate fix#
2020-02-15 16:18:02 +01:00
Joseph Tingiris
f02dbc5794
Fix android-chrome icons (#11136)
* All of the images in html/images/manifest.json 404 because the src specified was relative
* The resulting URL was /images/images/android-chrome-192x192.png (which does not exist). The files are in /images/.
* This fix adds a leading / to the src members, which effectively uses the correct path (e.g. /images/android-chrome-192x192.png)
* For reference, when using web manifests for icons, https://developer.mozilla.org/en-US/docs/Web/Manifest/icons
  "If src is a relative URL, the base URL will be the URL of the manifest."
* librenmsv1.blade.php uses asset('images/manifest.json'); many other blades use it.  This fix applies to all of these views.

/opt/librenms/resources/views/about/index.blade.php
/opt/librenms/resources/views/auth/2fa.blade.php
/opt/librenms/resources/views/auth/deny-demo.blade.php
/opt/librenms/resources/views/auth/external-auth-failed.blade.php
/opt/librenms/resources/views/auth/login.blade.php
/opt/librenms/resources/views/auth/public-status.blade.php
/opt/librenms/resources/views/device-group/create.blade.php
/opt/librenms/resources/views/device-group/edit.blade.php
/opt/librenms/resources/views/device-group/index.blade.php
/opt/librenms/resources/views/layouts/legacy_page.blade.php
/opt/librenms/resources/views/locations.blade.php
/opt/librenms/resources/views/settings/index.blade.php
/opt/librenms/resources/views/user/authlog.blade.php
/opt/librenms/resources/views/user/create.blade.php
/opt/librenms/resources/views/user/edit.blade.php
/opt/librenms/resources/views/user/index.blade.php
/opt/librenms/resources/views/user/preferences.blade.php
/opt/librenms/resources/views/vue.blade.php
/opt/librenms/resources/views/map/device-dependency.blade.php
2020-02-12 21:19:12 +01:00
PipoCanaja
385f5e0bc1 device: Support for Teldat routers (#11118)
* teldat base

* HW and version

* tests

* typo

* typo
2020-02-09 15:28:15 +01:00
Kevin Zink
f8ce4df0f8
Add Janitza Power Sensors (#11110)
* Add Janitza Power Sensors

* Fix testdata from previos bug
2020-02-07 09:11:46 +01:00
Kevin Zink
ee72fa4d3c
Added WUT Humidity and Temperature Sensors (#11053)
* Added WUT 57606,57613,57720

* Added os wut-*

* fixed MIB Names and try to generalize wut

* more general sysObjectID mapping, and mib directory

* Delete WUT-57606-MIB

* Delete WUT-57613-MIB

* Delete WUT-57720-MIB

* Rename wut-57613.snmprec to wut_57613.snmprec

* Rename wut-57720.snmprec to wut_57720.snmprec

* Rename wut-57606.snmprec to wut_57606.snmprec

* Delete wut-57606.yaml

* Delete wut-57720.yaml

* Delete wut-57613.yaml

* Delete wut-57606.yaml

* Delete wut-57720.yaml

* Delete wut-57613.yaml

* Update wut.yaml

* Try to correct the Temperature part

This should work for temperature, according to MIB. Pressure and Humidity are not described in this mibfile, so we cannot poll them.

* change wut.yaml

* Add and fix wut_57720

* after ./scripts/save-test-data.php ?

* Add test data

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-02-01 23:29:05 +01:00
Anael Mobilia
b44875fba6 Add ifotec definition file (#11005)
* Add ifotec definition file
* Add snmprec file for ifotec
* Ifotec - generate test data
* Ifotec - Add svg logo
* Ifotec - Add svg os
* Delete ifotec.svg
* Delete ifotec.svg
* Use png files
* Add png logo
* Add png os file for ifotec
2020-01-13 23:23:39 +01:00
arrmo
65106e20e7 Add support for TRENDnet switch (#11007)
* Add support for TRENDnet switch, TEG-S80ES in particular

* Add trendnet.snmprec

* Add test data (JSON)

* Remove mib comment from yaml

* Update copyright info

* Use sysDescr value for Hardware
2020-01-09 16:57:45 -06:00
Joseph Tingiris
13c6309e81 ajax_search.php: Fix & amend broken $num_ports query on line 83 (#11013)
* When searching from the web interface, librenms produces
production.ERROR SQLSTATE: Column not found: 1054 Unknown column
'$perms_sql' in 'where clause'

* Above feeds resources/views/layouts/menu.blade.php which, because
of the failed query, has no device_ports as a value. Thus the search
results do not produce the expected 'name ... device with X port(s)'

* As well, the previous query did not exclude deleted and ignored
ports. Therefore, the value for X port(s) was incorrect and did not
correspond to the device's ports screen.
2020-01-08 17:54:23 -06:00
SourceDoctor
08c23b9ca5 Discovery Module and Poller Module configuration via Global Settings Web GUI (#10854)
* discovery module and poller module configurable via global settings gui

* fix descriptions

* moved Poller Module to Poller Category
2020-01-07 18:12:46 +01:00
Jellyfrog
b361710148
Device group based access (#10568)
* Device group based access

* Use Permissions class to resolve permissions

Also give port access based on device access

* Convert more pages to use Permissions class

* shorten config setting name
use Eloquent relationships in several places
alphabetize config_definitions.json

* Change Models and Permissions

* Clean up ajax_search LIMIT sql

* Convert more pages to use Permissions class

Co-authored-by: Tony Murray <murraytony@gmail.com>
2019-12-30 12:11:26 +01:00
hartred
5189a0787b Support new os GWD (#10978)
* gwd logo

* gwd definitions

* definitions discovery

* discovery mempools

* polling mempools

* polling os

* gwd mibs

* gwd tests data

* gwd tests snmpsim

* CR at end of file

* Update gwd.inc.php

* Update gwd.inc.php

* Update gwd.inc.php

* Update gwd.inc.php

* Update gwd.inc.php

* Update gwd.snmprec

* Update gwd.json
2019-12-28 12:40:54 +01:00
hartred
2953358992 Support new os C-DATA (#10975)
* cdata-logo

* cdata definitions

* cdata definitions discovery

* cdata discovery mempools

* cdata polling mempools

* cdata polling os

* cdata mibs

* cdata tests json

* cdata tests snmpsim

* cdata polling os

* cdata mempools fix

* cdata mempools fix2

* delete IANAifType-MIB

* Delete IF-MIB

* Delete SNMPv2-MIB

* Delete SNMPv2-SMI

* Delete BRIDGE-MIB
2019-12-25 17:22:25 +01:00
Mathieu Poussin
15e29a49b1 Use sysName instead of hostname on AJAX search and new billing form (#10951)
* Fix hostname vs sysName on AJAX search and new billing form
* Replace sysName by format_hostname()
2019-12-20 21:21:31 +01:00
PipoCanaja
5015a49b6d
Ixia ANUE basic support (#10946)
* ANUE
* tests
2019-12-20 14:51:38 +01:00
hartred
cde3e1d8a0 Added support for os SNR (#10704)
* Support new os SNR
mib file

* snr logo
* snr includes_definitions
* includes_definitions_discovery
* snr includes_discovery_mempools
* includes_polling_mempools
* includes_polling_os
* update snr.yaml
* snr.snmprec
* Create snr.json
* Update snr.snmprec
* Update snr.json
* Update snr.yaml
2019-12-18 22:59:42 +01:00
PipoCanaja
b2d90dc8fa
Fixed icon for bgp search (#10931) 2019-12-11 17:58:58 +01:00
PipoCanaja
f4fbdfad80
Added iBoot PDU (dataprobe) support (#10898)
* os-recognition iboot
* tests
* MIB
* skip_values
2019-12-03 20:37:11 +01:00
Tony Murray
04b65d3202
Add minimum password length setting (#10867) 2019-11-25 04:11:18 +00:00
PipoCanaja
404b3b71ba Graphical alerts update (text/icon alignment) (#10856)
* Update menu.blade.php

* Swap username and notification icon

* Hide count-notifications when zero

* slight tidy

* Accidental key press

* Decrease space to tie them together better

* Update styles.css version
2019-11-25 04:09:40 +00:00
PipoCanaja
3d56d763e4 Added basic Ubiquoss PON support (#10828)
* mibs

* definition

* definition

* logo

* serial

* device bits

* tests

* codeclimate
2019-11-25 02:55:12 +00:00
louis-oui
ef562f607e LDAP Add option to authenticate user independtly of OU (#10873)
* Add option to authenticate user independtly of OU
* Set config option in webui
* Compatibility with bind username option
* ran ./lnms translation:generate
* update doc
2019-11-22 19:29:47 +01:00
PipoCanaja
e5de966f17
Corrected blue CSS in settings menu (#10840)
* corrected blue CSS in settings menu
* continued
2019-11-19 00:31:54 +01:00
PipoCanaja
bf181b9dc2
Added support for routing table collection in discovery (#10182)
* Clean broken VRF lite code
* Change DB table for route discovery
* Add VRF simple support
* add port_id to db and discovery
* static-fy the translation arrays
* sort and search cleaning
* Sorting refactor and validation
* formatItem shortened
* Handle ifIndex==0 meaning no next hop defined (MPLS)
* Sync all create/updates
* purge in daily
* remove old route table
* get rid of inetCidrRouteNextHop_device_id
* fix wonky column orders
* add route snmprec
* fix sorting by interface
* Move to new config
* rename to route the new table
* Properly display ipv6 compressed addresses
* Translation before merge ./lnms translation:generate
* Update manifest
2019-11-17 16:30:43 +01:00
Tony Murray
3aa594bed1
Fix some IE issues with settings page (#10819) 2019-11-17 05:14:16 +00:00
Lucas Dousse
149d5f3da6 Translation correction (#10821)
* Translation correction

* Update mix-manifest.json
2019-11-15 16:44:51 +00:00
Jason Cheng
163386e964 Update zh-TW Translate settings strings (#10816)
* Update zh-TW Translate settings strings

* Update zh-TW.json

* Update zh-TW.json

* Update zh-TW.json

* Update mix-manifest.json
2019-11-14 18:38:04 +00:00
dlesel
c95661b482 Added AIX file system, prefer over hrstorage for AIX (#10588)
* Added AIX file system, ignore hrstorage for AIX

* Add AIX Test Data

* Add AIX Test Data 2

* remove includes/polling/os/aix.inc.php

* Update AIX Test Data

* Corect spaces in code

* Update code to correctly disable hrStorage for AIX

* Update aix.json

* Update aix.svg

* Delete aix.svg

* Update aix.svg

* Delete aix.svg
2019-11-13 06:01:45 +00:00
Tony Murray
8bc0af7b85
Translation generation command (#10794)
additional translatable strings: Filter Settings in settings page and Global Search on all pages.
remove duplicate fr key
also, language file signatures were wrong as I had a testing version of the vue generator
2019-11-09 13:01:41 +00:00
Tony Murray
90bd2275cf
Unbundle javascript language files (#10788)
* Unbundle javascript language files
automatically generated for each install

* update docs

* update laravel-vue-i18n-generator
a newer (unreleased) verison is need for English fallback to work
2019-11-08 15:18:41 +00:00
Tony Murray
552d487ae1
Fix email_auto_tls toggle (#10785)
* Fix email_auto_tls toggle

* Clean up smtp settings a bit
user/pw depend on auth setting
2019-11-08 06:27:40 +00:00
PipoCanaja
145e345b5d Added support for Nexans Switches (#10772)
* Nexans basic

Nexans basic

Nexans basic

* tests

minify

clean

* multiget + header
2019-11-06 21:31:06 +00:00
PipoCanaja
437616c32b French translation + JS files (#10763) 2019-11-06 09:10:56 +01:00
SourceDoctor
784b95a311 German translation for settings page (#10764)
* german language support for redesigned settings area

* language fixes

* fix key port_purge -> ports_purge

* compiled js files for german language
2019-11-05 20:01:31 +01:00
Tony Murray
55750cebb4
Fix settings search (#10777)
restore dynamic menu building... data manipulation in js is yuck
2019-11-04 21:16:06 -06:00
SourceDoctor
d90b0212b9 settings.php 'ports_purge' key fix (#10774)
* fix key port_purge -> ports_purge

* add missing compiled js language files
2019-11-04 01:01:08 +01:00
Tony Murray
9b4406ec9e
Add Graylog settings (#10740)
* Add Graylog settings
Fix order of settings
Don't clobber text input when validation fails
fixed spacing for setting reset/undo buttons and help

* fix style
2019-10-26 00:29:47 +00:00
Tony Murray
e6423852ef
Remove $_SESSION usage, except install (#10745)
* Remove $_SESSION usage, except install
Fixes issue with device debug capture
Removes secure_cookies setting, use the .env variable SESSION_SECURE_COOKIE instead.  Reminder secure cookies requires cookies are transported over https, if everything is already transported via https, the setting won't make a difference.

* Fix availability map controls
2019-10-26 00:29:12 +00:00
Jellyfrog
debec7032a Use Mix built in cache busting (#10733) 2019-10-22 10:01:40 +01:00
Justin Hayes
48d4273267 Add support for Illustra network cameras (#10721)
* Create illustra.yaml

* Create illustra.inc.php

* Add illustra.png

* Add illustra.png

* Create illustra.snmprec

* Create illustra.json
2019-10-21 00:52:35 +00:00
Tony Murray
1d7347dd62
Validate config schema, add types to all (#10723)
* Vaildate config_definitions.json schema

* finish adding types and other cleanups
2019-10-20 23:08:40 +00:00
Tony Murray
f9b704cb29
Add distributed polling config settings (#10711)
Show error on cli when type or validation is not set
2019-10-17 18:32:27 +00:00
Tony Murray
699aa8a042
Consolidate configuration settings and implement dynamic webui settings (#9809)
* initial db/defaults dump

* numeric values

* Remove $config['time']

* Use config_definitions.json

* try setting definition as a complete array

* a little more

* fix format

* WIP converting dynamic setting pages

* rewriting the webui

* remove legacy and add translations

* finish email section

* improve navigation
update js a bit

* Import the remaining existing settings

* Update backend still some wip
migration

* fix config loading (db not overriding defaults)

* some cleanup

* more array collapsing

* update settings

* Settings search

* add purge settings to ui, order groups and sections

* collapse more arrays

* Auth definitions WIP

* remove needless slash escapes

* add warning to json

* moving settings from defaults.inc

* remove slow_statistics

* Move rrdtool settings to the poller section

* Use translations more consistently

* removing more settings from defaults.inc.php

* show setting name in tooltip

* allow help text to be shown on mobile

* disable settings that are set in config.php

* Implement undo and reset to default.

* Vue.js functional

* Vue.js WIP

* Implement tabs component

* accordion WIP

* lodash ver update

* two items

* Accordion somewhat working

* hash navigation

* Refine Accordion

* Fix up tab styling a bit

* Cleaner tab selected property
Hide html while loading

* spinner?

* Icon support
property for accordion to active

* WIP

* Tabs/Sections from ajax

* Setting Component skeletons

* Dynamic Component resolution

* Basic functionality

* toggle class

* Refactor components

* translate tabs and accordions

* simple array attempt

* improve readonly tooltip

* array styling

* array value editing

* organize snmp info

* Handle initial tab/section in url

* Use Laravel to parse tab/section, dump old

* Draggable array entries

* v-tooltip, for clickable (and touch) help tooltips
disable draggable

* Navigation WIP

* Navigation WIP

* groups computed

* filter settings

* fix event reference

* vue.js i18n initial

* missing description = just setting name

* en fallback

* tidy up the language support and js generation

* persist value to db

* fix issue with 0

* Delete settings from DB instead of setting them to default

* ldap-groups
fixup style

* Default dashboard selection

* fix array of options instead of object

* allow custom validation for settings

* translate options in SettingSelect

* SNMP v3 WIP

* fix setting arrays

* Split persist out of set

* Hook up events for SNMP v3 Auth
correct Config::persist behaviour with arrays

* dependent settings (primitive for now)
actually update the settings values in the LibrenmsSettings component

* more complex "when" behaviour

* remove un-needed seeder

* add poller_modules.cisco-qfp

* remove en.json (disable warning)

* don't set default for log_dir or log_file, otherwise it won't be processed correctly

* Fix module order
add some missing settings

* more config corrections

* correct graphs
correct loading values set to null (although it should have no difference)
remove project_name_version

* Add nfsen settings.  Docs are very confusing, so might have flubbed something
remove option for array definition of select option as numeric indexes messes it up

* Correct more upstream config differences

* Config cleanup after a bunch of merges.

* Fixes

* add version tags to js/css files
remove old js

* Print out full settings list read-only

* Add http_proxy setting
fix indents in config_definitions.json

* repeaters default is 0 (aka 20)

* cleanups

* rewrite the dynamic config docs

* add language docs

* Don't show snmp v3 auth add/remove if disabled by config.php
2019-10-16 21:22:05 +00:00
pedjaj
a19a18492e Added support for RedLion N-Tron 714FX6 industrial switch (#10617)
* Add files via upload

add icon for REDLION

* Add files via upload

Add Device REDLION ntron 716FX6

* Add files via upload

* add device redlion ntron 714FX6

* Delete ntron.yaml

* Add nev device RedLion N-Tron 714FX6

* Update ntron.yaml

* additional snmp data redlion ntron714fx6

* Rename ntron714fx6.mib to NTRON714FX6-MIB

* Create ntron.json

* Update os_schema.json
2019-10-10 14:09:45 +02:00
Jellyfrog
8b329a18a1 Optimize logo sizes (#10656)
by reducing colors
2019-10-07 21:27:23 +00:00
Yisroel Tech
a1ed45eb46 Fix LibreNMS Logo SVG missing i sometimes (#10632)
* Update librenms_logo_light.svg

Corrected an issue with the "i" being invisible in certain scenarios on certain (Chromium version 77) browsers, see https://community.librenms.org/t/librenms-svg-logo-issue-in-some-zooms/9640/4. The issue seems to be that "i" was a separate clip-path from the "L bre".

* Update librenms_logo_blue.svg

Corrected an issue with the "i" being invisible in certain scenarios on certain (Chromium version 77) browsers, see https://community.librenms.org/t/librenms-svg-logo-issue-in-some-zooms/9640/4. The issue seems to be that "i" was a separate clip-path from the "L bre".

* Update librenms_logo_mono.svg

Corrected an issue with the "i" being invisible in certain scenarios on certain (Chromium version 77) browsers, see https://community.librenms.org/t/librenms-svg-logo-issue-in-some-zooms/9640/4. The issue seems to be that "i" was a separate clip-path from the "L bre".

* Update librenms_logo_dark.svg

Corrected an issue with the "i" being invisible in certain scenarios on certain (Chromium version 77) browsers, see https://community.librenms.org/t/librenms-svg-logo-issue-in-some-zooms/9640/4. The issue seems to be that "i" was a separate clip-path from the "L bre".
2019-09-27 16:56:03 +00:00
fbourqui
c73e9cbcfb add AIX detection running std snmpd or net-snmp (#10569)
* update IBM mibs
* add AIX detection running std snmpd or net-snmp
* simplifying  complex logical expression, codeclim.
2019-09-02 22:08:05 +02:00
Orsiris de Jong
ccf2d9a5c5 Use PHP sys_temp_dir by default (#10428)
* Fix installer not generating tmp directory directive

This fixes a usecase when open_basedir is set, not allowing php to write to default temp directory /tmp.
In that case, temp directory is set by `php_admin_value[sys_temp_dir] = /var/www/site/tmp`
Without setting config['temp_dir'] in generated config.php, LibreNMS will use /tmp regardless of what is set in fpm configuration.

* is_writeable and is_writable are both valid, but let's stay consistent

* Make $config['temp_dir'] non static

* Remove $config['temp_dir'] from standard config.php

* Make sys_get_temp_dir() fallback to '/tmp'

* Update defaults.inc.php

* Update install.php

* Update Config.php

* Update defaults.inc.php

* Update defaults.inc.php
2019-08-22 18:08:42 +01:00
NonStop Networks
b8c96abc35 Added support for Exagrid devices (#10496)
* Added new device - Exagrid
* Update and Rename exagridos.inc.php Match Version and HW
2019-08-07 20:05:59 +02:00
Tony Murray
e99f421511
Remove legacy auth usage of $_SESSION (#10491)
* Remove auth use of $_SESSION

Will break plugins that depend on $_SESSION, Weathermap was already fixed.
Port them to use Auth::check()/Auth::user()/Auth:id()

* revert accidental replacement
2019-08-05 14:16:05 -05:00
Tony Murray
89fae9be1d
Move API routing to Laravel (#10457)
* Add more api helper functions
to centralize code more

* Enable cors

* Initial Legacy route in Laravel

* Force api v0 responses to json
Add a couple more routes

* more paths, pretty print the json response
pass parameters to the api function

* devices basic functions

* Port generic graph function
check permissions function accepts callback to avoid lots of if statements

* move vlans

* links

* graphs

* fdb

* health

* wireless

* port graphs

* ip functions
split em up

* port_stack

* components

* compoment add/edit/delete

* get_device_groups

* port stats

* port graphs

* get_devices_by_group

* port_groups

* api_get_graph

* show_endpoints

* get_bill

* get_bill_graph

* get_bill_graphdata

* get_bill_history

* get_bill_history_graph

* remaining bill functions

* list_alerts

* ack/unmute alert

* Some cleanups

* Some cleanups

* list_alert_rules

* alert rule add/edit/delete

* inventory

* list_cbgp

* vrf

* list_ipsec

* list_fdb

* list_links (fix both usages)

* list_locations

* list_locations

* list_vlans

* list_ip_addresses

* list_arp

* list_ip_networks

* cleanup

* services

* list_logs and fix authlog.......

* cleanup

* cleanup 2

* remove slim

* don't load schema more than once

* basic test

* fix style

* downgrade laravel-cors to a version that supports PHP 7.1
2019-07-29 16:32:37 -05:00
CirnoT
cafcf417fa Fix NetAgent II battery voltage (#10427)
* Fix NetAgent II battery voltage

* Add new test data and new icon for NetAgent
2019-07-22 23:34:31 -05:00
Tony Murray
cfdd23d2c2
Fix roku svg (#10453) 2019-07-18 11:11:01 -05:00
arrmo
6986711a72 Add svg image for Roku (#10448) 2019-07-18 08:33:38 -05:00
Tony Murray
3ead462549
Enable CSRF protection (#10447)
* Enable CSRF protection

* fix style issues
2019-07-17 07:20:26 -05:00
jozefrebjak
20b3211e7e Added Support for Unitrends Backup (#10411) 2019-07-05 08:49:03 +02:00
SniperVegeta
f419419830 Added panasonic ns1000 os (#10390)
* Add files via upload

panasonic png

* Create panasonic-ns.yaml

Panasonic NS

* Create panasonic-ns.inc.php

Panasonic NS Series

* Create KX-NS.mib

Panasonic NS mib file

* Add files via upload

Add snmprec

* Add files via upload

add panasonic-ns data

* Update panasonic-ns.inc.php

Space?
2019-07-02 00:08:04 +02:00
Tony Murray
e8e6ed5142
Fix broken updates (#10380) 2019-06-26 08:49:04 -05:00
Tony Murray
f3ba8947f7
Use Config helper (#10339)
remove usage of global variable
2019-06-23 00:29:12 -05:00
ckforum
342acf50f1 Add 2 css class graph - minigraph for bg color and other (#10318)
* Add 2 class for graph / mini graph (styles.css)

Add 2 class for graph / mini graph (styles.css) 
for changing bg color and more (mini graph port / device) (graph port / general)

* Update styles.css

Add 2 class for graph / mini graph (styles.css) 
for changing bg color and more (mini graph port / device) (graph port / general)

* Add class CSS for mini graph 

Add class CSS for mini graph

* Update graph.inc.php

Change graph.inc.php, add css class / overlib

* restore original bg #f5f5f5 .graph-all-common

restore original bg #f5f5f5 .graph-all-common

* Update ports.inc.php

correct extra \

* Update graph.inc.php

* Update ports.inc.php

* Update ports.inc.php

* Update graph.inc.php

* Comment line 88 URL.php, because description of location enlarge too much overlib devices's title

* Update Url.php

* Update Url.php

Line 88 -> re ident to pass travis...
2019-06-21 22:44:47 -05:00
Tony Murray
1a60c44eb0
Device groups rewrite (#10346)
* Device Groups rewrite
Updated web ui
Static or dynamic groups allowed
Alert rule query builder
Translation support
Permissions support

* cleanup, make relationship save, and validate it

* builder WIP

* rules builder and rules saving/loading

* Parse query builder to Laravel Fluent query

* Upgrade existing groups when editing.
Properly update only dynamic groups when polling.

* remove unused old code
Update API and other places to use Eloquent

* debug output in poller restored

* Fix up some things
creating static
improved validation
fix js error on creation
Fix static groups in polling

* hide pattern for static group

* Implement authorization
Use in the menu too

* update schema

* fix rollback

* Don't abort on invalid queries

* fixes to query builder

* add test data, looks like macros aren't handled (omitted them because groups don't use them generally)

* Add macro support for QueryBuilderFluentParser

* add test for macro that accepts value

* More space in forms
Retain rules when converted to static
no duplicate names allowed

* Better error feedback
Update related devices on save

* Add button icon

* format

* update docs

* fix tests

* Fix some QueryBuilderFluentParser issues with OR
updated/more test data

* Show device groups runtime
fix querybuilder.json format

* Store table joins in the rules to minimize polling time
Update group joins in daily.sh (and when they are saved)

* Update daily.php

* Add units to time
2019-06-19 16:01:53 -05:00
Tony Murray
c2b09b8f80
Revert "Rewritten device groups (including static) (#10295)" (#10340)
This reverts commit cfc51d51f5.
2019-06-16 21:52:57 -05:00
Tony Murray
cfc51d51f5
Rewritten device groups (including static) (#10295)
* Device Groups rewrite
Updated web ui
Static or dynamic groups allowed
Alert rule query builder
Translation support
Permissions support

* cleanup, make relationship save, and validate it

* builder WIP

* rules builder and rules saving/loading

* Parse query builder to Laravel Fluent query

* Upgrade existing groups when editing.
Properly update only dynamic groups when polling.

* remove unused old code
Update API and other places to use Eloquent

* debug output in poller restored

* Fix up some things
creating static
improved validation
fix js error on creation
Fix static groups in polling

* hide pattern for static group

* Implement authorization
Use in the menu too

* update schema

* fix rollback

* Don't abort on invalid queries

* fixes to query builder

* add test data, looks like macros aren't handled (omitted them because groups don't use them generally)

* Add macro support for QueryBuilderFluentParser

* add test for macro that accepts value

* More space in forms
Retain rules when converted to static
no duplicate names allowed

* Better error feedback
Update related devices on save

* Add button icon

* format

* update docs

* fix tests
2019-06-16 08:27:22 -05:00
Janyk Steenbeek
2ee843d86b Check correct path for config in the installer (#10333)
* Check ../config.php for older installations in installer

For older installations, install.php is still available for installations that have the configuration file in the parent directory. This PR fixes this.

* Replace relative directory with absolute path

* Update install.php

* Update install.php
2019-06-15 18:04:18 -05:00
TheGreatDoc
8c69d7dac8 Support for Fibernet XMUX4+ (#10331)
* Support for Fibernet XMUX4+

* Update fibernet.svg

remove length and width, add viewbox
2019-06-11 22:16:10 -05:00
ckforum
cafe057001 Add overlib link css class for changing background color - Update Url.php (#10300)
* Update Url.php

Ad css class to onmouserover event and overlib, easyer to change color of background ex.: for a dark theme vs bg color hardcoded

* Update styles.css

* Update Url.php

* Update librenmsv1.blade.php
2019-06-03 19:40:56 -05:00
Tony Murray
54e4d0910a
Sanitize report name in pdf.php (#10270)
Authentication users could include arbitrary file.
2019-05-29 09:39:17 -05:00
Arnoud Vermeer
f14b90a1ef Icotera support for 6400 and 6800 series. (#9755)
* Icotera support for 6400 and 6800 series

* Fix broken test data
2019-05-29 09:37:10 -05:00
Spencer Butler
83522c6fef Added support for East iStars UPS (os: istars) (#10041)
* istars - Added support for East iStars UPS (os: istars)

* typo

* remove duplicate image

* refactored to use rfc1628

* added json

* update is_array to isset for bad rfc1628 implementation

* Update istars.inc.php

* revert rfc1628 changes

* update test data + PR 10240 patch

* update OIDs
2019-05-21 11:03:28 -05:00
Tony Murray
e9ae08d5db
Use Laravel url helpers to improve functionality without dns name (#10227)
* Use Laravel url helpers to improve functionality without dns name
Not exhaustive...

* Fix Url generated urls

* Bump js version
2019-05-20 11:47:34 -05:00
corsoblaster
b58527cc84 Replace Cyberoam with Sophos (icon and logo) (#10213)
* Replace Cyberoam with Sophos (icon and logo)

Cyberoam has been completely incorporated by Sophos since many years.
I'll try to replace everything related to Cyberoam, staring from logo and icon.

* Updated Sophos logo

Updated Sophos logo

* Added Sophos logo

Added Sophos logo
2019-05-14 08:11:15 -05:00
Tony Murray
9ede688d13
Replace legacy menu with new Blade generated one (#10173)
* Remove legacy index php file

* fix routing page missing data

* WIP

* fix $navbar global usage

* remove global use of $locations

* ObjectCache again...

* move vars.inc.php to init.php for legacy ajax

* navbar is more local than I thought before.  Fix it.

* Fix some sensors tables escaping

* restore custom menu functionality, but with blade
and docs

* cleanup

* tidy menu @if checks

* Fix up the rest of the global variables and remove print-menubar.php

* consolidate some counting in the menu

* filter out empty custom port descr types

* Fix up custom port groups

* Fix up apps menu

* Fix services menu when all are ok

* Limit cached data to the user it is for

* Fix style

* A few clean ups

* fix pseudowire bug
2019-05-10 11:02:39 -05:00
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
Tony Murray
f4a33c1a34
Prevent credentials from being leaked in backtrace in some instances (#9817)
* Prevent credentials from being leak in backtrace in some instances
Particularly before the user is authenticated

* fix test
2019-03-05 00:24:14 -06:00
KodApa85
7e71d2e11f webui: Allow admins to add/remove/create sticky notifications (#9865)
* webui:
Allow admins to add/remove/create sticky notifications
Added auth error to ajax form - notifications
	$status is already 'error'

* fix: code style

* remove demo check
2019-03-04 21:34:58 -06:00
Nick Hilliard
09caced7ef Add support for Infinera-Coriant Groove (#9843)
* Add support for Infinera Groove
2019-03-04 17:31:53 +01:00
Tony Murray
e677d4b63e
Fix incorrect icon sometimes (#9887)
* Fix icon finding
Also fix os suggest not loading all OS.

* Fix os that would have missing icon under the new code (and one under the old code)

* forgot icon
2019-03-01 23:06:01 -06:00
Vitali Kari
49f01970c5 add support for sagemcom (#9835)
* adds support for sagemcom

* requested changes

* delete unused variable

* logos

* modules fine tuning

* code style

* Update sagemcom.svg

* Update sagemcom.svg
2019-03-01 08:08:04 -06:00
Anthony Ruhier
914531a28f Fix display of rrdtool command using the existing dedicated function (#9846)
Sanitize the command before printing it
2019-02-21 22:27:15 +01:00
PipoCanaja
e2f835ad9d
FDB table with history capabilities (#9804)
* Migration script and data feeding

* Adding the columns in the GUI

* build schema

* update FDB test data

* Use of timestamps()

* ignore created_at and updated_at in tests, and regenerate test impacted

* daily.sh does the cleaning

* space cleaning codeclimate

* Use carbon instead of str-val

* handle when $fdb_entry->updated_at and created at are null

* handle when $fdb_entry->updated_at and created at are null (force travis rerun)

* Doc update

* Doc update
2019-02-21 13:23:01 +01:00
jozefrebjak
2eac72d34b Added support for Protelevision DVB-T Transmitter (#9648)
* Create protelevision-t1.yaml

* Create protelevision-t1.yaml

* Create PT-MIB

* Create PT3080-MIB

* Add files via upload

* Create protelevision-t1.snmprec

* Create protelevision-t1.json

* Create protelevision-t1.inc.php

* Add files via upload

* Delete protelevision.png

* added indexes to dbm sensors

* Update protelevision-t1.yaml

* added On Air TS Bitrate

* Update protelevision-t1.yaml

* added more sensors

* Update ProtelevisionT1.php

* Update protelevision-t1.yaml

* Update protelevision-t1.yaml

* Update protelevision-t1.yaml

* Update protelevision-t1.snmprec

* Update protelevision-t1.json

* Update protelevision-t1.yaml

* Update protelevision-t1.snmprec

* Update protelevision-t1.json

* added more sensors and grouping of state sensors

* Add files via upload

* Update protelevision-t1.json

* Update protelevision-t1.json

* Update protelevision-t1.snmprec

* Update protelevision-t1.yaml

* Update protelevision-t1.json

* Update protelevision-t1.json
2019-02-19 00:39:16 -06:00
Tony Murray
0a56fc4694
Restore alert template converter for a while longer (#9845) 2019-02-19 00:33:51 -06:00
SirMaple
a41f1d9608 Updating pfSense Logo (#9828)
* Update pfsense.json

* Delete pfsense.svg

* Add files via upload

* Create pfsense.svg

* Create pfsense.svg

* Update pfsense.json

* Delete pfsense.png
2019-02-15 08:44:51 -06:00
TheGreatDoc
6ea0e72d73 MAIPU MyPowerOS: CPU, Memory, expanded detection (#9825)
* New OS: MAIPU MyPowerOS

* fix file permissions
2019-02-15 08:02:06 -06:00
Neil Lathwood
5d74839139 Removed legacy transports and templates code (#9646)
* Removed legacy transports and templates code

* Add notification

* abstract LnmsCommand

* Only issue alerts "legacy" alerts to mail for default contacts, etc.

* Prevent no contacts error when default contact is not specified, or there are no contacts for other reasons.

* remove eval \o/

* Update notifications.rss
2019-02-15 07:58:59 -06:00
Tony Murray
d23ab06938
Add osmc icon (#9810) 2019-02-13 09:31:35 -06:00
Tony Murray
e18f4522d5
Update to Laravel 5.7 (PHP 7.3 support) (#9800)
* Move assets to 5.7 location

* Add 5.7 SVGs

* add cache data dir

* update QUEUE_DRIVER -> QUEUE_CONNECTION

* Update trusted proxy config

* update composer.json

* 5.5 command loading

* @php and @endphp can't be inline

* Laravel 5.6 logging, Nice!

* Update blade directives

* improved redirects

* remove unneeded service providers

* Improved debugbar loading

* no need to emulate renderable exceptions anymore

* merge updated 5.7 files (WIP)

* Enable CSRF

* database_path() call causes issue in init.php

* fix old testcase name

* generic phpunit 7 fixes

* add missed file_get_contents
Keep migrations table content

* fix duplicate key

* Drop old php versions from travis-ci

* remove hhvm

* fix code climate message

* remove use of deprecated function assertInternalType

* Disable CSRF, we'll enable it separately.
All forms need to be updated to work.

* Update document references
2019-02-12 17:45:04 -06:00
PipoCanaja
7e18a07088 FS.COM (Fiberstore) 'GBN' and 'SWITCH' devices support (#9734)
* Basic Support for Fiberstore devices

* Basic Support for Fiberstore devices

* mib files

* sysObjectID added

* mibs added

* MIB corrections + CPU discovery + version and SN

* CodeClimate + mempools

* CodeClimate + mempools

* mempools

* 5800

* testdata

* 5800

* tests

* mempools for 5800

* CodeClimate

* CodeClimate

* Cleaning and comments

* Tests for 5800

* CodeClimate

* Update Fs.php

* init processors[]

* optimized logo

* optimized logo

* optimized logo

* optimized logo

* split FS devices

* split FS devices

* split FS devices - tests

* split FS devices - class

* split FS devices - class

* split FS devices - tests

* removing un-necessry condition

* text and comments
2019-02-10 17:31:25 -06:00
PipoCanaja
c7c1ca2c5a Support for DKT Comega FTTx devices (#9732)
* DKT Comega device support

* DKT Comega device support

* DKT Comega device support

* DKT Comega device support
2019-02-07 14:58:56 -06:00
PipoCanaja
ccd9973695 Added support for EDS 1Wire devices (#9740)
* EDS support

* EDS support

* EDS support

* EDS support

* EDS support (tests)

* EDS support

* EDS support

* Adding DS18B20 sensors

* Adding DS18B20 sensors

* read tables separatly in precache instead
2019-02-07 14:16:15 -06:00
mbwall
6d55524484 Ignore disabled ports in minigraph view (#9737) 2019-02-07 13:24:20 -06:00
Tony Murray
d2af4bef42
Fix alert log api (#9792)
* Fix alert log api
Can't send binary data through http :D

* fix whitespace
2019-02-07 09:42:16 -06:00
Tony Murray
e5eb32c4a9
Migration fixes (#9776)
* add migrate:install to lnms, but hide it

* Fix Database migration validation

* remove extra import

* Don't allow install to continue if db build fails
2019-02-05 16:50:51 -06:00
ipptac
db488807e4 New Device: Bluecat Networks appliances (#9758)
* New Device: Bluecat Networks appliances
2019-02-03 07:57:20 +01:00
TheGreatDoc
75927c8389 Revert "Mattermost Alert Transport (#9711)"
This reverts commit 09d500812e.
2019-01-26 07:59:04 +01:00
George Pantazis
09d500812e Mattermost Alert Transport (#9711)
* fixed #5659
Added support for Mattermost notifications.

George Pantazis <gpant@eservices-greece.com>

* Update Mattermost.php

* changes as requested by @murrant
2019-01-25 15:35:42 -06:00
Tony Murray
590c488d74
Rewrite devices page backend (and a little frontend) (#9726)
* Implement devices table data output

* initial filter

* Add select2 filters
improve table header layout
improve init_select2

* bump versions to be safe

* add group filtering
fix location sorting

* allow filter value morphing

* add missing state filter

* remove the old devices endpoint
2019-01-25 15:31:33 -06:00
Tony Murray
ce6fae8dd1
Rewrite netcmd and ripe whois tools (#9724)
* Port RIPE whois to Laravel

* remove netcmd.php and port to laravel.
Escape CLI and set it to stream output live.

* fix browser buffer bust on a few browsers.
2019-01-25 15:30:58 -06:00
Tony Murray
59aa4f36e9
Handle db update errors better in the installer (#9701)
* Handle db update errors better in the installer

* show retry button on error, add exclamation point so we don't do that accidentally
2019-01-23 23:42:19 -06:00
PipoCanaja
9d843650b7 Improve display for 802.1X NAC (#9706)
* improve graphical display for 802.1X NAC

* AuthZ col width

* function for humanize_duration

* function for humanize_duration

* Update legacy_index.php

* Update librenmsv1.blade.php
2019-01-22 17:10:54 -06:00
Tony Murray
28ea91d7d9
Eltek Valere more sensors (#9713)
* Eltek Valere more sensors

* Fix runtime, temperature and format runtime

* remove "runtime" sensor

* Don't need the pre-cache

* Parenthesis

* match previous indentation
2019-01-22 17:06:27 -06:00
Tony Murray
8ce81f2423
Update database schema display (#9708)
* Update database schema display

* handle missing migrations table
2019-01-22 06:47:07 -06:00
Tony Murray
45e0e5e19a
count sensor cleanups (#9707) 2019-01-20 13:37:08 -06:00
Martijn Schmidt
e0da083f5c New OS: Schleifenbauer, entity-physical improvements, various html page fixes (#9471)
* Fix some comment and documentation typos.

* Fix various entphysical page display issues.

- Resolve flickering during loading (missing liClosed for nested items).
- Clicking a sensor actually takes you to the matching graph now.

* Add a few nicecase() calls to clean up html page display.

* Create discover_entity_physical() function

- Add discover_entity_physical() function into includes/discovery/functions.inc.php
- This allows for an easy implementation of OS-specific entity-physical discovery.
- Update includes/discovery/entity-physical/entity-physical.inc.php to use the new function.

* Add power_consumed and power_factor sensors.

* Two new icons, make more entPhysical data visible.

* Pre-commit fix: blank line found at end of control structure.

* Add Schleifenbauer OS support.

* Now really fix the comment typo.

* Fix parsing mistakes.

* Add a generic count sensor.

* Make the Schleifenbauer discovery use count instead of state sensors.

* Don't place count sensor at the top, add sane limits for Schleifenbauer

* Finetuning the rrd_options, changing Schleifenbauer sensor names.

* Update schleifenbauer.svg

* optimize logo too

* add test data

* fix sensor value display (spaces break it)

* update entPhysicalIndex
2019-01-20 12:24:11 -06:00
Tony Murray
ef41c9fd7d
Refactor FDB Tables to Laravel (#9669)
* Refactor FDB Tables to Laravel
Hopefully much better performance with large tables.
Better dns resolution (limit to 4 IPs tried per MAC)

* update style

* de-duplicate IPs

* fixed column width for mac and vlan

* Make DNS column visibility control whether or not we send the dns query.
Hide that column by default.
2019-01-20 08:43:36 -06:00
Vitali Kari
b55938f031 Nokia vrf bgp (#9622)
* first commit

* clean code

* add snmpsim data for bgp

* renumber sql patch

* clear public ip

* update  misc/db_schema.yaml

* add test data and renumber sql-schema

* sql-schema

* sql-schema

* Update module_tables.yaml

* Update module_tables.yaml

* Update timos.json

* Update timos.snmprec

* Rename 281.sql to 282.sql

* update test data

* db migration

* Update 2019_01_16_195644_add_vrf_id_and_bgpLocalAs.php

* update db schema

* Update 2019_01_16_195644_add_vrf_id_and_bgpLocalAs.php

* Update 2019_01_16_195644_add_vrf_id_and_bgpLocalAs.php

* Update db_schema.yaml

* update schema
2019-01-19 11:44:32 -06:00
PipoCanaja
b4741442c5 VRP: implement NAC data polling (#9592)
* VRP: implement NAC data polling

* typo

* Add and alter ports_nac table

* SQL syntax

* Adding fields in the GUI

* Set the default column visibility depending on OS

* ./build-schema.php

* Add vlan support for Cisco and correct ios_nac testdata

* Improve date display and column ordering

* Add vrp_nac testdata

* revert old DB schema

* db in migration syntax

* build-schema

* moment.duration() for time_left and time_elapsed
2019-01-19 11:26:52 -06:00
djamp42
73fa616739 Cable Modem Graphs for TopVision OS (#9679)
* Add custom CM Graphs for TopVision OS

* updated test data
2019-01-17 11:43:18 -06:00
Paul Heinrichs
ebe2ecf524 Laravel migrations (#8868)
* Add migrations and seeds

* Fix spacing validation issues

* Fix linting

* Update tabs to spaces

* Update daily and install process

* Make build-base.php use the new migrations if empty or at dbschema 1000.
Seed 1000 into the database.
Temp fix for the route table index length (this table basically isn't used...)

* Fix typo in seed.
Hard code legacy schema checks to version 1000 (999 would have worked as is)

* Port association table no longer exists

* Make database validate again

* DB schema, remove as many DB::statement as possible

* update migrations
add librenms cli entry point (artisan)
update validate to check laravel migrations

* remove statements from users migration

* Fix up daily.sh and the 1000 migration

* Update migrations to current state
Take advantage of environment variables to set DB credentials.

* Fix style issues

* Update schema

* fix test db collation

* Fix migration table definition

* update db migrations

* Update migrations

* Update stats callback.  Just count the total migrations applied.

* Update 1000.sql.

* update migrations

* remove the graph type seeder, it is no longer needed

* update docs

* fix whitespace

* remove extra schema

* update tests

* fix sort

* add message

* dbSchema should actually be 1000

* add character set to db create

* Fix some artisan issues

* Update schema
2019-01-14 06:44:23 -06:00