Commit Graph
132 Commits
Author SHA1 Message Date
Anthony F. McInerneyandGitHub ada3bdf169 Merge branch 'master' into add-service-template 2020-10-19 19:10:21 +01:00
Anthony F McInerney 8c1939cffa service templates - move to blade - permissions fix 2020-10-19 14:31:01 +01:00
Anthony F McInerney fd42229b95 service templates - move to blade - permissions fix 2020-10-19 14:29:37 +01:00
Anthony F McInerney 437382fb1c service templates - move to blade - permissions fix 2020-10-19 14:28:59 +01:00
Anthony F McInerney 9aa49b1490 service templates - move to blade - permissions fix 2020-10-19 14:27:52 +01:00
Anthony F McInerney 452432de7e service templates - move to blade - permissions fix 2020-10-19 14:15:57 +01:00
Anthony F McInerney b868f88edb service templates - move to blade - nullable input? 2020-10-18 10:25:05 +01:00
Anthony F McInerney 70eead44c1 service templates - move to blade - nullable input? 2020-10-18 10:02:58 +01:00
Anthony F McInerney bd1dfd9858 service templates - move to blade -wip 2020-10-16 18:11:17 +01:00
Anthony F McInerney 2df17699e4 service templates - move to blade -wip 2020-10-16 17:10:07 +01:00
Anthony F McInerney fcbad05aff service templates - move to blade -wip 2020-10-16 16:42:31 +01:00
Anthony F McInerney 853b4e30b6 service templates - move to blade -wip 2020-10-15 09:02:12 +01:00
Tony Murray 09f107303d fixes 2020-10-14 21:41:35 -05:00
2ca6f2f8d4 schema: add missing primary keys (#12106)
* schema: add missing primary keys

* Exclude ipv4_mac.id

* Made primary key migrations SQLite compatible

Co-authored-by: Tony Murray <[email protected]>
2020-10-14 20:37:40 -05:00
Tony MurrayandGitHub 1e4702fa4f Support multiple daily process locking backends with distributed polling (#11896)
* Implement locks in the file cache

* Replace custom locks

* implement restore lock
Used when re-hydrating

* remove legacy use statements

* Add class descriptions

* Fix style

* Default to database cache driver

* missed cache_locks table
prevent chicken-egg issue

* style fixes

* Remove custom file lock implementation

* missed items from file cache

* Update schema definition
hmm, other schema noise must be from manual modification as this is generated from a freshly migrated db.

* require predis, it is pure python, so no harm in adding

* and set predis as the default client
2020-10-07 07:36:35 -05:00
Tony MurrayandGitHub 863fb96205 Scheduled maintenance test (#12171)
* alert schedule test

* Fix style

* Skip broken tests for now
2020-10-01 03:00:42 -05:00
Anthony F McInerney 1b20b34771 Add service templates - Add service template changed to service 2020-09-26 18:04:51 +01:00
Anthony F McInerney 866c8f277e Add service templates 2020-09-25 06:04:37 +01:00
Anthony F McInerney 203686d5c4 Add service templates - Add Name 2020-09-25 01:49:16 +01:00
444b9544a0 new index in alert_log table (#12143)
* new index in alert_log table

* codefix1

* codefix2

* added second index

* codefix

* Apply suggestions from code review

Co-authored-by: Jellyfrog <[email protected]>
2020-09-24 17:05:21 +02:00
Anthony F McInerney 8f4e19d411 Add service templates 2020-09-23 02:50:58 +01:00
Anthony F McInerney 296d8e3ab7 Add service templates 2020-09-21 21:19:10 +01:00
Anthony F McInerney 54633a4653 Add service templates - styleci 2020-09-21 20:30:31 +01:00
Anthony F McInerney b7c74dc729 Add service templates - Master merge 2020-09-21 19:34:09 +01:00
Anthony F McInerney 40b9db601a Add service templates 2020-09-21 18:41:15 +01:00
Anthony F McInerney e7be0ec28d Add service templates 2020-09-21 18:38:39 +01:00
JellyfrogandGitHub 29f45ca352 Apply fixes from StyleCI (#12124) 2020-09-21 15:59:34 +02:00
JellyfrogandGitHub 0d56bbd946 Apply fixes from StyleCI (#12123) 2020-09-21 15:51:53 +02:00
JellyfrogandGitHub 77c531527c Apply fixes from StyleCI (#12117)
* Apply fixes from StyleCI

* Disable style check
2020-09-21 14:54:51 +02:00
Anthony F McInerney a27085243a Add service templates 2020-09-19 01:29:20 +01:00
Anthony F McInerney 2b6d87c704 Add service templates 2020-09-19 01:09:02 +01:00
Anthony F McInerney 0209319156 Add service templates 2020-09-19 00:44:32 +01:00
Anthony F McInerney 75317a85c4 Add service templates 2020-09-19 00:42:39 +01:00
Anthony F McInerney 8949c76e75 Add service templates 2020-09-19 00:10:49 +01:00
Anthony F McInerney 64977e2721 Add service templates 2020-09-18 23:59:07 +01:00
Anthony F McInerney e14498f188 Add service templates 2020-09-18 23:38:03 +01:00
Anthony F McInerney 5deb50e513 Add service templates 2020-09-18 23:35:51 +01:00
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 <[email protected]>
2020-09-18 00:04:54 -05:00
Tony MurrayandGitHub b22d27b988 Allow index rename migration to recover partially completed previous run (#12084) 2020-09-12 23:20:15 +02:00
SourceDoctorandGitHub 427878dcaa Availability Calculation for all Devices (#12004)
* Availability Calculation for all Devices

* remove not more need uptime column
2020-08-28 13:01:54 +02:00
JellyfrogandGitHub cf13e92f05 Add missing index for device_perf (#11974)
Makes the latency page load faster in case of a large device_perf table
2020-07-31 16:07:00 +02:00
Tony MurrayandGitHub 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
SourceDoctor a61b119d5f . 2020-06-23 19:31:43 +02:00
SourceDoctor 70c00d1b4a . 2020-06-23 19:12:58 +02:00
SourceDoctor a454189a57 double to float in migration 2020-06-23 17:38:17 +02:00
SourceDoctor c5c99e13d1 partial double - other side 2020-06-23 16:57:30 +02:00
SourceDoctor bfcec4dc16 change column type to float 2020-06-23 16:45:08 +02:00
SourceDoctor a8b188e9ab . 2020-06-23 10:06:15 +02:00
SourceDoctorandGitHub 3ce4860860 . 2020-06-23 02:19:40 +02:00
SourceDoctorandGitHub daea015c88 . 2020-06-23 02:10:07 +02:00