summaryrefslogtreecommitdiffstats
path: root/plugins/check_smtp.d/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_smtp.d/config.h')
-rw-r--r--plugins/check_smtp.d/config.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/plugins/check_smtp.d/config.h b/plugins/check_smtp.d/config.h
index 0a6511ef..bc433093 100644
--- a/plugins/check_smtp.d/config.h
+++ b/plugins/check_smtp.d/config.h
@@ -1,6 +1,7 @@
1#pragma once 1#pragma once
2 2
3#include "../../config.h" 3#include "../../config.h"
4#include "thresholds.h"
4#include <stddef.h> 5#include <stddef.h>
5#include <string.h> 6#include <string.h>
6 7
@@ -18,20 +19,18 @@ typedef struct {
18 char *server_expect; 19 char *server_expect;
19 bool ignore_send_quit_failure; 20 bool ignore_send_quit_failure;
20 21
21 double warning_time; 22 mp_thresholds connection_time;
22 bool check_warning_time; 23
23 double critical_time;
24 bool check_critical_time;
25 bool use_ehlo; 24 bool use_ehlo;
26 bool use_lhlo; 25 bool use_lhlo;
27 26
28 char *from_arg; 27 char *from_arg;
29 bool send_mail_from; 28 bool send_mail_from;
30 29
31 int ncommands; 30 unsigned long ncommands;
32 char **commands; 31 char **commands;
33 32
34 int nresponses; 33 unsigned long nresponses;
35 char **responses; 34 char **responses;
36 35
37 char *authtype; 36 char *authtype;
@@ -58,10 +57,7 @@ check_smtp_config check_smtp_config_init() {
58 .server_expect = SMTP_EXPECT, 57 .server_expect = SMTP_EXPECT,
59 .ignore_send_quit_failure = false, 58 .ignore_send_quit_failure = false,
60 59
61 .warning_time = 0, 60 .connection_time = mp_thresholds_init(),
62 .check_warning_time = false,
63 .critical_time = 0,
64 .check_critical_time = false,
65 .use_ehlo = false, 61 .use_ehlo = false,
66 .use_lhlo = false, 62 .use_lhlo = false,
67 63