[monitoring-plugins] check_smtp: Restore connection time perfdata ...
GitHub
git at monitoring-plugins.org
Tue Oct 20 00:30:13 CEST 2026
Module: monitoring-plugins
Branch: master
Commit: bb9382112578e808ff6091cf7115aaa98562d4a5
Author: sean0407 <sean0407 at gmail.com>
Committer: GitHub <noreply at github.com>
Date: Tue Oct 20 06:27:55 2026 +0800
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=bb938211
check_smtp: Restore connection time perfdata (#2376)
* check_smtp: Restore connection time perfdata
---------
Co-authored-by: Sean <sean at SeandeMac-mini.local>
Co-authored-by: Sean Li <22557931+sean0407 at users.noreply.github.com>
---
plugins/check_smtp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index bdee7414..3f495a8e 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -613,6 +613,7 @@ int main(int argc, char **argv) {
mopl_utils_xasprintf(&sc_connection_time.output, "connection time: %.3gs", elapsed_time);
sc_connection_time =
mp_set_subcheck_state(sc_connection_time, mp_get_pd_status(pd_elapsed_time));
+ mp_add_perfdata_to_subcheck(&sc_connection_time, pd_elapsed_time);
mp_add_subcheck_to_check(&overall, sc_connection_time);
mp_exit(overall);
More information about the Commits
mailing list