From ec967ef09c2a12bff09e34b091495f495d81abb4 Mon Sep 17 00:00:00 2001 From: MSS <124117691+MSS970@users.noreply.github.com> Date: Thu, 5 Nov 2026 19:12:41 +0400 Subject: [PATCH] Add certificate expiry email interval configuration Added configuration for certificate expiry notification email interval with options for different day intervals. --- setup.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/setup.php b/setup.php index e30ad05..e704f82 100644 --- a/setup.php +++ b/setup.php @@ -492,6 +492,21 @@ function servcheck_config_settings(): void { '90' => __('90 days in advance', 'servcheck'), ] ], + 'servcheck_certificate_expiry_email_interval' => [ + 'friendly_name' => __('Certificate expiry notification email interval', 'servcheck'), + 'description' => __('If SSL/TLS service certificate expiration is enabled, set how the interval (days) for the email notification to be sent, however, if the expiry date is passed, the email notification will be sent everyday', 'servcheck'), + 'method' => 'drop_array', + 'default' => 10, + 'array' => [ + '1' => __('1 day', 'servcheck'), + '3' => __('3 days', 'servcheck'), + '5' => __('5 days', 'servcheck'), + '7' => __('7 days', 'servcheck'), + '10' => __('10 days', 'servcheck'), + '20' => __('20 days', 'servcheck'), + '30' => __('30 days', 'servcheck'), + ] + ], 'servcheck_data_retention' => [ 'friendly_name' => __('How long to keep logs', 'servcheck'), 'description' => __('Enter the period after which older logs will be automatically deleted.', 'servcheck'),