Commit Graph
115 Commits
Author SHA1 Message Date
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
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
SourceDoctorandGitHub 14c3690b88 . 2020-06-23 02:09:17 +02:00
SourceDoctor 3275c372f4 . 2020-06-23 01:34:36 +02:00
SourceDoctor cf7f45fe53 . 2020-06-23 01:30:09 +02:00
SourceDoctor 3416bf8fb2 . 2020-06-23 01:16:32 +02:00
SourceDoctor 9be112530a . 2020-06-23 01:14:05 +02:00
SourceDoctor afa26d66b5 Fix datatype for Availability_perc Column 2020-06-23 01:06:49 +02:00
SourceDoctorandGitHub 4e6a7291a2 Device Availability Calculation (#11784)
* Device Availability Calculation

* Travis fix

* .

* schema corrections

* flexible duration

* travis

* .

* .

* .

* .

* remove not needed code

* line Text to RRD

* update humantime

* .

* only set up again if device was marked as down

* set RRD area transparency

* save uptime also, to keep last availability as good as possible

* file description correction

* look for outages even if uptime > duration
2020-06-22 22:57:30 +02:00
Tony MurrayandGitHub 867aa132c1 Merge pull request #11661 from SourceDoctor/app_dhcp_enhancement
Application DHCP Upgrade
2020-06-16 17:03:45 -05:00
Tony MurrayandGitHub 240b84aa3f Merge pull request #11776 from TheGreatDoc/ups-traps
Added UPS-MIB Trap On Battery (upsTraps.0.1)
2020-06-14 16:41:42 -05:00
Tony MurrayandGitHub d00e18a32e support sqlite 2020-06-12 09:27:25 -05:00
Tony MurrayandGitHub 13ade9ab6c Merge branch 'master' into alerts-carbon 2020-06-12 07:48:51 -05:00
SourceDoctor 1093315700 Merge branch 'master' into app_dhcp_enhancement 2020-06-08 20:51:41 +02:00
Tony MurrayandGitHub 300645388f Dispatcher Service settings (#11760)
* Poller settings WIP

* Poller settings WIP2

* working on SettingMultiple

* setting multiple working

* settings sent with all required info

* fix translation

* Fix keys

* fix groups setting

* Apply settings to service
fixes and validations for setting

* don't error when no poller_cluster entry exists

* hid tab when no poller cluster entries

* Authorization

* make prod

* daily maintenance toggle should be advanced

* Update schema def
2020-06-08 08:27:03 -05:00
TheGreatDoc 2f245c0e82 Removed sensor_id from factory()->Sensor:class 2020-06-08 06:30:13 +02:00
TheGreatDoc e1d5b8ca5f Added sensor_oid to factory->sensor 2020-06-07 12:49:30 +02:00
TheGreatDoc 95ffe2a8b4 Fix correct field 2020-06-07 11:55:54 +02:00
TheGreatDoc 6f91e9e287 Create factory->Sensor model. Fix some format issues in UpsTrapsOnBattery.php and more UpsTrapsOnBatteryTests 2020-06-07 11:21:14 +02:00