286 Commits

Author SHA1 Message Date
Tony Murray 139d25236f Allow preformatted logon message (#12281)
Either this or allow full html, but that seems dubious security wise.
2020-11-02 04:15:30 +01:00
SourceDoctor 1bc868e781 Fix - only get shortlabel from vlan if it has ports (#12267) 2020-10-28 17:58:17 +01:00
ottorei 599c423532 Optional availability calculation mode to allow planned maintenance (#12218)
* Add an optional availability calculation mode

* Style fixes

* Review fixes

* Variable fix

* Style fixes

* Style fixes

* Style fixes

* Add additional status check, remove uptime

* Style fix

* Style fix

* Fix extra database update

* Style fix

* Style fix
2020-10-28 02:05:19 +01:00
Hayden 397a10e73f new sensors for siteboss OS + new sensor type: percentage (%) (#11958)
* split siteboss 530 and 550 into multiple OS

* add more sensors to siteboss550 and new Percent sensor

* fix contact closure event state values

* split os polling for siteboss to siteboss530 and siteboss550

* add test unit for siteboss550, rename test unit for siteboss to siteboss530

* refactor siteboss os polling to \Librenms\OS

* implement OSPolling to Sitebos550

* force save in pollOS() to keep custom sysName during polling

* updated unit test

* update device graphs

* remove pollOS and extra save()

* siteboss550 no longer extends OSPolling

* update siteboss550 test data

* update discoverOS() to match recent os discovery changes

* styleCI changes

* fix siteboss hardware discovery; add check to OS polling if os_group .inc file exists

* collapse siteboss to single OS, implement siteboss sensors in advanced discovery

* add siteboss unit tests

* removed unneeded OS disco defs

* styleCI changes

* more styleCI changes

* split siteboss os to siteboss530 and siteboss550

* split siteboss os to siteboss530 and siteboss550

* move php polling back into yaml

* keep original siteboss OS name

* resave snmp data for siteboss OS

* resave snmp data for siteboss550 OS
2020-10-20 19:11:12 -05:00
Jellyfrog 3bfafc857f Convert Device>vlan view to Laravel (#12163)
* Convert Device>vlan view to Laravel
2020-10-14 19:40:44 -05:00
Tony Murray 31881303f0 add two day period to graph widget (#12210) 2020-10-14 19:33:54 -05:00
Negatifff 173ca83018 Refresh in widget settings (#12127)
* add timeout for widget in widget settings

* forgot get saved timeout and added default value for all widgets

* code correction

* move refresh to json

* forgot remove old code

* added refresh validate rule

* fix empty refresh for exist widgets

* fix empty settings for new widgets

* Set refresh in base
Update refresh at runtime (doesn't interrupt previous timeout)

* Update WidgetSettingsController.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-10-02 08:52:04 -05:00
Jellyfrog 0e99b472c2 Add Blade Submenu component (#12159) 2020-09-29 23:11:05 -05: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 77c531527c Apply fixes from StyleCI (#12117)
* Apply fixes from StyleCI

* Disable style check
2020-09-21 14:54:51 +02:00
Konstantin V Bekreyev 509dc027f1 Update ru.json (#12109)
typos fixed
2020-09-19 17:41:01 +02:00
Adam Bishop bbdb1a2a5d Rewrite smokeping script to be an lnms command (#11585)
* Rewrite smokeping script to be an lnms command

* Add a default number of probes for smokeping

* Formatting fixes

* Refactor to simplify a couple of methods

* Fix a name collision when using more than 60 threads

* Simplify

* First pass at documentation

A few climate fixes too.

I'm a little dubious about the + LibreNMS fix - it could be included
in /etc/smokeping/config if it is really needed, but it sounds like
(looking at git blame) it's needed for if the script generates a broken
configuration file.

I'm thinking we should just not generate broken config.

* Improve testability and add some tests

* Load laravel to make translations available

* Second pass at documentation

* Fix brace

* Extend the device factory to include the type

Also adds a device group fake I created before I realised I didn't need it

* Mimic gen_smokeping.php a little more closely

* Update tests to properly verify old and new behaviour against each other

* Replace gen_smokeping with a wrapper

* Don't double whitespace

Render does this automatically.
Explicitly order by hostname too.

* Make faker less likely to generate duplicates

I tried adding a unique constraint here, but it didn't have the
intended effect.

Extending the hostname like this seems to work fine - I tried
generating 10 million hosts and got no duplicates, compared to
duplicates appearing with as few as 100 hosts without this
 change.

A true fix would be to add an 'fqdn' fake upstream.

* Make the tests more robust

* Assorted bug fixes

* Style corrections

* Handle 'generic' devices

* Fix an issue that came up during rebase

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-09-18 00:04:54 -05:00
Jason Cheng 661a518dea Add attach sysName to Prometheus. (#12061)
* Add attach sysName to Prometheus option.

The value of put to prometheus can be added to sysName by setting the relevant parameter.

* Add attach sysName to Prometheus.

* Add attach sysName to Prometheus.

* Update resources/lang/en/settings.php

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

* Update settings.php

* Update settings.php

* Update settings.php

* Update settings.php

* Update settings.php

* Update zh-TW.json

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-09-07 21:38:13 +02:00
SourceDoctor 663ca6e9d1 Move Availability Setting to Poller (#12021) 2020-08-19 22:03:37 +02:00
Negatifff d6002866ce Only show smokeping in menu if enabled (#12019) 2020-08-19 13:33:14 +02:00
SourceDoctor a4d1f5e1c8 Show Device Outages as Log List (#12011) 2020-08-18 20:02:56 +02:00
Hans Erasmus 29dae9cbbe Small update to installation steps (#12016) 2020-08-18 12:40:57 +02:00
Zmegolaz fddf2eb6a3 Added crossorigin policy to link rel manifest. (#12005) 2020-08-10 10:16:41 +02:00
Jellyfrog 98e478843f Only show smokeping link if the url is configured (#11992) 2020-08-04 14:40:48 +02:00
TheGreatDoc ff3926d28e Fix latency.blade.php to show smokeping integration (#11980) 2020-07-30 00:35:34 -05:00
Jellyfrog 6dba2555a7 Convert blade to panel component (#11957) 2020-07-23 23:13:00 -05:00
Tony Murray 020c5fd7e1 Remove legacy code and fix missing device graphs (#11950)
* removing $graphs global

* remove unused things

* fix some additional graphs

* Fix graphs persisting too soon

* correct name for poller module performance graph

* only one type of graph is used here
2020-07-23 09:57:22 -05:00
Jellyfrog 2fc037ab23 Convert device notes to blade (#11952) 2020-07-22 09:18:56 -05: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
SourceDoctor b4d149b4af Show SysName in Availability Widget (#11953) 2020-07-22 00:22:12 +02:00
SourceDoctor e8f2c2e396 Show Location on Poller Log (#11945)
* Show Location on Poller Log

* .

* .
2020-07-20 18:23:28 +02: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
allwaysoft 249b343c64 Simplify Chinese lang Translation (#11905)
* Add files via upload

* Create auth.php

* Add files via upload
2020-07-06 11:23:45 +02:00
Pierfrancesco Passerini 505ab86471 Update italian translation (#11901)
* Update it.json

Removed all  \'/  single quote, very common in italian , to avoid problem on page loading

* Update it.json

small fix
2020-07-05 14:14:51 +02:00
Tony Murray 44549ae63e Show poller settings even if distributed polling is disabled (#11893) 2020-07-03 00:37:37 -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 d75cc5235d Settings geocode lookup (#11875)
* Add setting to enable geocoding to ui

* rename settings

* rename settings

* capitalization

* Open streetmaps does not support geocoding
2020-06-29 21:03:03 +02:00
Tony Murray 2f2cd3404c installer fixes 2020-06-29 00:58:29 -05:00
Tony Murray d63b78b1af small clean ups 2020-06-27 07:47:08 -05:00
Tony Murray 5adea74c2c sort language file 2020-06-27 07:47:08 -05:00
Tony Murray e3d75a8a09 Copy button, consistency 2020-06-27 07:47:08 -05:00
Tony Murray 2c82e919f6 refined finish 2020-06-27 07:47:08 -05:00
Tony Murray 2be176f45a fill in last bar 2020-06-27 07:47:08 -05:00
Tony Murray 691a73caa6 consistency run through 2020-06-27 07:47:08 -05:00
Tony Murray d1ceb14b9a create .env if non-existing 2020-06-27 07:47:08 -05:00
Tony Murray fbf0afffad finish db 2020-06-27 07:47:08 -05:00
Tony Murray 057f4c49fc db in one refactor WIP3 2020-06-27 07:47:08 -05:00
Tony Murray 246e6741a3 db in one refactor WIP2 2020-06-27 07:47:08 -05:00
Tony Murray ed3e818413 db in one refactor 2020-06-27 07:47:08 -05:00
Tony Murray 229a501d4f refactor 2020-06-27 07:47:08 -05:00
Tony Murray 467c810c5b shadows fixed
red progress
2020-06-27 07:47:08 -05:00
Tony Murray 90bfde9f33 layout looking good 2020-06-27 07:47:08 -05:00
Tony Murray 5574e9dcd3 progress bar WIP 2020-06-27 07:47:08 -05:00
Tony Murray 6850dc705d fix alignment on smaller displays 2020-06-27 07:47:08 -05:00