Commit Graph

277 Commits

Author SHA1 Message Date
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
Tony Murray
610475356f ajax step status check standardized 2020-06-27 07:47:08 -05:00
Tony Murray
c750107906 Refactor to a simpler style 2020-06-27 07:47:08 -05:00
Tony Murray
27027428fa config file writing 2020-06-27 07:47:08 -05:00
Tony Murray
3415cb5272 user creation error handling 2020-06-27 07:47:08 -05:00
Tony Murray
adf3afdaca run through and refinement 2020-06-27 07:47:08 -05:00
Tony Murray
94a71f9f41 check for INSTALL environment var 2020-06-27 07:47:08 -05:00
Tony Murray
f601ad6d93 dynamic steps WIP 2020-06-27 07:47:08 -05:00
Tony Murray
eeb346d145 format improvements 2020-06-27 07:47:08 -05:00
Tony Murray
a3a8a6ae67 port to Bootstrap4 for flexbox 2020-06-27 07:47:08 -05:00