Commit Graph

5670 Commits

Author SHA1 Message Date
martinberg
131f5c7e87
Option to filter Oxidized groups (#12966)
* Add support for Liebert humidity setpoint and UPS powerfactor

* Option to ignore groups so they are not sent to Oxidized

* Revert "Add support for Liebert humidity setpoint and UPS powerfactor"

This reverts commit c338528aba.

* Updated docs

* Added ignore_groups option

* Added descriptions and updated translations

* Update settings.php

* Fixed typo

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-06-28 12:53:16 +02:00
Ray Lyon
03aa453893
Added logo svg for Rocky Linux (#12977)
* rocky linux logo

* removed width and height attributes

* added back viewbox
2021-06-23 15:48:17 +02:00
Kevin Zink
7ef302a8b9
EUROstor RAID (#12969)
* Proware Controller in EuroStore RAID Chassis

* fix style

* Eurostore

* renew testdata

* Fix style
2021-06-21 10:13:40 +02:00
Tony Murray
50dd6c1685
Fix ldap/ad group webui settings (#12967)
* Fix LDAP groups UI WIP

* fix up ldap and ad group settings

* production compiled assets
2021-06-19 16:16:02 +02:00
Kevin Zink
3a0c164a5d
Add Barco Clickshare (#12927)
* Add Barco Clickshare

* correct type

* and testdata
2021-05-31 00:15:24 +02:00
mathieu-artic
15da7faef1
Add support for oneaccess router (#12850)
* add oneaccess

* add oneaccess mibs

* modify cpu description

* delete .mib

* add cpu name

* update tests files

* add text
2021-05-29 09:08:28 -05:00
Jellyfrog
556c265934
Initial HAProxy ALOHA support (#12889) 2021-05-25 15:33:18 +02:00
Tony Murray
d10a3db5e0
Fix server stats widget (#12864)
* Fix Server Stats Widget
JustGage update
removed title feature, so re-implement

* Improve layout
2021-05-12 12:39:49 -05:00
Tony Murray
2d752925b0
Oxidized improvements (#12773)
* Oxidized API cleanup
Import more settings to the UI
use lnms config:set

* validate os and type exist

* map settings WIP

* oops

* editing working.  Needed to add new property to pass update state to child

* implement deleting and handle text overflow a little better.

* Update app/Models/Device.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>

* Update app/Models/Device.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>

* revert change

* fix style

* add return

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-05-11 08:08:59 -05:00
Tony Murray
3d62be5003
Jquery upgrade (#12802)
* WIP js upgrades

* trying 3.0

* Event handler changes

* fix alert rule collection loading

* blur fix

* jQuery 3.5
homescreen no warnings

* actually 3.6 include js

* Update bootstrap to 3.4.1

* missed file

* Update and test install process

* cleanup

* attempt to version js files that were updated.
2021-05-11 08:08:06 -05:00
PipoCanaja
fff8b8e832
Collect OUI Database and do OUI lookups (#12842)
* first draft

refresh time

refresh time

* return codes

style

style

* presentation

* Exception details

more

fix

fix

* add tooltips

fixes for dns display

* create WebUI config option

languages

* refresh data every 7 to 11 days, keep it 15 days max

* 'Ports' and 'Port' ARP table

* Stp page support

style

style

* fix dnsname column finding when vendor is added/removed

fix dnsname column finding when vendor is added/removed

* nac vendor column

nac

* filter fields to reduce size of AJAX reply

filter fields to reduce size of AJAX reply

* fix typo on dns column detection

* default enabled
2021-05-10 14:56:48 -05:00
Denny Friebe
1734e3af04
Fix allow_unauth_graphs (#12829) 2021-05-04 07:49:16 -05:00
Tony Murray
61c89794e4
Remove debug globals (#12811)
* Remove $debug global
and $vdebug global
makes these variables more accessible and protects from collisions.

* the on boot set sends application as the first parameter, just handle that

* Relocate other debug related functions

* Log debug to stdout

* Wrong output

* remove stupid constants

* Fix lint and style issues
2021-04-29 22:42:18 -05:00
SourceDoctor
ea75435990
Filter Ports out by Interface Type (#12590)
* Filter Ports +out by Interface Type

* style fix

* style fix

* .

* .

* change code

* .

* move filter to main filter function

* reduce to bad_iftype in settings
2021-04-27 21:43:52 +02:00
Torch
62c5759bd1
Device: Added basic support for BKtel Optical Amplifier (#12754)
* added basic bktel oa support

* renamed bktel mibs
2021-04-16 13:50:56 +02:00
Tony Murray
c36fe928e4
Fix mini graphs (#12738)
Remove the polyfill, if the noscript tag isn't removed it breaks graphs
Ajax tables should not use lazy loading anyway...
2021-04-12 02:40:47 +02:00
Tony Murray
04407db85b
Use native browser lazy load (#12720)
* Use native browser lazy load
Polyfill for older

* Add intersection polyfill for IE and older browsers
2021-04-08 11:24:53 +02:00
Tony Murray
500f50e867
JS fixes for IE (#12721)
* JS fixes for IE
just a couple that caused the issues with graph loading and widget settings not saving.

* remove polyfill

* Update ports.inc.php
2021-04-08 11:22:44 +02:00
Tony Murray
1c379dcd05
Remove legacy function calls (#12651)
* massive inlines

* fix style and wtf

* remove rrdtool.inc.php include

* fix CommonFunctions namespace issues

* looking for missing class space, fix undefined class issues

* style fixes
2021-03-29 00:25:30 +02:00
Lucas Dousse
afa43a1b7f
add css text center (#12608) 2021-03-11 18:26:06 +01:00
SourceDoctor
09d30ce75d
Global Settings - SNMP Timeout (#12579)
* Global Settings - SNMP Timeout

* omit snmp timeout if it is 1

* add retries field

* filter default retries too

* fix typo

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-03-04 20:18:26 -06:00
SourceDoctor
75a0a5e374
Use DNS Location Record for Location (#12409)
* Use DNS Location Record for Location

* .

* .

* .

* grammar fix

* dns class

* code changes

* composer update

* add missing composer.lock update

* reposition Location record parsing

* composer update

* default yes ; change lookup order

* merge master

* .

* move Location Record Parser to Model Level

* .

* fix location record code

* Location precedence with tests
Setting from UI disables all lookups

* update composer.lock and mix-manifest.json

* Style fixes

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-02-22 11:17:40 +01:00
Jellyfrog
20b4215204
Swich links to https (#12511)
* Switch librenms links to https

* Convert librenms links in comments

* Switch gnu.org url to https

* switch php urls to https
2021-02-09 00:29:04 +01:00
balkandude
8fbe1b3153
Network map fix Css/img (#12498)
* Add files via upload

* Delete zoomExtends.png

* Delete upArrow.png

* Delete minus.png

* Delete plus.png

* Delete leftArrow.png

* Delete downArrow.png

* Delete rightArrow.png

* Create test

* Add files via upload

* Create readme

* Add files via upload

* Delete downArrow.png

* Delete leftArrow.png

* Delete minus.png

* Delete plus.png

* Delete rightArrow.png

* Delete test

* Delete upArrow.png

* Delete zoomExtends.png

* Update readme
2021-02-06 18:23:26 +01:00
Negatifff
d201c4ff9d
Socomecpdu support (#12481)
* socomecpdu-support

* added newline

* test added

* test added

* test json added

* fix1

* fix2
2021-02-02 16:12:41 +01:00
Martin
41570c46b1
Support new lines in login_message again (#12469)
Introducing own css class for customization

Fix problem introduced with #12460
2021-01-27 08:06:20 -06:00
Tony Murray
60d3d54554
Fix poller frequency display bug and warn (#12466)
* Fix poller frequency display bug and warn
Make warning more obvious.

* Fix typo
2021-01-27 10:10:23 +01:00
Martin
cdd93b695c
Remove unnecessary horizontal scroll bars in allert widgets (#12464)
* Remove unneeded horizontal scroll bars for alert widgets

Fixes #12454

* Always hide horizontal scroll bars

Width of the widget_body class is set to 100% which hides them anyway, with correct css margins
2021-01-25 23:07:11 -06:00
Martin
4779e7952e
Improving readability of tables on dark theme dashboards (#12455)
lighten the text color in widget tables such as syslog or eventlog (it was black on grey)
2021-01-23 00:18:06 -06:00
Tony Murray
b07b81021a
Output image for graphs with no data (#11865)
* Output image for graphs with no data

* add font

* Fix graph error, try to detect rrd missing

* centralize graph_error
use it for graph_text_and_exit()

* Add SVG, right now the text can get a little big...

* fix style
2021-01-13 07:23:47 -06:00
Jellyfrog
d7e88bf311
Upgrade to Laravel Mix 6 (#12421) 2021-01-06 20:18:43 -06:00
paulierco
575ce64f77
New device OS: McafeeWebGateway (#12418)
* McafeeWebGateway OS

* Update mcafeewebgateway.svg

* Update mcafeewebgateway.svg

* Update mcafeewebgateway.svg

* Update mcafeewebgateway.svg

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-01-04 23:04:07 +01:00
Ramūnas Lukoševičius
10eb7b2c2a
Added support for Motorola and Thomson DOCSIS Cable Modems. (#12386)
* Added tv_signal sensor class (TV signal in dBmV (decibells to millivolt))

* Added OS motorola-cm (Motorolla DOCSIS Cable Modem)

* Added OS thomson-cm (Thomson DOCSIS Cable Modem)
2021-01-03 22:35:32 +01:00
Lucas Dousse
2a98076515
New Logo Opnsense (#12359)
* Logo with best definition

* png to svg

* png to svg

* Change filename in test

* minify svg
2020-11-26 21:49:02 +01:00
Tony Murray
e8d0548317
Fix nets can't add (#12341)
fix some issues with the list settings widget
update Laravel Mix
update javascript
2020-11-24 19:47:40 -06:00
Tony Murray
1afc6abdb5
Always return json for api requests (#12335)
even if the client does not properly request it
2020-11-22 03:21:47 +01:00
SourceDoctor
b162eff5ee
Global Settings - Discovery Network (#12334)
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-21 18:08:46 +01:00
SourceDoctor
fde1b1ab43
Interface description types to Global Settings (#12291)
* Special Ports to Global Settings

* customers_descr type fix

* add mix-manifests - move section

* move to webui :P

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-21 11:44:33 +01:00
SourceDoctor
1652d17ff4
Global setting ad domain (#12326)
* API - Allow Hostname on add/remove Device Dependencies

* style fix

* change device placeholder name

* Global Settings - add missing Active Directory Domain field

* cleanup

* cleanup

* cleanup

* cleanup
2020-11-18 20:18:11 -06:00
Keryazmi
565dc3c445
New device support named BTI SA-800 Series (#12264)
* New device named bti800

Support new device for model bti sa-805

* Create bti800.yaml

* Create BTI8xx-MIB

* Create BTI8xx-SYSTEM-MIB

* Create BTI8xx-TC-MIB

* Create BTI8xx-INTERFACE-MIB

* Create BTI8xx-SFP-MIB

* Create bti800.inc.php

* Create bti800.inc.php

* Create bti800.inc.php

* Create bti800.snmprec

* Create bti800.json

* OS icon for BTI800

* Update bti800.yaml

Change mib folder name 'bti800' to 'bti'.

* Rename mibs/bti800/BTI8xx-MIB to mibs/bti/BTI8xx-MIB

Change directory named 'bti800' to 'bti'.

* Rename mibs/bti800/BTI8xx-INTERFACE-MIB to mibs/bti/BTI8xx-INTERFACE-MIB

Change directory named from 'bti800' to 'bti'

* Rename mibs/bti800/BTI8xx-SFP-MIB to mibs/bti/BTI8xx-SFP-MIB

Change directory named 'bti800' to 'bti'.

* Rename mibs/bti800/BTI8xx-SYSTEM-MIB to mibs/bti/BTI8xx-SYSTEM-MIB

Change directory named 'bti800' to 'bti'.

* Rename mibs/bti800/BTI8xx-TC-MIB to mibs/bti/BTI8xx-TC-MIB

Change directory named 'bti800' to 'bti'.

* Create bti800.yaml

Added system temperature and transceiver temperature for BTI800.

* Delete bti800.inc.php

System temperature and transceiver temperature code convert to yaml file locate at /includes/definitions/discovery/bti800.yaml

* Update bti800.inc.php

Add missing code at line 20.

* Update bti800.inc.php

* Update bti800.yaml

* Delete bti.svg

* Replace bti.svg to bti.png

* Update bti800.snmprec

* Update bti800.json

* Update bti800.json

* Update bti800.json

* Update bti800.yaml

* Update bti800.inc.php

Change call for each current Tx and Rx value by using pre_cache() function instead using snmp_get() function for each value to return.
2020-11-11 23:13:55 +01:00
Jellyfrog
b7676e4cc8
Update to Composer 2 (#12263)
* Update to Composer 2

No need to roll our own checks anymore since this is now built in.
Also limit the update check to once a week.

* update

* Make Composer wrapper report correct exit code

* Update composer_wrapper.php

* re-enable extension check

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-09 00:28:07 -06:00
Jellyfrog
50c8033099
Laravel 8.x Shift (#12235)
* Shift HTTP kernel and middleware

* Shift service providers

* Shift console routes

* Shift to class based factories

* Namespace seeders

* Shift PSR-4 autoloading

* Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them. This allows you to review the commit
diff for once for customizations when you are done Shifting.

Moving forward, consider using ENV variables or create a separate
config file to allow the core config files to remain as default
as possible.

* Shift Laravel dependencies

* Shift return type of base TestCase methods

From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html

* Shift cleanup

* console routes

* composer update

* factories

* phpunit

* bootstrap pagination

* model factory

* wip

* Apply fixes from StyleCI (#12236)

* wip

* Apply fixes from StyleCI (#12238)

* wip

* wip

* wip

* wip

* Apply fixes from StyleCI (#12240)

* wip

* Apply fixes from StyleCI (#12242)

* composer update

* Bump to PHP 7.3 minimum

Co-authored-by: Laravel Shift <shift@laravelshift.com>
2020-11-03 10:18:31 -06:00
p4k8
134b110e71
Change of default .pdf font (#12278)
* Changed default font in .pdf creation for wider charset support

Change of TCPDF font from helvetica to freeserif to support wider variety of languages by default (including cyrillic). Causes "??????" to render correctly.

* Update pdf.php
2020-11-01 01:24:35 +01:00
corsoblaster
c47ddd2c17
Basic support for Sophos xg v18 (#12251)
* Basic support for Sophos XG V18

Basic support for Sophos XG V18 - new version of SFOS with update snmp structure

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Update includes/definitions/discovery/sophos-xg.yaml

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>

* Update sophos-xg.yaml

* Moved file into subfolder

* Update sophos-xg.yaml

* Fix mib folder (deleted)

* Fix snmp file references

* Update sophos-xg.yaml

* Fix folder by vendor

* Update sophos-xg.yaml

* Update sophos-xg.yaml

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-10-25 12:51:01 +01:00
Jellyfrog
b765b250c9
Fix sql query syntax error (#12248) 2020-10-21 23:15:47 +02:00
Guilherme Poletto
3753e70476
initial support for DC-UPS-48 from algcom (#12209)
* initial support for DC-UPS-48 from algom

* add snmprec files for algcom-dc-ups

* rename MIB and create json test unit

* new MIB name, recapture test snmprec and json

* remove unnecessary OS matching
2020-10-17 22:05:02 +02:00
Gil Obradors
676b7ac50d
Add supermicro SVG logo (#12222)
* Create supermicro.svg

* Update supermicro.svg

* fix format

* Update supermicro.svg

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-10-16 14:42:44 +02:00
TheGreatDoc
6357db57f7
New device: Rohde & Schwarz Sx800 (#12181)
* New device R&S

* Fix SVGs

* Fix SVG (v2)

* Fix definition
2020-10-03 18:31:44 +02:00
Heath Barnhart
8a921567ba
New OS: Ekinops (#12088)
* Initial push

* renamed mib files

* adding eki mgmt event trap handler

* Adding handler to config/snmptraps.php

* added slot state monitoring

* Ekinops port discovery script

* cleanup

* moved ifDescr change from discovery to poller

* simplified port poller script

* fixed poller array

* add Mgnt2TrapNMSEvent handler

* Adding nms alarm handler

* adding handler to snmptrap.php

* Updated handler names, exapanded event traphandler

* beginning tests and cleanup

* adding snmpsim data

* making tests

* finished trap tests

* fixed ekinops.yaml

* style and lint pass

* new snmpsim data and fixes

* adding correct snmpsim

* fixed test data

* Update ekinops.svg

* Update ekinops.svg

* Update ekinops.yaml

* new os discovery method

* remove unneeded precache line

* removing unneccesary pre-cache script

* styleci fixes

* few more style fixes

* trim whitespace in discovery

* remove unused mibs

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-09-23 18:23:57 +02:00
PipoCanaja
0e0e80c827
More eventlogs for snmptraps (#12112)
* Allow detailed trap display and inform user about snmptrapd misconfiguration

* Documentation update

* Documentation update

* Documentation update

* CodeClimate

* CodeClimate

* ChangeRequest PR

* Fix tests

* config_definitions

translation

doc

* styleci

* lnms translation generate after npm-install
2020-09-23 17:00:02 +02:00