Public bug reported:
After upgrade to 24.10 previously working smtp tls checks started
reporting this:
check_smtp: Set either -s/--ssl/--tls or -S/--starttls
Testing:
$ /usr/lib/nagios/plugins/check_smtp -H mail.langfeldt.net -4
SMTP OK - 0.043 sec. response time|time=0.043319s;;;0.000000
But I want to to check the TLS certificate using starttls protocol. It
prints a error message when I give the option for starttls:
$ /usr/lib/nagios/plugins/check_smtp -H mail.langfeldt.net -4 -D 21,7 -v -S
check_smtp: Set either -s/--ssl/--tls or -S/--starttls
Usage:
check_smtp -H host [-p port] [-4|-6] [-e expect] [-C command] [-R response]
[-f from addr]
[-A authtype -U authuser -P authpass] [-w warn] [-c crit] [-t timeout] [-q]
[-F fqdn] [-S] [-L] [-D warn days cert expire[,crit days cert expire]] [-r]
[--sni] [-v]
Remove the -S the plugin does not give a error message, but is also does
not start TLS or check the expiry time of the certificate:
$ /usr/lib/nagios/plugins/check_smtp -H mail.langfeldt.net -4 -D 21,7 -v
HELOCMD: HELO monitor
250 mail.langfeldt.net
sent QUIT
received 221 2.0.0 Bye
SMTP OK - 0.091 sec. response time, 221 2.0.0 Bye
|time=0.090963s;;;0.000000
The check_smtps plugin is working, but that's for ssl protocol not tls.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: monitoring-plugins-basic 2.3.5-1ubuntu3
ProcVersionSignature: Ubuntu 6.8.0-51.52-generic 6.8.12
Uname: Linux 6.8.0-51-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.3
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue Jan 21 23:49:33 2025
SourcePackage: monitoring-plugins
UpgradeStatus: Upgraded to noble on 2024-12-18 (35 days ago)
** Affects: monitoring-plugins (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug noble
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2095449
Title:
check_smtp can't ssl or tls
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/monitoring-plugins/+bug/2095449/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs