From 7fa49912f416d495528c03036f3200f8ac5dff93 Mon Sep 17 00:00:00 2001 From: "Peter Droogmans (attiks)" Date: Tue, 14 Nov 2023 15:05:50 +0100 Subject: [PATCH] Monitoring Refs: #OPS-9765 --- composer.json | 3 + composer.lock | 676 ++++++++++++++-- config/core.extension.yml | 4 + ...ng.sensor_config.core_maintenance_mode.yml | 1 + ...oring.sensor_config.core_theme_default.yml | 1 + ...monitoring.sensor_config.system_memory.yml | 1 + .../monitoring.sensor_config.update_core.yml | 1 + .../views.view.monitoring_sensor_results.yml | 44 ++ ...ng.sensor_config.core_maintenance_mode.yml | 1 + ...oring.sensor_config.core_theme_default.yml | 1 + ...monitoring.sensor_config.system_memory.yml | 1 + .../monitoring.sensor_config.update_core.yml | 1 + .../views.view.monitoring_sensor_results.yml | 44 ++ ...g.sensor_config.core_cron_last_run_age.yml | 20 + ...ng.sensor_config.core_maintenance_mode.yml | 20 + ...ensor_config.core_requirements_address.yml | 20 + ...ng.sensor_config.core_requirements_csp.yml | 20 + ...ig.core_requirements_csv_serialization.yml | 20 + ...or_config.core_requirements_date_recur.yml | 20 + ...r_config.core_requirements_field_group.yml | 20 + ...g.sensor_config.core_requirements_file.yml | 20 + ...or_config.core_requirements_google_tag.yml | 20 + ....sensor_config.core_requirements_image.yml | 20 + ...fig.core_requirements_layout_discovery.yml | 20 + ...sensor_config.core_requirements_locale.yml | 20 + ...nsor_config.core_requirements_memcache.yml | 20 + ...ensor_config.core_requirements_metatag.yml | 20 + ....sensor_config.core_requirements_mysql.yml | 20 + ...g.sensor_config.core_requirements_node.yml | 20 + ...nfig.core_requirements_security_review.yml | 20 + ...ensor_config.core_requirements_select2.yml | 20 + ...sensor_config.core_requirements_system.yml | 21 + ....sensor_config.core_requirements_token.yml | 20 + ...ements_username_enumeration_prevention.yml | 20 + ...oring.sensor_config.core_theme_default.yml | 23 + ...ring.sensor_config.database_disk_usage.yml | 20 + ...ensor_config.dblog_image_missing_style.yml | 39 + .../monitoring.sensor_config.disk_usage.yml | 21 + ..._config.monitoring_disappeared_sensors.yml | 18 + ...ensor_config.monitoring_git_dirty_tree.yml | 26 + .../monitoring.sensor_config.node_new_all.yml | 28 + ...ing.sensor_config.ocha_current_release.yml | 16 + ...nsor_config.ocha_deployment_identifier.yml | 16 + ...ring.sensor_config.system_load_average.yml | 19 + ...monitoring.sensor_config.system_memory.yml | 22 + ...g.sensor_config.temporary_files_usages.yml | 28 + ...nitoring.sensor_config.twig_debug_mode.yml | 18 + ...onitoring.sensor_config.update_contrib.yml | 21 + .../monitoring.sensor_config.update_core.yml | 21 + .../monitoring.sensor_config.user_active.yml | 27 + ...onitoring.sensor_config.user_integrity.yml | 18 + config/monitoring.sensor_config.user_new.yml | 29 + ...toring.sensor_config.user_sessions_all.yml | 31 + ...sor_config.user_sessions_authenticated.yml | 31 + config/monitoring.settings.yml | 5 + config/ohdear_integration.settings.yml | 5 + ...heck.security_review-admin_permissions.yml | 1 + ....security_review-blocked_admin_account.yml | 1 + ....check.security_review-error_reporting.yml | 1 + ...w.check.security_review-executable_php.yml | 1 + ...ew.check.security_review-failed_logins.yml | 1 + ...ity_review.check.security_review-field.yml | 1 + ...eview.check.security_review-file_perms.yml | 1 + ...ew.check.security_review-input_formats.yml | 1 + ...ew.check.security_review-last_cron_run.yml | 1 + ...ew.check.security_review-private_files.yml | 1 + ...iew.check.security_review-query_errors.yml | 1 + ....check.security_review-temporary_files.yml | 1 + ...ew.check.security_review-trusted_hosts.yml | 1 + ...heck.security_review-upload_extensions.yml | 1 + ...urity_review-username_same_as_password.yml | 1 + ...urity_review-vendor_directory_location.yml | 1 + ...iew.check.security_review-views_access.yml | 1 + config/security_review.settings.yml | 5 + .../views.view.monitoring_sensor_results.yml | 721 ++++++++++++++++++ ...em.action.ocha_drd_action_requirements.yml | 10 - .../Agent/Action/V8/OchaDrdRequirements.php | 105 --- .../src/Plugin/Action/OchaDrdRequirements.php | 44 -- ...ing.sensor_config.ocha_current_release.yml | 0 ...nsor_config.ocha_deployment_identifier.yml | 0 .../ocha_monitoring.info.yml} | 5 +- .../OchaCurrentReleaseSensorPlugin.php | 2 +- .../OchaDeploymentIdentifierSensorPlugin.php | 5 +- 83 files changed, 2376 insertions(+), 220 deletions(-) create mode 100644 config/language/es/monitoring.sensor_config.core_maintenance_mode.yml create mode 100644 config/language/es/monitoring.sensor_config.core_theme_default.yml create mode 100644 config/language/es/monitoring.sensor_config.system_memory.yml create mode 100644 config/language/es/monitoring.sensor_config.update_core.yml create mode 100644 config/language/es/views.view.monitoring_sensor_results.yml create mode 100644 config/language/fr/monitoring.sensor_config.core_maintenance_mode.yml create mode 100644 config/language/fr/monitoring.sensor_config.core_theme_default.yml create mode 100644 config/language/fr/monitoring.sensor_config.system_memory.yml create mode 100644 config/language/fr/monitoring.sensor_config.update_core.yml create mode 100644 config/language/fr/views.view.monitoring_sensor_results.yml create mode 100644 config/monitoring.sensor_config.core_cron_last_run_age.yml create mode 100644 config/monitoring.sensor_config.core_maintenance_mode.yml create mode 100644 config/monitoring.sensor_config.core_requirements_address.yml create mode 100644 config/monitoring.sensor_config.core_requirements_csp.yml create mode 100644 config/monitoring.sensor_config.core_requirements_csv_serialization.yml create mode 100644 config/monitoring.sensor_config.core_requirements_date_recur.yml create mode 100644 config/monitoring.sensor_config.core_requirements_field_group.yml create mode 100644 config/monitoring.sensor_config.core_requirements_file.yml create mode 100644 config/monitoring.sensor_config.core_requirements_google_tag.yml create mode 100644 config/monitoring.sensor_config.core_requirements_image.yml create mode 100644 config/monitoring.sensor_config.core_requirements_layout_discovery.yml create mode 100644 config/monitoring.sensor_config.core_requirements_locale.yml create mode 100644 config/monitoring.sensor_config.core_requirements_memcache.yml create mode 100644 config/monitoring.sensor_config.core_requirements_metatag.yml create mode 100644 config/monitoring.sensor_config.core_requirements_mysql.yml create mode 100644 config/monitoring.sensor_config.core_requirements_node.yml create mode 100644 config/monitoring.sensor_config.core_requirements_security_review.yml create mode 100644 config/monitoring.sensor_config.core_requirements_select2.yml create mode 100644 config/monitoring.sensor_config.core_requirements_system.yml create mode 100644 config/monitoring.sensor_config.core_requirements_token.yml create mode 100644 config/monitoring.sensor_config.core_requirements_username_enumeration_prevention.yml create mode 100644 config/monitoring.sensor_config.core_theme_default.yml create mode 100644 config/monitoring.sensor_config.database_disk_usage.yml create mode 100644 config/monitoring.sensor_config.dblog_image_missing_style.yml create mode 100644 config/monitoring.sensor_config.disk_usage.yml create mode 100644 config/monitoring.sensor_config.monitoring_disappeared_sensors.yml create mode 100644 config/monitoring.sensor_config.monitoring_git_dirty_tree.yml create mode 100644 config/monitoring.sensor_config.node_new_all.yml create mode 100644 config/monitoring.sensor_config.ocha_current_release.yml create mode 100644 config/monitoring.sensor_config.ocha_deployment_identifier.yml create mode 100644 config/monitoring.sensor_config.system_load_average.yml create mode 100644 config/monitoring.sensor_config.system_memory.yml create mode 100644 config/monitoring.sensor_config.temporary_files_usages.yml create mode 100644 config/monitoring.sensor_config.twig_debug_mode.yml create mode 100644 config/monitoring.sensor_config.update_contrib.yml create mode 100644 config/monitoring.sensor_config.update_core.yml create mode 100644 config/monitoring.sensor_config.user_active.yml create mode 100644 config/monitoring.sensor_config.user_integrity.yml create mode 100644 config/monitoring.sensor_config.user_new.yml create mode 100644 config/monitoring.sensor_config.user_sessions_all.yml create mode 100644 config/monitoring.sensor_config.user_sessions_authenticated.yml create mode 100644 config/monitoring.settings.yml create mode 100644 config/ohdear_integration.settings.yml create mode 100644 config/security_review.check.security_review-admin_permissions.yml create mode 100644 config/security_review.check.security_review-blocked_admin_account.yml create mode 100644 config/security_review.check.security_review-error_reporting.yml create mode 100644 config/security_review.check.security_review-executable_php.yml create mode 100644 config/security_review.check.security_review-failed_logins.yml create mode 100644 config/security_review.check.security_review-field.yml create mode 100644 config/security_review.check.security_review-file_perms.yml create mode 100644 config/security_review.check.security_review-input_formats.yml create mode 100644 config/security_review.check.security_review-last_cron_run.yml create mode 100644 config/security_review.check.security_review-private_files.yml create mode 100644 config/security_review.check.security_review-query_errors.yml create mode 100644 config/security_review.check.security_review-temporary_files.yml create mode 100644 config/security_review.check.security_review-trusted_hosts.yml create mode 100644 config/security_review.check.security_review-upload_extensions.yml create mode 100644 config/security_review.check.security_review-username_same_as_password.yml create mode 100644 config/security_review.check.security_review-vendor_directory_location.yml create mode 100644 config/security_review.check.security_review-views_access.yml create mode 100644 config/security_review.settings.yml create mode 100644 config/views.view.monitoring_sensor_results.yml delete mode 100644 html/modules/custom/ocha_drd/config/optional/system.action.ocha_drd_action_requirements.yml delete mode 100644 html/modules/custom/ocha_drd/src/Agent/Action/V8/OchaDrdRequirements.php delete mode 100644 html/modules/custom/ocha_drd/src/Plugin/Action/OchaDrdRequirements.php rename html/modules/custom/{ocha_drd/config/install => ocha_monitoring/config/optional}/monitoring.sensor_config.ocha_current_release.yml (100%) rename html/modules/custom/{ocha_drd/config/install => ocha_monitoring/config/optional}/monitoring.sensor_config.ocha_deployment_identifier.yml (100%) rename html/modules/custom/{ocha_drd/ocha_drd.info.yml => ocha_monitoring/ocha_monitoring.info.yml} (51%) rename html/modules/custom/{ocha_drd => ocha_monitoring}/src/Plugin/monitoring/SensorPlugin/OchaCurrentReleaseSensorPlugin.php (93%) rename html/modules/custom/{ocha_drd => ocha_monitoring}/src/Plugin/monitoring/SensorPlugin/OchaDeploymentIdentifierSensorPlugin.php (84%) diff --git a/composer.json b/composer.json index e354e01d..a674e814 100644 --- a/composer.json +++ b/composer.json @@ -63,11 +63,14 @@ "drupal/masquerade": "^2.0@beta", "drupal/memcache": "^2.3", "drupal/metatag": "^2.0", + "drupal/monitoring": "^1.13", + "drupal/ohdear_integration": "^2.0", "drupal/override_node_options": "^2.6", "drupal/paragraphs_admin": "^1.4", "drupal/pathauto": "^1.8", "drupal/rdf": "^2.0", "drupal/redirect": "^1.8", + "drupal/security_review": "^2.0", "drupal/select2": "^1.13", "drupal/seven": "^1.0@alpha", "drupal/social_auth_hid": "^3.0", diff --git a/composer.lock b/composer.lock index f51700ec..a13f4e85 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2718abaf532d625cde96c4ca7614e896", + "content-hash": "13ae7e77e6047a7f10c3c708f3033807", "packages": [ { "name": "asm89/stack-cors", @@ -3993,6 +3993,136 @@ "docs": "https://www.drupal.org/docs/8/modules/metatag" } }, + { + "name": "drupal/monitoring", + "version": "1.13.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/monitoring.git", + "reference": "8.x-1.13" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/monitoring-8.x-1.13.zip", + "reference": "8.x-1.13", + "shasum": "c110ccd613a28b24d429b52d117fb6a0db5678c9" + }, + "require": { + "drupal/core": "^9.4 || ^10" + }, + "conflict": { + "drupal/redirect": "<1.5" + }, + "require-dev": { + "drupal/captcha": "~1.0", + "drupal/commerce": "~2.0", + "drupal/past": "~1.0", + "drupal/redirect": "~1.0", + "drupal/search_api": "~1.0", + "drupal/search_api_db": "*", + "drupal/search_api_solr": "~4.0", + "drupal/simplenews": "~2.0", + "drupal/ultimate_cron": "~2.0" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-1.13", + "datestamp": "1672905748", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + }, + "drush": { + "services": { + "drush.services.yml": "^9 || ^10" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0" + ], + "authors": [ + { + "name": "Berdir", + "homepage": "https://www.drupal.org/user/214652" + }, + { + "name": "miro_dietiker", + "homepage": "https://www.drupal.org/user/227761" + } + ], + "description": "Monitoring base.", + "homepage": "https://www.drupal.org/project/monitoring", + "support": { + "source": "https://git.drupalcode.org/project/monitoring" + } + }, + { + "name": "drupal/ohdear_integration", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/ohdear_integration.git", + "reference": "2.0.0" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/ohdear_integration-2.0.0.zip", + "reference": "2.0.0", + "shasum": "d24020dc1e094471f460a80536e8976c388dca89" + }, + "require": { + "drupal/core": "^8.8 || ^9.0 || ^10.0", + "drupal/monitoring": "^1.11", + "ohdearapp/health-check-results": "^1.0", + "ohdearapp/ohdear-php-sdk": "^3.4" + }, + "conflict": { + "drush/drush": "<11.0" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "2.0.0", + "datestamp": "1699460468", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Lio Novelli", + "homepage": "https://www.drupal.org/user/16747", + "email": "liopold@drunomics.com" + }, + { + "name": "useernamee", + "homepage": "https://www.drupal.org/user/3542704" + } + ], + "description": "Provides endpoint for OhDear monitoring app to check drupal's health.", + "homepage": "https://drupal.org/project/ohdear_integration", + "keywords": [ + "Drupal", + "healthcheck", + "monitoring", + "ohdear" + ], + "support": { + "source": "https://git.drupalcode.org/project/ohdear_integration", + "issues": "https://www.drupal.org/project/issues/ohdear_integration", + "slack": "https://drupal.slack.com/archives/C03EL72BJU9" + } + }, { "name": "drupal/override_node_options", "version": "2.7.0", @@ -4368,6 +4498,72 @@ "source": "https://git.drupalcode.org/project/redirect" } }, + { + "name": "drupal/security_review", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/security_review.git", + "reference": "2.0.1" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/security_review-2.0.1.zip", + "reference": "2.0.1", + "shasum": "48300cd86260f0debc5d90d5a6edaa61868da962" + }, + "require": { + "drupal/core": "^9 || ^10" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "2.0.1", + "datestamp": "1674672068", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Greg Knaddison (greggles)", + "homepage": "https://www.drupal.org/u/greggles", + "role": "Maintainer" + }, + { + "name": "Ben Jeavons (coltrane)", + "homepage": "https://www.drupal.org/u/coltrane", + "role": "Maintainer" + }, + { + "name": "David Snopek (dsnopek)", + "homepage": "https://www.drupal.org/u/dsnopek", + "role": "Maintainer" + }, + { + "name": "Viktor Bán (banviktor)", + "homepage": "https://www.drupal.org/u/banviktor", + "role": "Maintainer" + }, + { + "name": "Stephen Mustgrave (smustgrave)", + "homepage": "https://www.drupal.org/u/smustgrave", + "role": "Maintainer" + } + ], + "description": "The Security Review module automates testing for many of the easy-to-make mistakes that render your site insecure..", + "homepage": "https://www.drupal.org/project/security_review", + "support": { + "source": "https://git.drupalcode.org/project/security_review", + "issues": "https://www.drupal.org/project/issues/security_review" + } + }, { "name": "drupal/select2", "version": "1.15.0", @@ -6934,6 +7130,112 @@ ], "time": "2023-03-21T19:06:37+00:00" }, + { + "name": "nesbot/carbon", + "version": "2.71.0", + "source": { + "type": "git", + "url": "https://github.com/briannesbitt/Carbon.git", + "reference": "98276233188583f2ff845a0f992a235472d9466a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/98276233188583f2ff845a0f992a235472d9466a", + "reference": "98276233188583f2ff845a0f992a235472d9466a", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^7.1.8 || ^8.0", + "psr/clock": "^1.0", + "symfony/polyfill-mbstring": "^1.0", + "symfony/polyfill-php80": "^1.16", + "symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "require-dev": { + "doctrine/dbal": "^2.0 || ^3.1.4", + "doctrine/orm": "^2.7", + "friendsofphp/php-cs-fixer": "^3.0", + "kylekatarnls/multi-tester": "^2.0", + "ondrejmirtes/better-reflection": "*", + "phpmd/phpmd": "^2.9", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^0.12.99 || ^1.7.14", + "phpunit/php-file-iterator": "^2.0.5 || ^3.0.6", + "phpunit/phpunit": "^7.5.20 || ^8.5.26 || ^9.5.20", + "squizlabs/php_codesniffer": "^3.4" + }, + "bin": [ + "bin/carbon" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-3.x": "3.x-dev", + "dev-master": "2.x-dev" + }, + "laravel": { + "providers": [ + "Carbon\\Laravel\\ServiceProvider" + ] + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "Carbon\\": "src/Carbon/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "https://markido.com" + }, + { + "name": "kylekatarnls", + "homepage": "https://github.com/kylekatarnls" + } + ], + "description": "An API extension for DateTime that supports 281 different languages.", + "homepage": "https://carbon.nesbot.com", + "keywords": [ + "date", + "datetime", + "time" + ], + "support": { + "docs": "https://carbon.nesbot.com/docs", + "issues": "https://github.com/briannesbitt/Carbon/issues", + "source": "https://github.com/briannesbitt/Carbon" + }, + "funding": [ + { + "url": "https://github.com/sponsors/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon#sponsor", + "type": "opencollective" + }, + { + "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", + "type": "tidelift" + } + ], + "time": "2023-09-25T11:31:05+00:00" + }, { "name": "nikic/php-parser", "version": "v4.17.1", @@ -7014,6 +7316,127 @@ "MIT" ] }, + { + "name": "ohdearapp/health-check-results", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/ohdearapp/health-check-results.git", + "reference": "f2362688c8880e26f327b7f881b191b7bdf3faee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ohdearapp/health-check-results/zipball/f2362688c8880e26f327b7f881b191b7bdf3faee", + "reference": "f2362688c8880e26f327b7f881b191b7bdf3faee", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.0", + "pestphp/pest": "^1.20", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/pest-plugin-snapshots": "^1.1", + "spatie/ray": "^1.28" + }, + "type": "library", + "autoload": { + "psr-4": { + "OhDear\\HealthCheckResults\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "role": "Developer" + } + ], + "description": "Create application health check results for Oh Dear", + "homepage": "https://github.com/ohdearapp/health-check-results", + "keywords": [ + "application", + "health", + "health-check-results", + "monitoring", + "ohdear" + ], + "support": { + "issues": "https://github.com/ohdearapp/health-check-results/issues", + "source": "https://github.com/ohdearapp/health-check-results/tree/1.0.1" + }, + "funding": [ + { + "url": "https://github.com/ohdearapp", + "type": "github" + } + ], + "time": "2022-04-29T13:13:36+00:00" + }, + { + "name": "ohdearapp/ohdear-php-sdk", + "version": "3.7.0", + "source": { + "type": "git", + "url": "https://github.com/ohdearapp/ohdear-php-sdk.git", + "reference": "c94f2fa286504479f41d3eb9d2c2bd21dfbf0ba3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ohdearapp/ohdear-php-sdk/zipball/c94f2fa286504479f41d3eb9d2c2bd21dfbf0ba3", + "reference": "c94f2fa286504479f41d3eb9d2c2bd21dfbf0ba3", + "shasum": "" + }, + "require": { + "guzzlehttp/guzzle": "^6.5.8|^7.5", + "nesbot/carbon": "^2.65.0", + "php": "^8.1" + }, + "require-dev": { + "laravel/pint": "^1.13", + "pestphp/pest": "^2.8.3", + "psalm/plugin-laravel": "^2.5", + "vlucas/phpdotenv": "^5.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "OhDear\\PhpSdk\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "support@ohdear.app", + "homepage": "https://ohdear.app", + "role": "Developer" + } + ], + "description": "An SDK to easily work with the Oh Dear API", + "homepage": "https://github.com/ohdearapp/ohdear-php-sdk", + "keywords": [ + "api", + "monitoring", + "oh dear", + "sdk" + ], + "support": { + "issues": "https://github.com/ohdearapp/ohdear-php-sdk/issues", + "source": "https://github.com/ohdearapp/ohdear-php-sdk/tree/3.7.0" + }, + "time": "2023-09-25T06:51:31+00:00" + }, { "name": "oomphinc/composer-installers-extender", "version": "2.0.1", @@ -7607,6 +8030,54 @@ }, "time": "2021-02-03T23:26:27+00:00" }, + { + "name": "psr/clock", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/clock.git", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Clock\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for reading the clock.", + "homepage": "https://github.com/php-fig/clock", + "keywords": [ + "clock", + "now", + "psr", + "psr-20", + "time" + ], + "support": { + "issues": "https://github.com/php-fig/clock/issues", + "source": "https://github.com/php-fig/clock/tree/1.0.0" + }, + "time": "2022-11-25T14:36:26+00:00" + }, { "name": "psr/container", "version": "2.0.2", @@ -8161,16 +8632,16 @@ }, { "name": "symfony/console", - "version": "v6.3.4", + "version": "v6.3.8", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "eca495f2ee845130855ddf1cf18460c38966c8b6" + "reference": "0d14a9f6d04d4ac38a8cea1171f4554e325dae92" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/eca495f2ee845130855ddf1cf18460c38966c8b6", - "reference": "eca495f2ee845130855ddf1cf18460c38966c8b6", + "url": "https://api.github.com/repos/symfony/console/zipball/0d14a9f6d04d4ac38a8cea1171f4554e325dae92", + "reference": "0d14a9f6d04d4ac38a8cea1171f4554e325dae92", "shasum": "" }, "require": { @@ -8231,7 +8702,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.3.4" + "source": "https://github.com/symfony/console/tree/v6.3.8" }, "funding": [ { @@ -8247,20 +8718,20 @@ "type": "tidelift" } ], - "time": "2023-08-16T10:10:12+00:00" + "time": "2023-10-31T08:09:35+00:00" }, { "name": "symfony/dependency-injection", - "version": "v6.3.5", + "version": "v6.3.8", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "2ed62b3bf98346e1f45529a7b6be2196739bb993" + "reference": "1f30f545c4151f611148fc19e28d54d39e0a00bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/2ed62b3bf98346e1f45529a7b6be2196739bb993", - "reference": "2ed62b3bf98346e1f45529a7b6be2196739bb993", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/1f30f545c4151f611148fc19e28d54d39e0a00bc", + "reference": "1f30f545c4151f611148fc19e28d54d39e0a00bc", "shasum": "" }, "require": { @@ -8312,7 +8783,7 @@ "description": "Allows you to standardize and centralize the way objects are constructed in your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v6.3.5" + "source": "https://github.com/symfony/dependency-injection/tree/v6.3.8" }, "funding": [ { @@ -8328,7 +8799,7 @@ "type": "tidelift" } ], - "time": "2023-09-25T16:46:40+00:00" + "time": "2023-10-31T08:07:48+00:00" }, { "name": "symfony/deprecation-contracts", @@ -8756,16 +9227,16 @@ }, { "name": "symfony/http-foundation", - "version": "v6.3.6", + "version": "v6.3.8", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "c186627f52febe09c6d5270b04f8462687a250a6" + "reference": "ce332676de1912c4389222987193c3ef38033df6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/c186627f52febe09c6d5270b04f8462687a250a6", - "reference": "c186627f52febe09c6d5270b04f8462687a250a6", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/ce332676de1912c4389222987193c3ef38033df6", + "reference": "ce332676de1912c4389222987193c3ef38033df6", "shasum": "" }, "require": { @@ -8813,7 +9284,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v6.3.6" + "source": "https://github.com/symfony/http-foundation/tree/v6.3.8" }, "funding": [ { @@ -8829,20 +9300,20 @@ "type": "tidelift" } ], - "time": "2023-10-17T11:32:53+00:00" + "time": "2023-11-07T10:17:15+00:00" }, { "name": "symfony/http-kernel", - "version": "v6.3.6", + "version": "v6.3.8", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "4945f5001b06ff9080cd3d8f1f9f069094c0d156" + "reference": "929202375ccf44a309c34aeca8305408442ebcc1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/4945f5001b06ff9080cd3d8f1f9f069094c0d156", - "reference": "4945f5001b06ff9080cd3d8f1f9f069094c0d156", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/929202375ccf44a309c34aeca8305408442ebcc1", + "reference": "929202375ccf44a309c34aeca8305408442ebcc1", "shasum": "" }, "require": { @@ -8926,7 +9397,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v6.3.6" + "source": "https://github.com/symfony/http-kernel/tree/v6.3.8" }, "funding": [ { @@ -8942,7 +9413,7 @@ "type": "tidelift" } ], - "time": "2023-10-21T13:12:51+00:00" + "time": "2023-11-10T13:47:32+00:00" }, { "name": "symfony/mime", @@ -10077,16 +10548,16 @@ }, { "name": "symfony/serializer", - "version": "v6.3.6", + "version": "v6.3.8", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "8c5fb7144889839751ad9680cf4f183f60f8fbce" + "reference": "b3ad1515a276473f7919ac97e560017284a7c4bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/8c5fb7144889839751ad9680cf4f183f60f8fbce", - "reference": "8c5fb7144889839751ad9680cf4f183f60f8fbce", + "url": "https://api.github.com/repos/symfony/serializer/zipball/b3ad1515a276473f7919ac97e560017284a7c4bf", + "reference": "b3ad1515a276473f7919ac97e560017284a7c4bf", "shasum": "" }, "require": { @@ -10151,7 +10622,7 @@ "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/serializer/tree/v6.3.6" + "source": "https://github.com/symfony/serializer/tree/v6.3.8" }, "funding": [ { @@ -10167,7 +10638,7 @@ "type": "tidelift" } ], - "time": "2023-10-17T11:32:53+00:00" + "time": "2023-11-07T10:11:25+00:00" }, { "name": "symfony/service-contracts", @@ -10253,16 +10724,16 @@ }, { "name": "symfony/string", - "version": "v6.3.5", + "version": "v6.3.8", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "13d76d0fb049051ed12a04bef4f9de8715bea339" + "reference": "13880a87790c76ef994c91e87efb96134522577a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/13d76d0fb049051ed12a04bef4f9de8715bea339", - "reference": "13d76d0fb049051ed12a04bef4f9de8715bea339", + "url": "https://api.github.com/repos/symfony/string/zipball/13880a87790c76ef994c91e87efb96134522577a", + "reference": "13880a87790c76ef994c91e87efb96134522577a", "shasum": "" }, "require": { @@ -10319,7 +10790,102 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.3.5" + "source": "https://github.com/symfony/string/tree/v6.3.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-11-09T08:28:21+00:00" + }, + { + "name": "symfony/translation", + "version": "v6.3.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "30212e7c87dcb79c83f6362b00bde0e0b1213499" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/30212e7c87dcb79c83f6362b00bde0e0b1213499", + "reference": "30212e7c87dcb79c83f6362b00bde0e0b1213499", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/translation-contracts": "^2.5|^3.0" + }, + "conflict": { + "symfony/config": "<5.4", + "symfony/console": "<5.4", + "symfony/dependency-injection": "<5.4", + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<5.4", + "symfony/service-contracts": "<2.5", + "symfony/twig-bundle": "<5.4", + "symfony/yaml": "<5.4" + }, + "provide": { + "symfony/translation-implementation": "2.3|3.0" + }, + "require-dev": { + "nikic/php-parser": "^4.13", + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0", + "symfony/console": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/http-client-contracts": "^2.5|^3.0", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/intl": "^5.4|^6.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/routing": "^5.4|^6.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/yaml": "^5.4|^6.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/translation/tree/v6.3.7" }, "funding": [ { @@ -10335,7 +10901,7 @@ "type": "tidelift" } ], - "time": "2023-09-18T10:38:32+00:00" + "time": "2023-10-28T23:11:45+00:00" }, { "name": "symfony/translation-contracts", @@ -10417,16 +10983,16 @@ }, { "name": "symfony/validator", - "version": "v6.3.6", + "version": "v6.3.8", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "254290aa13d591883eb36327cbe80689cee38ffb" + "reference": "f75b40e088d095db1e788b81605a76f4563cb80e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/254290aa13d591883eb36327cbe80689cee38ffb", - "reference": "254290aa13d591883eb36327cbe80689cee38ffb", + "url": "https://api.github.com/repos/symfony/validator/zipball/f75b40e088d095db1e788b81605a76f4563cb80e", + "reference": "f75b40e088d095db1e788b81605a76f4563cb80e", "shasum": "" }, "require": { @@ -10493,7 +11059,7 @@ "description": "Provides tools to validate values", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/validator/tree/v6.3.6" + "source": "https://github.com/symfony/validator/tree/v6.3.8" }, "funding": [ { @@ -10509,20 +11075,20 @@ "type": "tidelift" } ], - "time": "2023-10-20T16:20:17+00:00" + "time": "2023-11-07T10:17:15+00:00" }, { "name": "symfony/var-dumper", - "version": "v6.3.6", + "version": "v6.3.8", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "999ede244507c32b8e43aebaa10e9fce20de7c97" + "reference": "81acabba9046550e89634876ca64bfcd3c06aa0a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/999ede244507c32b8e43aebaa10e9fce20de7c97", - "reference": "999ede244507c32b8e43aebaa10e9fce20de7c97", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/81acabba9046550e89634876ca64bfcd3c06aa0a", + "reference": "81acabba9046550e89634876ca64bfcd3c06aa0a", "shasum": "" }, "require": { @@ -10577,7 +11143,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v6.3.6" + "source": "https://github.com/symfony/var-dumper/tree/v6.3.8" }, "funding": [ { @@ -10593,7 +11159,7 @@ "type": "tidelift" } ], - "time": "2023-10-12T18:45:56+00:00" + "time": "2023-11-08T10:42:36+00:00" }, { "name": "symfony/var-exporter", @@ -10671,16 +11237,16 @@ }, { "name": "symfony/yaml", - "version": "v6.3.3", + "version": "v6.3.8", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "e23292e8c07c85b971b44c1c4b87af52133e2add" + "reference": "3493af8a8dad7fa91c77fa473ba23ecd95334a92" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/e23292e8c07c85b971b44c1c4b87af52133e2add", - "reference": "e23292e8c07c85b971b44c1c4b87af52133e2add", + "url": "https://api.github.com/repos/symfony/yaml/zipball/3493af8a8dad7fa91c77fa473ba23ecd95334a92", + "reference": "3493af8a8dad7fa91c77fa473ba23ecd95334a92", "shasum": "" }, "require": { @@ -10723,7 +11289,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v6.3.3" + "source": "https://github.com/symfony/yaml/tree/v6.3.8" }, "funding": [ { @@ -10739,7 +11305,7 @@ "type": "tidelift" } ], - "time": "2023-07-31T07:08:24+00:00" + "time": "2023-11-06T10:58:05+00:00" }, { "name": "twig/twig", diff --git a/config/core.extension.yml b/config/core.extension.yml index f7ae4b04..9044170e 100644 --- a/config/core.extension.yml +++ b/config/core.extension.yml @@ -64,9 +64,12 @@ module: menu_ui: 0 metatag: 0 metatag_views: 0 + monitoring: 0 mysql: 0 node: 0 + ocha_monitoring: 0 ocha_search: 0 + ohdear_integration: 0 options: 0 override_node_options: 0 page_cache: 0 @@ -78,6 +81,7 @@ module: rdf: 0 redirect: 0 rest: 0 + security_review: 0 select2: 0 serialization: 0 shortcut: 0 diff --git a/config/language/es/monitoring.sensor_config.core_maintenance_mode.yml b/config/language/es/monitoring.sensor_config.core_maintenance_mode.yml new file mode 100644 index 00000000..1bebf404 --- /dev/null +++ b/config/language/es/monitoring.sensor_config.core_maintenance_mode.yml @@ -0,0 +1 @@ +label: 'Modo de mantenimiento' diff --git a/config/language/es/monitoring.sensor_config.core_theme_default.yml b/config/language/es/monitoring.sensor_config.core_theme_default.yml new file mode 100644 index 00000000..d943800a --- /dev/null +++ b/config/language/es/monitoring.sensor_config.core_theme_default.yml @@ -0,0 +1 @@ +label: 'Tema predeterminado' diff --git a/config/language/es/monitoring.sensor_config.system_memory.yml b/config/language/es/monitoring.sensor_config.system_memory.yml new file mode 100644 index 00000000..659c91bb --- /dev/null +++ b/config/language/es/monitoring.sensor_config.system_memory.yml @@ -0,0 +1 @@ +label: Memoria diff --git a/config/language/es/monitoring.sensor_config.update_core.yml b/config/language/es/monitoring.sensor_config.update_core.yml new file mode 100644 index 00000000..cb1a5c21 --- /dev/null +++ b/config/language/es/monitoring.sensor_config.update_core.yml @@ -0,0 +1 @@ +label: Núcleo diff --git a/config/language/es/views.view.monitoring_sensor_results.yml b/config/language/es/views.view.monitoring_sensor_results.yml new file mode 100644 index 00000000..e3ef3187 --- /dev/null +++ b/config/language/es/views.view.monitoring_sensor_results.yml @@ -0,0 +1,44 @@ +display: + default: + display_title: Máster + display_options: + exposed_form: + options: + submit_button: Aplicar + reset_button_label: Restablecer + exposed_sorts_label: 'Ordenar por' + sort_asc_label: Asc + sort_desc_label: Desc + pager: + options: + expose: + items_per_page_label: 'Elementos por página' + items_per_page_options_all_label: '- Todo -' + offset_label: Desplazamiento + tags: + previous: '‹ anterior' + next: 'siguiente ›' + first: '« primero' + last: 'último »' + fields: + sensor_status: + label: Estado + sensor_message: + label: 'Mensaje de estado' + timestamp: + label: 'Sello temporal' + arguments: + sensor_name: + exception: + title: Todo(s) + detail_page_log: + display_options: + fields: + timestamp: + label: 'Sello temporal' + sensor_status: + label: Estado + sensor_message: + label: 'Mensaje de estado' + page_1: + display_title: Página diff --git a/config/language/fr/monitoring.sensor_config.core_maintenance_mode.yml b/config/language/fr/monitoring.sensor_config.core_maintenance_mode.yml new file mode 100644 index 00000000..8ed9f366 --- /dev/null +++ b/config/language/fr/monitoring.sensor_config.core_maintenance_mode.yml @@ -0,0 +1 @@ +label: 'Mode maintenance' diff --git a/config/language/fr/monitoring.sensor_config.core_theme_default.yml b/config/language/fr/monitoring.sensor_config.core_theme_default.yml new file mode 100644 index 00000000..20d277d6 --- /dev/null +++ b/config/language/fr/monitoring.sensor_config.core_theme_default.yml @@ -0,0 +1 @@ +label: 'Thème par défaut' diff --git a/config/language/fr/monitoring.sensor_config.system_memory.yml b/config/language/fr/monitoring.sensor_config.system_memory.yml new file mode 100644 index 00000000..4852c7a3 --- /dev/null +++ b/config/language/fr/monitoring.sensor_config.system_memory.yml @@ -0,0 +1 @@ +label: Mémoire diff --git a/config/language/fr/monitoring.sensor_config.update_core.yml b/config/language/fr/monitoring.sensor_config.update_core.yml new file mode 100644 index 00000000..32bacf52 --- /dev/null +++ b/config/language/fr/monitoring.sensor_config.update_core.yml @@ -0,0 +1 @@ +label: Cœur diff --git a/config/language/fr/views.view.monitoring_sensor_results.yml b/config/language/fr/views.view.monitoring_sensor_results.yml new file mode 100644 index 00000000..ba06d15e --- /dev/null +++ b/config/language/fr/views.view.monitoring_sensor_results.yml @@ -0,0 +1,44 @@ +display: + default: + display_title: Maître + display_options: + exposed_form: + options: + submit_button: Appliquer + reset_button_label: Réinitialiser + exposed_sorts_label: 'Trier par' + sort_asc_label: Asc + sort_desc_label: Desc + pager: + options: + expose: + items_per_page_label: 'Éléments par page' + items_per_page_options_all_label: '- Tout -' + offset_label: Décalage + tags: + previous: "‹\_précédent" + next: "suivant\_›" + first: "«\_premier" + last: "dernier\_»" + fields: + sensor_status: + label: État + sensor_message: + label: "Message d'état" + timestamp: + label: Horodatage + arguments: + sensor_name: + exception: + title: Tout + detail_page_log: + display_options: + fields: + timestamp: + label: Horodatage + sensor_status: + label: État + sensor_message: + label: "Message d'état" + page_1: + display_title: Page diff --git a/config/monitoring.sensor_config.core_cron_last_run_age.yml b/config/monitoring.sensor_config.core_cron_last_run_age.yml new file mode 100644 index 00000000..52cbae39 --- /dev/null +++ b/config/monitoring.sensor_config.core_cron_last_run_age.yml @@ -0,0 +1,20 @@ +uuid: d430c1ca-8099-489e-af99-f3e3266e6020 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: 9xaHOMw0Ra9sOuNKGoBqCLFoX2pj_66FbTQPK1CFK1U +id: core_cron_last_run_age +label: 'Last cron run age' +description: 'Time since last cron run' +category: Cron +plugin_id: cron_last_run_time +result_class: null +value_label: null +value_type: time_interval +caching_time: null +settings: { } +thresholds: + type: exceeds + warning: 86400 + critical: 259200 diff --git a/config/monitoring.sensor_config.core_maintenance_mode.yml b/config/monitoring.sensor_config.core_maintenance_mode.yml new file mode 100644 index 00000000..cc433cdc --- /dev/null +++ b/config/monitoring.sensor_config.core_maintenance_mode.yml @@ -0,0 +1,20 @@ +uuid: 1a630ecd-e43b-45b8-b6e1-e7ba15eb750a +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: zogxfdFrxiieH69X2iP7PB00dkW62vHwpukdsyMCP5k +id: core_maintenance_mode +label: 'Maintenance mode' +description: 'Site maintenance mode' +category: Other +plugin_id: state_value +result_class: null +value_label: null +value_type: bool +caching_time: null +settings: + key: system.maintenance_mode + value: false +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_address.yml b/config/monitoring.sensor_config.core_requirements_address.yml new file mode 100644 index 00000000..62945456 --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_address.yml @@ -0,0 +1,20 @@ +uuid: 95bb4e01-ca9b-4292-b3dd-091e874c6b1c +langcode: en +status: true +dependencies: + module: + - address +id: core_requirements_address +label: 'Module address' +description: 'Requirements of the address module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: address + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_csp.yml b/config/monitoring.sensor_config.core_requirements_csp.yml new file mode 100644 index 00000000..3c41bd81 --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_csp.yml @@ -0,0 +1,20 @@ +uuid: 7eae7315-3f2c-4f65-88e3-4449d6d647fd +langcode: en +status: true +dependencies: + module: + - csp +id: core_requirements_csp +label: 'Module csp' +description: 'Requirements of the csp module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: csp + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_csv_serialization.yml b/config/monitoring.sensor_config.core_requirements_csv_serialization.yml new file mode 100644 index 00000000..24b015e3 --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_csv_serialization.yml @@ -0,0 +1,20 @@ +uuid: dd973b85-facc-4490-99ce-13a5afa499d0 +langcode: en +status: true +dependencies: + module: + - csv_serialization +id: core_requirements_csv_serialization +label: 'Module csv_serialization' +description: 'Requirements of the csv_serialization module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: csv_serialization + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_date_recur.yml b/config/monitoring.sensor_config.core_requirements_date_recur.yml new file mode 100644 index 00000000..9c3a164c --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_date_recur.yml @@ -0,0 +1,20 @@ +uuid: d4dd1b2f-b767-4ec6-8d48-a4b8f50071db +langcode: en +status: true +dependencies: + module: + - date_recur +id: core_requirements_date_recur +label: 'Module date_recur' +description: 'Requirements of the date_recur module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: date_recur + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_field_group.yml b/config/monitoring.sensor_config.core_requirements_field_group.yml new file mode 100644 index 00000000..74d301c7 --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_field_group.yml @@ -0,0 +1,20 @@ +uuid: 636618d0-7fab-414a-ac8b-ba9729f72ba6 +langcode: en +status: true +dependencies: + module: + - field_group +id: core_requirements_field_group +label: 'Module field_group' +description: 'Requirements of the field_group module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: field_group + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_file.yml b/config/monitoring.sensor_config.core_requirements_file.yml new file mode 100644 index 00000000..a598ba1c --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_file.yml @@ -0,0 +1,20 @@ +uuid: e9bbb150-bf0a-4f00-84b9-0cb0befdca6b +langcode: en +status: true +dependencies: + module: + - file +id: core_requirements_file +label: 'Module file' +description: 'Requirements of the file module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: file + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_google_tag.yml b/config/monitoring.sensor_config.core_requirements_google_tag.yml new file mode 100644 index 00000000..7a5f796e --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_google_tag.yml @@ -0,0 +1,20 @@ +uuid: 550cdbb8-d175-4efd-a7b6-0b74979392a9 +langcode: en +status: true +dependencies: + module: + - google_tag +id: core_requirements_google_tag +label: 'Module google_tag' +description: 'Requirements of the google_tag module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: google_tag + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_image.yml b/config/monitoring.sensor_config.core_requirements_image.yml new file mode 100644 index 00000000..c0b7ac0c --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_image.yml @@ -0,0 +1,20 @@ +uuid: dc4aa19d-9104-4a33-a000-cf9671b6f442 +langcode: en +status: true +dependencies: + module: + - image +id: core_requirements_image +label: 'Module image' +description: 'Requirements of the image module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: image + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_layout_discovery.yml b/config/monitoring.sensor_config.core_requirements_layout_discovery.yml new file mode 100644 index 00000000..41164fc7 --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_layout_discovery.yml @@ -0,0 +1,20 @@ +uuid: 5fcc8a7e-83d5-4d8b-89e0-43532a6c4c95 +langcode: en +status: true +dependencies: + module: + - layout_discovery +id: core_requirements_layout_discovery +label: 'Module layout_discovery' +description: 'Requirements of the layout_discovery module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: layout_discovery + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_locale.yml b/config/monitoring.sensor_config.core_requirements_locale.yml new file mode 100644 index 00000000..da85f3c8 --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_locale.yml @@ -0,0 +1,20 @@ +uuid: 13623bc6-caff-492c-b3b1-03f035dcf31e +langcode: en +status: true +dependencies: + module: + - locale +id: core_requirements_locale +label: 'Module locale' +description: 'Requirements of the locale module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: locale + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_memcache.yml b/config/monitoring.sensor_config.core_requirements_memcache.yml new file mode 100644 index 00000000..d30e6fbd --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_memcache.yml @@ -0,0 +1,20 @@ +uuid: 29c8c72f-fc38-4416-8723-f1f683b28e44 +langcode: en +status: true +dependencies: + module: + - memcache +id: core_requirements_memcache +label: 'Module memcache' +description: 'Requirements of the memcache module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: memcache + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_metatag.yml b/config/monitoring.sensor_config.core_requirements_metatag.yml new file mode 100644 index 00000000..4a55ab5a --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_metatag.yml @@ -0,0 +1,20 @@ +uuid: 1a68028f-dd9f-4328-93ee-9f5b57a7f88b +langcode: en +status: true +dependencies: + module: + - metatag +id: core_requirements_metatag +label: 'Module metatag' +description: 'Requirements of the metatag module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: metatag + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_mysql.yml b/config/monitoring.sensor_config.core_requirements_mysql.yml new file mode 100644 index 00000000..6daea504 --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_mysql.yml @@ -0,0 +1,20 @@ +uuid: 79a2ef38-231e-474e-8ae8-2142e8e17cf6 +langcode: en +status: true +dependencies: + module: + - mysql +id: core_requirements_mysql +label: 'Module mysql' +description: 'Requirements of the mysql module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: mysql + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_node.yml b/config/monitoring.sensor_config.core_requirements_node.yml new file mode 100644 index 00000000..1edaf7b8 --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_node.yml @@ -0,0 +1,20 @@ +uuid: 25414a37-62ee-45a5-86ad-d5ca3986ad9e +langcode: en +status: true +dependencies: + module: + - node +id: core_requirements_node +label: 'Module node' +description: 'Requirements of the node module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: node + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_security_review.yml b/config/monitoring.sensor_config.core_requirements_security_review.yml new file mode 100644 index 00000000..777ef5a3 --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_security_review.yml @@ -0,0 +1,20 @@ +uuid: 3ca671b2-4d0c-4d05-afd1-0fbf52f7033b +langcode: en +status: true +dependencies: + module: + - security_review +id: core_requirements_security_review +label: 'Module security_review' +description: 'Requirements of the security_review module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: security_review + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_select2.yml b/config/monitoring.sensor_config.core_requirements_select2.yml new file mode 100644 index 00000000..c3a72521 --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_select2.yml @@ -0,0 +1,20 @@ +uuid: 314cdd09-2a26-4397-b846-8b6cb5206bc1 +langcode: en +status: true +dependencies: + module: + - select2 +id: core_requirements_select2 +label: 'Module select2' +description: 'Requirements of the select2 module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: select2 + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_system.yml b/config/monitoring.sensor_config.core_requirements_system.yml new file mode 100644 index 00000000..3345642d --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_system.yml @@ -0,0 +1,21 @@ +uuid: 9d6214c6-7619-4a0c-92e9-f7ef60aa97e8 +langcode: en +status: true +dependencies: + module: + - system +id: core_requirements_system +label: 'Module system' +description: 'Requirements of the system module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: system + exclude_keys: + - cron +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_token.yml b/config/monitoring.sensor_config.core_requirements_token.yml new file mode 100644 index 00000000..ff9cfb04 --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_token.yml @@ -0,0 +1,20 @@ +uuid: c1e43f0d-263b-43c7-a61c-e9efe3556ac6 +langcode: en +status: true +dependencies: + module: + - token +id: core_requirements_token +label: 'Module token' +description: 'Requirements of the token module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: token + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_requirements_username_enumeration_prevention.yml b/config/monitoring.sensor_config.core_requirements_username_enumeration_prevention.yml new file mode 100644 index 00000000..46882772 --- /dev/null +++ b/config/monitoring.sensor_config.core_requirements_username_enumeration_prevention.yml @@ -0,0 +1,20 @@ +uuid: 972bf84b-251b-4ac0-b772-9a5a86e99760 +langcode: en +status: true +dependencies: + module: + - username_enumeration_prevention +id: core_requirements_username_enumeration_prevention +label: 'Module username_enumeration_prevention' +description: 'Requirements of the username_enumeration_prevention module' +category: Requirements +plugin_id: core_requirements +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: + module: username_enumeration_prevention + exclude_keys: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.core_theme_default.yml b/config/monitoring.sensor_config.core_theme_default.yml new file mode 100644 index 00000000..5a901ca2 --- /dev/null +++ b/config/monitoring.sensor_config.core_theme_default.yml @@ -0,0 +1,23 @@ +uuid: 55d792c1-c875-414d-9f27-76160e618d49 +langcode: en +status: true +dependencies: + module: + - system +_core: + default_config_hash: Af8OA_1xItAdMneO4-cPsMdKI5ukOyxw0HzH7I-p6JM +id: core_theme_default +label: 'Default theme' +description: 'Site default theme' +category: Other +plugin_id: config_value +result_class: null +value_label: null +value_type: string +caching_time: null +settings: + config: system.theme + key: default + value: bartik +thresholds: + type: none diff --git a/config/monitoring.sensor_config.database_disk_usage.yml b/config/monitoring.sensor_config.database_disk_usage.yml new file mode 100644 index 00000000..b3245b2e --- /dev/null +++ b/config/monitoring.sensor_config.database_disk_usage.yml @@ -0,0 +1,20 @@ +uuid: 97188332-9f63-4b72-aaea-e33f7f85663a +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: 3GkPJiiLwN1qhPbq87iCuLPVOr5ILoBX3bpSnrNOhAY +id: database_disk_usage +label: 'Database Disk Usage' +description: '' +category: System +plugin_id: database_disk_usage +result_class: null +value_label: mb +value_type: number +caching_time: 86400 +settings: { } +thresholds: + type: none + warning: null + critical: null diff --git a/config/monitoring.sensor_config.dblog_image_missing_style.yml b/config/monitoring.sensor_config.dblog_image_missing_style.yml new file mode 100644 index 00000000..46d27b26 --- /dev/null +++ b/config/monitoring.sensor_config.dblog_image_missing_style.yml @@ -0,0 +1,39 @@ +uuid: f8abee87-bf63-420c-8ede-1a3f11b870d7 +langcode: en +status: true +dependencies: + module: + - image +_core: + default_config_hash: Uu1kUcL4Mv1YbMv-JLLPhOXVbfedWiQnZgEB9se6YFA +id: dblog_image_missing_style +label: 'Image derivative creation fail' +description: 'Image derivative creation fails' +category: Watchdog +plugin_id: image_style_missing +result_class: null +value_label: 'Watchdog entries' +value_type: number +caching_time: 3600 +settings: + time_interval_field: timestamp + time_interval_value: 86400 + conditions: + - + field: type + value: image + - + field: message + value: 'Source image at %source_image_path not found while trying to generate derivative image at %derivative_path.' + verbose_fields: + - wid + - message + - variables + - referer + - timestamp + table: watchdog + history_status: true +thresholds: + type: exceeds + warning: 5 + critical: 20 diff --git a/config/monitoring.sensor_config.disk_usage.yml b/config/monitoring.sensor_config.disk_usage.yml new file mode 100644 index 00000000..9821d489 --- /dev/null +++ b/config/monitoring.sensor_config.disk_usage.yml @@ -0,0 +1,21 @@ +uuid: 3d30360a-5600-477c-af31-5c07de3cff05 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: 62QvxE5Ji_NWlslKP7aIrxJC426tkauJyh7znII70JI +id: disk_usage +label: 'Public files disk usage' +description: 'Reports the used space on the disk that contains the public files directory.' +category: System +plugin_id: disk_usage +result_class: null +value_label: '%' +value_type: number +caching_time: 86400 +settings: + directory: 'public://' +thresholds: + type: exceeds + warning: 80 + critical: 95 diff --git a/config/monitoring.sensor_config.monitoring_disappeared_sensors.yml b/config/monitoring.sensor_config.monitoring_disappeared_sensors.yml new file mode 100644 index 00000000..f64b7590 --- /dev/null +++ b/config/monitoring.sensor_config.monitoring_disappeared_sensors.yml @@ -0,0 +1,18 @@ +uuid: b3c65b8e-0bbb-4fed-bf6b-0dd1c74e841d +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: iOdFrt0HGYaGWH_ERCk7cMV7NpkdPCU6OIFuIl_q-As +id: monitoring_disappeared_sensors +label: 'Disappeared sensors' +description: 'Keeps track of active sensors and reports if a sensor disappears' +category: System +plugin_id: monitoring_disappeared_sensors +result_class: null +value_label: null +value_type: no_value +caching_time: null +settings: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.monitoring_git_dirty_tree.yml b/config/monitoring.sensor_config.monitoring_git_dirty_tree.yml new file mode 100644 index 00000000..8f0ed559 --- /dev/null +++ b/config/monitoring.sensor_config.monitoring_git_dirty_tree.yml @@ -0,0 +1,26 @@ +uuid: 95686d90-00af-47d3-bf28-29b06b66be97 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: PRxsVRGwymYZR81B-jyoPFBwq_CoqbDokeTVjPJA6IM +id: monitoring_git_dirty_tree +label: 'Git dirty working tree' +description: 'Repository local file changes' +category: System +plugin_id: monitoring_git_dirty_tree +result_class: null +value_label: null +value_type: no_value +caching_time: null +settings: + repo_path: null + status_cmd: 'git status --porcelain' + check_branch: false + ahead_cmd: "git log --graph --pretty=format:'%h -%d %s (%ci)' @{u}.." + branches_cmd: 'git rev-parse --symbolic --branches' + actual_branch_cmd: 'git symbolic-ref HEAD --short' + expected_branch: null + submodules_cmd: 'git submodule status --recursive' +thresholds: + type: none diff --git a/config/monitoring.sensor_config.node_new_all.yml b/config/monitoring.sensor_config.node_new_all.yml new file mode 100644 index 00000000..78664c9d --- /dev/null +++ b/config/monitoring.sensor_config.node_new_all.yml @@ -0,0 +1,28 @@ +uuid: bf06aa79-3769-49d3-a2fe-e7b30214b47d +langcode: en +status: true +dependencies: + module: + - node +_core: + default_config_hash: zTQAePg4PXGH5498PtpSWPZsG3bwEPHMydfDIc3Ozds +id: node_new_all +label: 'All new nodes' +description: 'All new nodes' +category: Content +plugin_id: entity_aggregator +result_class: null +value_label: Nodes +value_type: number +caching_time: 3600 +settings: + time_interval_field: created + time_interval_value: 86400 + verbose_fields: + - id + - label + - type + - created + entity_type: node +thresholds: + type: none diff --git a/config/monitoring.sensor_config.ocha_current_release.yml b/config/monitoring.sensor_config.ocha_current_release.yml new file mode 100644 index 00000000..5a93ead9 --- /dev/null +++ b/config/monitoring.sensor_config.ocha_current_release.yml @@ -0,0 +1,16 @@ +uuid: 434db6dc-6041-40cb-bc43-b12e93a13002 +langcode: en +status: true +dependencies: { } +id: ocha_current_release +label: 'Current release' +description: 'Current release' +category: OCHA +plugin_id: ocha_current_release +result_class: null +value_label: null +value_type: string +caching_time: null +settings: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.ocha_deployment_identifier.yml b/config/monitoring.sensor_config.ocha_deployment_identifier.yml new file mode 100644 index 00000000..1fd8a13f --- /dev/null +++ b/config/monitoring.sensor_config.ocha_deployment_identifier.yml @@ -0,0 +1,16 @@ +uuid: 3b1f1460-9af3-4cda-af18-3156329ca662 +langcode: en +status: true +dependencies: { } +id: ocha_deployment_identifier +label: 'Deployment identifier' +description: 'Deployment identifier' +category: OCHA +plugin_id: ocha_deployment_identifier +result_class: null +value_label: null +value_type: string +caching_time: null +settings: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.system_load_average.yml b/config/monitoring.sensor_config.system_load_average.yml new file mode 100644 index 00000000..dbe9ff62 --- /dev/null +++ b/config/monitoring.sensor_config.system_load_average.yml @@ -0,0 +1,19 @@ +uuid: 1c02a962-11ce-4ad2-a347-b6d0025d8236 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: Y0paL4ZTKoSeEXWZta8LiGw8ZWzTmq2LhQ625a4AAes +id: system_load_average +label: 'System load average' +description: 'System load average monitoring plugin' +category: Other +plugin_id: system_load +result_class: null +value_label: '% Average' +value_type: number +caching_time: 0 +settings: + average_monitored: '1' +thresholds: + type: none diff --git a/config/monitoring.sensor_config.system_memory.yml b/config/monitoring.sensor_config.system_memory.yml new file mode 100644 index 00000000..09a0eeb4 --- /dev/null +++ b/config/monitoring.sensor_config.system_memory.yml @@ -0,0 +1,22 @@ +uuid: 5518c379-f860-4da9-8ff1-3bc6c6b04933 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: TkqB__LZLwVMNOCb8ysfl8U4BV6sXdZMDafulGwybwA +id: system_memory +label: Memory +description: 'Tracks free memory' +category: System +plugin_id: monitoring_system_memory +result_class: null +value_label: '% free memory' +value_type: number +caching_time: 300 +settings: + memory: free + value: percentage +thresholds: + type: falls + warning: 20 + critical: 5 diff --git a/config/monitoring.sensor_config.temporary_files_usages.yml b/config/monitoring.sensor_config.temporary_files_usages.yml new file mode 100644 index 00000000..234619d1 --- /dev/null +++ b/config/monitoring.sensor_config.temporary_files_usages.yml @@ -0,0 +1,28 @@ +uuid: 832690b7-552c-4f36-9519-2304478baa46 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: WIrlk4ez9n-ZQ7aCLgQYgYi1iG4_spN1dOqSbdgojoQ +id: temporary_files_usages +label: 'Used temporary files' +description: 'Reports temporary files that are still being used.' +category: Other +plugin_id: temporary_files_usages +result_class: null +value_label: 'used temporary files' +value_type: number +caching_time: 3600 +settings: + conditions: + - + field: status + value: '0' + operator: '=' + verbose_fields: + - fid + table: file_managed +thresholds: + type: exceeds + warning: 0 + critical: 0 diff --git a/config/monitoring.sensor_config.twig_debug_mode.yml b/config/monitoring.sensor_config.twig_debug_mode.yml new file mode 100644 index 00000000..9163d63b --- /dev/null +++ b/config/monitoring.sensor_config.twig_debug_mode.yml @@ -0,0 +1,18 @@ +uuid: b290b8a3-c9f5-465a-8295-b1eabdbc6086 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: 5whCLRBs1bqhiLZzvgQavTSlv9MFpyW7QyT954HA9Oo +id: twig_debug_mode +label: 'Twig debug mode' +description: 'Verifies that twig debug settings are disabled.' +category: Other +plugin_id: twig_debug_mode +result_class: null +value_label: null +value_type: no_value +caching_time: null +settings: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.update_contrib.yml b/config/monitoring.sensor_config.update_contrib.yml new file mode 100644 index 00000000..6121cdc4 --- /dev/null +++ b/config/monitoring.sensor_config.update_contrib.yml @@ -0,0 +1,21 @@ +uuid: f8b94926-f381-4dff-b45b-2ce42725b8c5 +langcode: en +status: true +dependencies: + module: + - update +_core: + default_config_hash: '-re8-AFGO4z0a0i4NeTZV5HlEipd-KC9kkLxzgz1mgs' +id: update_contrib +label: 'Modules and themes' +description: 'Available updates for contrib modules and themes' +category: Update +plugin_id: update_status +result_class: null +value_label: 'Outdated modules' +value_type: number +caching_time: 3600 +settings: + type: contrib +thresholds: + type: none diff --git a/config/monitoring.sensor_config.update_core.yml b/config/monitoring.sensor_config.update_core.yml new file mode 100644 index 00000000..ed23f86c --- /dev/null +++ b/config/monitoring.sensor_config.update_core.yml @@ -0,0 +1,21 @@ +uuid: 591f017e-f544-4bec-9992-fad8c2edb0c2 +langcode: en +status: true +dependencies: + module: + - update +_core: + default_config_hash: FSvo5_4kGyvNZu9RVgfFKnGfbGkIS8EgI46ckVkT6CM +id: update_core +label: Core +description: 'Available updates for Drupal core' +category: Update +plugin_id: update_status +result_class: null +value_label: 'Outdated modules' +value_type: number +caching_time: 3600 +settings: + type: core +thresholds: + type: none diff --git a/config/monitoring.sensor_config.user_active.yml b/config/monitoring.sensor_config.user_active.yml new file mode 100644 index 00000000..8362f1c0 --- /dev/null +++ b/config/monitoring.sensor_config.user_active.yml @@ -0,0 +1,27 @@ +uuid: e477327a-3368-4a81-8d0b-00f5acffa6c0 +langcode: en +status: true +dependencies: + module: + - user +_core: + default_config_hash: 1vmOozEgBRaVnScaieZG4jbGI-qnm7WTvZJEZwizLOc +id: user_active +label: 'Active users' +description: '' +category: 'User activity' +plugin_id: entity_aggregator +result_class: null +value_label: Users +value_type: number +caching_time: 3600 +settings: + time_interval_field: created + time_interval_value: 86400 + verbose_fields: + - id + - label + - created + entity_type: user +thresholds: + type: none diff --git a/config/monitoring.sensor_config.user_integrity.yml b/config/monitoring.sensor_config.user_integrity.yml new file mode 100644 index 00000000..d758b827 --- /dev/null +++ b/config/monitoring.sensor_config.user_integrity.yml @@ -0,0 +1,18 @@ +uuid: eaa845cc-e879-49ec-a30f-5a967989a144 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: fZcg_y45GagsyBICfNbPSp_oR1IO1D2sqBiTfUcNfKg +id: user_integrity +label: 'Privileged user integrity' +description: 'Monitors name and e-mail changes of users with access to restricted permissions. Checks if authenticated or anonymous users have privileged access' +category: 'User activity' +plugin_id: user_integrity +result_class: null +value_label: null +value_type: no_value +caching_time: 3600 +settings: { } +thresholds: + type: none diff --git a/config/monitoring.sensor_config.user_new.yml b/config/monitoring.sensor_config.user_new.yml new file mode 100644 index 00000000..3a906e32 --- /dev/null +++ b/config/monitoring.sensor_config.user_new.yml @@ -0,0 +1,29 @@ +uuid: 571d650e-aab7-408a-b6cf-fd6cd26eead9 +langcode: en +status: true +dependencies: + module: + - user +_core: + default_config_hash: 3jxUL0sAC7XVALySBTxJIuby63wwL1rq3lNVd3hhIAg +id: user_new +label: 'New users' +description: '' +category: 'User activity' +plugin_id: entity_aggregator +result_class: null +value_label: Users +value_type: number +caching_time: 3600 +settings: + time_interval_field: created + time_interval_value: 86400 + verbose_fields: + - id + - label + - created + entity_type: user +thresholds: + type: exceeds + warning: 10 + critical: null diff --git a/config/monitoring.sensor_config.user_sessions_all.yml b/config/monitoring.sensor_config.user_sessions_all.yml new file mode 100644 index 00000000..93e99231 --- /dev/null +++ b/config/monitoring.sensor_config.user_sessions_all.yml @@ -0,0 +1,31 @@ +uuid: 20f1928e-a6bb-421e-bd4b-7540364ddcfd +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: CgjKrimMTwQLluUztd3QSleqDmulTMOuotcztsnZgbw +id: user_sessions_all +label: 'All active sessions' +description: 'All active sessions of logged in and anonymous users without logout' +category: 'User activity' +plugin_id: database_aggregator +result_class: null +value_label: 'Active sessions' +value_type: number +caching_time: null +settings: + time_interval_field: timestamp + time_interval_value: 86400 + conditions: + - + field: uid + value: '0' + operator: '!=' + verbose_fields: + - uid + - hostname + - timestamp + table: sessions + history_status: true +thresholds: + type: none diff --git a/config/monitoring.sensor_config.user_sessions_authenticated.yml b/config/monitoring.sensor_config.user_sessions_authenticated.yml new file mode 100644 index 00000000..bcfe26ce --- /dev/null +++ b/config/monitoring.sensor_config.user_sessions_authenticated.yml @@ -0,0 +1,31 @@ +uuid: 89494e8d-805d-4e47-b0ad-c0f608cac473 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: EpAogeIPxfKYPscZ5c_7tMyu8nazITOFQAZfPOLV09w +id: user_sessions_authenticated +label: 'Authenticated user sessions' +description: 'Authenticated user sessions without logout' +category: 'User activity' +plugin_id: database_aggregator +result_class: null +value_label: 'Active sessions' +value_type: number +caching_time: null +settings: + time_interval_field: timestamp + time_interval_value: 86400 + conditions: + - + field: uid + value: '0' + operator: '!=' + verbose_fields: + - uid + - hostname + - timestamp + table: sessions + history_status: true +thresholds: + type: none diff --git a/config/monitoring.settings.yml b/config/monitoring.settings.yml new file mode 100644 index 00000000..4b27e5ac --- /dev/null +++ b/config/monitoring.settings.yml @@ -0,0 +1,5 @@ +_core: + default_config_hash: sAiUB_L7HqkXvzfjQM5E067DQBLcaAYSrv1po8gzN1k +sensor_call_logging: on_request +cron_run_sensors: false +disable_sensor_autocreate: false diff --git a/config/ohdear_integration.settings.yml b/config/ohdear_integration.settings.yml new file mode 100644 index 00000000..f6e7311f --- /dev/null +++ b/config/ohdear_integration.settings.yml @@ -0,0 +1,5 @@ +ohdear_healthcheck_secret: xyzzy +ohdear_cron_uri: 'http://sesame-site.docksal.site/monitoring/ping/01264e9f-3883-48d1-ae38-ada980d9083e' +ohdear_api_key: xyzzy +ohdear_site_id: 3 +ohdear_base_url: 'http://sesame-site.docksal.site/monitoring/api/' diff --git a/config/security_review.check.security_review-admin_permissions.yml b/config/security_review.check.security_review-admin_permissions.yml new file mode 100644 index 00000000..b7fd5f0b --- /dev/null +++ b/config/security_review.check.security_review-admin_permissions.yml @@ -0,0 +1 @@ +id: security_review-admin_permissions diff --git a/config/security_review.check.security_review-blocked_admin_account.yml b/config/security_review.check.security_review-blocked_admin_account.yml new file mode 100644 index 00000000..15a8c830 --- /dev/null +++ b/config/security_review.check.security_review-blocked_admin_account.yml @@ -0,0 +1 @@ +id: security_review-blocked_admin_account diff --git a/config/security_review.check.security_review-error_reporting.yml b/config/security_review.check.security_review-error_reporting.yml new file mode 100644 index 00000000..cd59a60e --- /dev/null +++ b/config/security_review.check.security_review-error_reporting.yml @@ -0,0 +1 @@ +id: security_review-error_reporting diff --git a/config/security_review.check.security_review-executable_php.yml b/config/security_review.check.security_review-executable_php.yml new file mode 100644 index 00000000..8fb06fbc --- /dev/null +++ b/config/security_review.check.security_review-executable_php.yml @@ -0,0 +1 @@ +id: security_review-executable_php diff --git a/config/security_review.check.security_review-failed_logins.yml b/config/security_review.check.security_review-failed_logins.yml new file mode 100644 index 00000000..09d30cce --- /dev/null +++ b/config/security_review.check.security_review-failed_logins.yml @@ -0,0 +1 @@ +id: security_review-failed_logins diff --git a/config/security_review.check.security_review-field.yml b/config/security_review.check.security_review-field.yml new file mode 100644 index 00000000..fc9d14af --- /dev/null +++ b/config/security_review.check.security_review-field.yml @@ -0,0 +1 @@ +id: security_review-field diff --git a/config/security_review.check.security_review-file_perms.yml b/config/security_review.check.security_review-file_perms.yml new file mode 100644 index 00000000..6ab39814 --- /dev/null +++ b/config/security_review.check.security_review-file_perms.yml @@ -0,0 +1 @@ +id: security_review-file_perms diff --git a/config/security_review.check.security_review-input_formats.yml b/config/security_review.check.security_review-input_formats.yml new file mode 100644 index 00000000..0f17f697 --- /dev/null +++ b/config/security_review.check.security_review-input_formats.yml @@ -0,0 +1 @@ +id: security_review-input_formats diff --git a/config/security_review.check.security_review-last_cron_run.yml b/config/security_review.check.security_review-last_cron_run.yml new file mode 100644 index 00000000..412c0129 --- /dev/null +++ b/config/security_review.check.security_review-last_cron_run.yml @@ -0,0 +1 @@ +id: security_review-last_cron_run diff --git a/config/security_review.check.security_review-private_files.yml b/config/security_review.check.security_review-private_files.yml new file mode 100644 index 00000000..29a6995d --- /dev/null +++ b/config/security_review.check.security_review-private_files.yml @@ -0,0 +1 @@ +id: security_review-private_files diff --git a/config/security_review.check.security_review-query_errors.yml b/config/security_review.check.security_review-query_errors.yml new file mode 100644 index 00000000..00cacb65 --- /dev/null +++ b/config/security_review.check.security_review-query_errors.yml @@ -0,0 +1 @@ +id: security_review-query_errors diff --git a/config/security_review.check.security_review-temporary_files.yml b/config/security_review.check.security_review-temporary_files.yml new file mode 100644 index 00000000..691d66c9 --- /dev/null +++ b/config/security_review.check.security_review-temporary_files.yml @@ -0,0 +1 @@ +id: security_review-temporary_files diff --git a/config/security_review.check.security_review-trusted_hosts.yml b/config/security_review.check.security_review-trusted_hosts.yml new file mode 100644 index 00000000..f529411e --- /dev/null +++ b/config/security_review.check.security_review-trusted_hosts.yml @@ -0,0 +1 @@ +id: security_review-trusted_hosts diff --git a/config/security_review.check.security_review-upload_extensions.yml b/config/security_review.check.security_review-upload_extensions.yml new file mode 100644 index 00000000..3d0ea55f --- /dev/null +++ b/config/security_review.check.security_review-upload_extensions.yml @@ -0,0 +1 @@ +id: security_review-upload_extensions diff --git a/config/security_review.check.security_review-username_same_as_password.yml b/config/security_review.check.security_review-username_same_as_password.yml new file mode 100644 index 00000000..c9b584fe --- /dev/null +++ b/config/security_review.check.security_review-username_same_as_password.yml @@ -0,0 +1 @@ +id: security_review-username_same_as_password diff --git a/config/security_review.check.security_review-vendor_directory_location.yml b/config/security_review.check.security_review-vendor_directory_location.yml new file mode 100644 index 00000000..aede41a6 --- /dev/null +++ b/config/security_review.check.security_review-vendor_directory_location.yml @@ -0,0 +1 @@ +id: security_review-vendor_directory_location diff --git a/config/security_review.check.security_review-views_access.yml b/config/security_review.check.security_review-views_access.yml new file mode 100644 index 00000000..19fdb810 --- /dev/null +++ b/config/security_review.check.security_review-views_access.yml @@ -0,0 +1 @@ +id: security_review-views_access diff --git a/config/security_review.settings.yml b/config/security_review.settings.yml new file mode 100644 index 00000000..46a3c76c --- /dev/null +++ b/config/security_review.settings.yml @@ -0,0 +1,5 @@ +_core: + default_config_hash: ylcsF3ZfWc6Ua1nUaTXyVy2TNwupiRAtBA6w_whTMGg +configured: false +untrusted_roles: { } +log: true diff --git a/config/views.view.monitoring_sensor_results.yml b/config/views.view.monitoring_sensor_results.yml new file mode 100644 index 00000000..1bc28296 --- /dev/null +++ b/config/views.view.monitoring_sensor_results.yml @@ -0,0 +1,721 @@ +uuid: b6080134-832c-4ea2-b7b8-dd446f742d85 +langcode: en +status: true +dependencies: + module: + - monitoring + - user +_core: + default_config_hash: 4VYaSOE27-WXztk6vk3ElpWrZmxuAdeTUVU-HnBA_k4 +id: monitoring_sensor_results +label: 'Monitoring Sensor Results' +module: views +description: '' +tag: '' +base_table: monitoring_sensor_result +base_field: record_id +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + rendering_language: '***LANGUAGE_entity_default***' + access: + type: perm + options: + perm: 'monitoring reports' + cache: + type: none + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: 'false' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 50 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: '‹ previous' + next: 'next ›' + first: '« first' + last: 'last »' + quantity: 9 + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + override: true + sticky: false + caption: '' + summary: '' + description: '' + columns: + sensor_name: sensor_name + sensor_status: sensor_status + sensor_message: sensor_message + execution_time: execution_time + timestamp: timestamp + info: + sensor_name: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + sensor_status: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + sensor_message: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + execution_time: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + timestamp: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + default: '-1' + empty_table: true + row: + type: fields + fields: + sensor_name: + id: sensor_name + table: monitoring_sensor_result + field: sensor_name + relationship: none + group_type: group + admin_label: '' + label: 'Sensor name' + exclude: false + alter: + alter_text: false + text: '' + make_link: true + path: 'admin/reports/monitoring/sensors/{{ sensor_name }}' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + entity_type: monitoring_sensor_result + plugin_id: monitoring_sensor_name + sensor_status: + id: sensor_status + table: monitoring_sensor_result + field: sensor_status + relationship: none + group_type: group + admin_label: '' + label: Status + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + entity_type: monitoring_sensor_result + plugin_id: standard + sensor_message: + id: sensor_message + table: monitoring_sensor_result + field: sensor_message + relationship: none + group_type: group + admin_label: '' + label: 'Status message' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + entity_type: monitoring_sensor_result + plugin_id: standard + execution_time: + id: execution_time + table: monitoring_sensor_result + field: execution_time + relationship: none + group_type: group + admin_label: '' + label: 'Execution time' + exclude: false + alter: + alter_text: true + text: '{{ execution_time }}ms' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + entity_type: monitoring_sensor_result + plugin_id: standard + timestamp: + id: timestamp + table: monitoring_sensor_result + field: timestamp + relationship: none + group_type: group + admin_label: '' + label: Timestamp + exclude: false + alter: + alter_text: false + text: '{{ execution_time }}ms' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + date_format: short + custom_date_format: '' + timezone: '' + entity_type: monitoring_sensor_result + plugin_id: date + filters: { } + sorts: + timestamp: + id: timestamp + table: monitoring_sensor_result + field: timestamp + relationship: none + group_type: group + admin_label: '' + order: DESC + exposed: false + expose: + label: '' + granularity: second + entity_type: monitoring_sensor_result + plugin_id: date + record_id: + id: record_id + table: monitoring_sensor_result + field: record_id + relationship: none + group_type: group + admin_label: '' + order: DESC + exposed: false + expose: + label: '' + entity_type: monitoring_sensor_result + plugin_id: standard + title: Log + header: { } + footer: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: false + content: 'No sensor results yet.' + plugin_id: text_custom + relationships: { } + arguments: + sensor_name: + id: sensor_name + table: monitoring_sensor_result + field: sensor_name + relationship: none + group_type: group + admin_label: '' + default_action: ignore + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + glossary: false + limit: 0 + case: none + path_case: none + transform_dash: false + break_phrase: false + entity_type: monitoring_sensor_result + plugin_id: string + display_extenders: { } + cache_metadata: + contexts: + - 'languages:language_interface' + - url + - 'url.query_args.pagers:0' + - user.permissions + cacheable: false + detail_page_log: + display_plugin: embed + id: detail_page_log + display_title: 'Detail Page Log' + position: 2 + display_options: + rendering_language: '***LANGUAGE_entity_default***' + display_extenders: { } + fields: + timestamp: + id: timestamp + table: monitoring_sensor_result + field: timestamp + relationship: none + group_type: group + admin_label: '' + label: Timestamp + exclude: false + alter: + alter_text: false + text: '{{ execution_time }}ms' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + date_format: short + custom_date_format: '' + timezone: '' + entity_type: monitoring_sensor_result + plugin_id: date + sensor_status: + id: sensor_status + table: monitoring_sensor_result + field: sensor_status + relationship: none + group_type: group + admin_label: '' + label: Status + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + entity_type: monitoring_sensor_result + plugin_id: standard + sensor_message: + id: sensor_message + table: monitoring_sensor_result + field: sensor_message + relationship: none + group_type: group + admin_label: '' + label: 'Status message' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + entity_type: monitoring_sensor_result + plugin_id: standard + execution_time: + id: execution_time + table: monitoring_sensor_result + field: execution_time + relationship: none + group_type: group + admin_label: '' + label: 'Execution time' + exclude: false + alter: + alter_text: true + text: '{{ execution_time }}ms' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + entity_type: monitoring_sensor_result + plugin_id: standard + defaults: + fields: false + display_description: '' + cache_metadata: + contexts: + - 'languages:language_interface' + - url + - 'url.query_args.pagers:0' + - user.permissions + cacheable: false + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + rendering_language: '***LANGUAGE_entity_default***' + display_extenders: { } + path: admin/reports/monitoring/log + menu: + type: tab + title: Log + description: '' + parent: monitoring.sensor_list + weight: 0 + context: '0' + menu_name: admin + cache_metadata: + contexts: + - 'languages:language_interface' + - url + - 'url.query_args.pagers:0' + - user.permissions + cacheable: false diff --git a/html/modules/custom/ocha_drd/config/optional/system.action.ocha_drd_action_requirements.yml b/html/modules/custom/ocha_drd/config/optional/system.action.ocha_drd_action_requirements.yml deleted file mode 100644 index 864854ad..00000000 --- a/html/modules/custom/ocha_drd/config/optional/system.action.ocha_drd_action_requirements.yml +++ /dev/null @@ -1,10 +0,0 @@ -langcode: en -status: true -dependencies: - module: - - drd -id: ocha_drd_action_requirements -label: 'OCHA Requirements' -type: drd_domain -plugin: ocha_drd_action_requirements -configuration: { } diff --git a/html/modules/custom/ocha_drd/src/Agent/Action/V8/OchaDrdRequirements.php b/html/modules/custom/ocha_drd/src/Agent/Action/V8/OchaDrdRequirements.php deleted file mode 100644 index 2b76b989..00000000 --- a/html/modules/custom/ocha_drd/src/Agent/Action/V8/OchaDrdRequirements.php +++ /dev/null @@ -1,105 +0,0 @@ -get('account_switcher'), - $container->get('config.factory'), - $container->get('database'), - $container->get('entity_type.manager'), - $container->get('module_handler'), - $container->get('datetime.time'), - $container->get('state'), - $container->get('settings') - ); - } - - /** - * Base constructor. - * - * @param \Symfony\Component\DependencyInjection\ContainerInterface $container - * The container. - * @param \Drupal\Core\Session\AccountSwitcherInterface $accountSwitcher - * The account switcher. - * @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory - * The config factory. - * @param \Drupal\Core\Database\Connection $database - * The database connection. - * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager - * The entity type manager. - * @param \Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler - * The module handler. - * @param \Drupal\Component\Datetime\Time $time - * The time. - */ - final public function __construct(ContainerInterface $container, AccountSwitcherInterface $accountSwitcher, ConfigFactoryInterface $configFactory, Connection $database, EntityTypeManagerInterface $entityTypeManager, ModuleHandlerInterface $moduleHandler, Time $time, StateInterface $state, Settings $settings) { - $this->container = $container; - $this->accountSwitcher = $accountSwitcher; - $this->configFactory = $configFactory; - $this->database = $database; - $this->entityTypeManager = $entityTypeManager; - $this->moduleHandler = $moduleHandler; - $this->time = $time; - $this->state = $state; - $this->settings = $settings; - } - - /** - * {@inheritdoc} - */ - public function collect(): array { - $requirements = []; - - $current_release = $this->state->get('environment_indicator.current_release'); - $deployment_identifier = $this->settings->get('deployment_identifier'); - - $requirements['ocha_drd.current_release'] = [ - 'title' => 'Current release', - 'value' => empty($current_release) ? 'Not specified' : $current_release, - 'severity' => REQUIREMENT_OK, - ]; - - $requirements['ocha_drd.deployment_identifier'] = [ - 'title' => 'Deployment identifier', - 'value' => empty($deployment_identifier) ? 'Not specified' : $deployment_identifier, - 'severity' => REQUIREMENT_OK, - ]; - - return $requirements; - } - -} diff --git a/html/modules/custom/ocha_drd/src/Plugin/Action/OchaDrdRequirements.php b/html/modules/custom/ocha_drd/src/Plugin/Action/OchaDrdRequirements.php deleted file mode 100644 index f296dc38..00000000 --- a/html/modules/custom/ocha_drd/src/Plugin/Action/OchaDrdRequirements.php +++ /dev/null @@ -1,44 +0,0 @@ -getRemoteSettings(); - $settings['ocha_drd.current_release'] = $response['ocha_drd.current_release']; - $settings['ocha_drd.deployment_identifier'] = $response['ocha_drd.deployment_identifier']; - - /* @noinspection PhpUnhandledExceptionInspection */ - $entity - ->cacheSettings($settings) - ->save(); - return $response; - } - return FALSE; - } - -} diff --git a/html/modules/custom/ocha_drd/config/install/monitoring.sensor_config.ocha_current_release.yml b/html/modules/custom/ocha_monitoring/config/optional/monitoring.sensor_config.ocha_current_release.yml similarity index 100% rename from html/modules/custom/ocha_drd/config/install/monitoring.sensor_config.ocha_current_release.yml rename to html/modules/custom/ocha_monitoring/config/optional/monitoring.sensor_config.ocha_current_release.yml diff --git a/html/modules/custom/ocha_drd/config/install/monitoring.sensor_config.ocha_deployment_identifier.yml b/html/modules/custom/ocha_monitoring/config/optional/monitoring.sensor_config.ocha_deployment_identifier.yml similarity index 100% rename from html/modules/custom/ocha_drd/config/install/monitoring.sensor_config.ocha_deployment_identifier.yml rename to html/modules/custom/ocha_monitoring/config/optional/monitoring.sensor_config.ocha_deployment_identifier.yml diff --git a/html/modules/custom/ocha_drd/ocha_drd.info.yml b/html/modules/custom/ocha_monitoring/ocha_monitoring.info.yml similarity index 51% rename from html/modules/custom/ocha_drd/ocha_drd.info.yml rename to html/modules/custom/ocha_monitoring/ocha_monitoring.info.yml index 5c6c3cfc..fbf2293a 100644 --- a/html/modules/custom/ocha_drd/ocha_drd.info.yml +++ b/html/modules/custom/ocha_monitoring/ocha_monitoring.info.yml @@ -1,6 +1,5 @@ -name: OCHA DRD Agent +name: OCHA Monitoring type: module -description: OCHA DRD Agent. +description: OCHA Monitoring Agent. package: Administration core_version_requirement: ^10 || ^11 -project: drd_agent diff --git a/html/modules/custom/ocha_drd/src/Plugin/monitoring/SensorPlugin/OchaCurrentReleaseSensorPlugin.php b/html/modules/custom/ocha_monitoring/src/Plugin/monitoring/SensorPlugin/OchaCurrentReleaseSensorPlugin.php similarity index 93% rename from html/modules/custom/ocha_drd/src/Plugin/monitoring/SensorPlugin/OchaCurrentReleaseSensorPlugin.php rename to html/modules/custom/ocha_monitoring/src/Plugin/monitoring/SensorPlugin/OchaCurrentReleaseSensorPlugin.php index 28722b6c..bafd4eb2 100644 --- a/html/modules/custom/ocha_drd/src/Plugin/monitoring/SensorPlugin/OchaCurrentReleaseSensorPlugin.php +++ b/html/modules/custom/ocha_monitoring/src/Plugin/monitoring/SensorPlugin/OchaCurrentReleaseSensorPlugin.php @@ -1,6 +1,6 @@ setValue($deployment_identifier ?? 'not specified'); $result->setMessage($deployment_identifier ?? 'Not specified');