Commit Graph

5651 Commits

Author SHA1 Message Date
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
Jellyfrog
29f45ca352
Apply fixes from StyleCI (#12124) 2020-09-21 15:59:34 +02:00
Jellyfrog
0d56bbd946
Apply fixes from StyleCI (#12123) 2020-09-21 15:51:53 +02:00
Jellyfrog
77c531527c
Apply fixes from StyleCI (#12117)
* Apply fixes from StyleCI

* Disable style check
2020-09-21 14:54:51 +02:00
O Palivan
d559ffa9e6
Device support for Tait Infra93 (#12093)
* Mibs

* Tait MIB support for TB9300

* initial

* typo

* Tait suite

* Tait suite

* Tests

* spaces

* yaml def syntax

* spaces

* RSSI name

* spaces
2020-09-17 13:24:53 +02:00
crcro
9026cf54c0
osnexus quantastor initial support (#12045)
* initial release

* fixes

* cleaner snmprec

* updates

* remove legacy files

* updates

* fixes

* cleanup

* test data ... again

* yaml fix and test data

* tests update

* polling temps

* remove unused line

* - hdd temp fix

- tests without ignores
2020-09-13 23:45:11 +02:00
PipoCanaja
73278551f0
Adding icon for XCP-ng xen distribution (#12090)
Recognised correctly by distro.
2020-09-12 22:20:37 +02:00
craig-nokia
b91080df0b
Add basic support for GE Galaxy Pulsar Plus Controllers (#12087)
* Add basic support for GE Galaxy Pulsar Plus Controllers

* Add basic support for GE Galaxy Pulsar Plus Controllers

* Add basic support for GE Galaxy Pulsar Plus Controllers

* Modified Gepulsar.php
2020-09-12 01:34:32 +02:00
Russell Morris
891a42e1c6
OS: Add support for Beagleboard (#12060)
Includes Beagleboard and Beaglebone boards. Also includes temperature
sensor support (also in test data)
2020-09-10 00:06:11 +02:00
Dominik V. Salonen
f80fa5a42b
Replace VyOS' .png with .svg (#12067)
* Replace VyOS .png with .svg
Current .png also has white background, which does not look good when using the dark theme

* Update vyos.svg

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-09-07 16:45:59 +02:00
Jellyfrog
86220eed9e
Add more types to settings page (#11918)
* Add a executable type to settings page

This allow us to validate the value is a valid executable

* Add a directory type to settings page

This allow us to validate the value is a valid directory

* fixes
2020-07-21 20:51:23 -05:00
NotARobotDude
912247f2f0
Change text from black to white availability-map (#11946)
Before :
https://pasteboard.co/JiqHdlA.jpg

After : 
https://pasteboard.co/JiqIsoT.jpg
2020-07-20 00:54:10 +02:00
Hans Erasmus
a5bb437216
Added basic EndRun support (#11932)
* Added basic EndRun support

* Fixed spaces as indicated by Travis

* Changes applied as per request and suggestions

Incorporated @murrant's suggestions.

* Update Endrun.php

* Update endrun.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-07-14 11:22:40 -05:00
twelch24
5d2fe2e8c5
Black legend text in dark theme (#11933)
using the dark theme the legend text is the same color as background on the latency page. Change to black.
2020-07-14 17:31:09 +02:00
Jellyfrog
32f72bc1ab
Fix SQL injections in ajax_table.php (#11920)
* Fix SQL injections via searchPhrase parameter

* Fix SQL injections via address parameter

* Fix sort injection

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-07-10 09:17:09 -05:00
Tony Murray
560fd71ef6
CORS settings in webui (#11912)
* Change CORS implementation
allows for upstream integration of Laravel 7

* migrate config

* skip implementing patterns for now

* Expose settings to the webui

* Make db settings apply
2020-07-08 07:36:51 -05:00
cwispy
8e30541c95
Add support for Aten PE8216 PDU (#11887)
* Add support for Aten PE8216 PDU

* Add support for Aten PE8216 PDU

* Add support for Aten PE8216 PDU

* Revert "Add support for Aten PE8216 PDU"

This reverts commit 5d2f195f28.

* Revert "Add support for Aten PE8216 PDU"

This reverts commit ebfd659775.

* Fixed integer issue with skip_values

* More integer changes

* Add json file

* Fix yaml file

* Setting modules like that reduces user control

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-07-05 00:20:12 -05:00
Munzy
8a851eda9f
Auth AD URL (#11884)
* Missing auth_ad_url

WIP

* add auth_ad_filter

* Pluralize

* Remove Translation, and add translations generation.
2020-07-01 13:23:35 -05:00
Tony Murray
b9f80d32bd
Fix unauthenticated graphs (#11879)
broken with security fix
2020-06-30 09:25:01 -05:00
Jellyfrog
659325d5d0 Prevent unauthorized access to device graphs
Users could access info for the wrong device by piggyback on port permissions
2020-06-30 13:35:45 +02:00