Page 1 of 1

check_ssmtp_issue

Posted: Wed Jul 29, 2020 9:00 am
by ghost-moro
hello

I dont know if someone can help , i have an issue with SSMTP check.
the target is to supervise the end date of the ssl certificat for the smtp
actually we do two check one for date of certificate and the other for SMTP
now they asked me to create a check for SSMtp

Test Hello request with telnet on my exchange server on port 465 it works u find a screenshot in the attaéchement
i tested this check : ./check_TCP¨-H xxx.xxx.xxx.xxx -S -p 465 -c 5 -w 15

I had this result :

./check_tcp -H xxx.xxx.xxx.xxx -4 -p 465 -S -vvv
Using service TCP
Port: 465
flags: 0x3
CRITICAL - Cannot make SSL connection.

when i tried to do it with ssmtp check : ./check_ssmtp -h xxx.xxx.xxx.xxx -s -P 465 -c 5 -w 15 -v

sudo ./check_ssmtp -H xxx.xxx.xxx.xxx -c 5 -w 15 -p 465 -v

CRITICAL - Cannot make SSL connection.
139978150225840:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:794:

and i have the same message if i use smtp_check on this port i have the same message

my plugins version it's v2.1.4
i dont have lot of idea to resolve this shit i dont have lot of skillz on linux im windows men :) im really lost can u help

Thanks in advance

Re: check_ssmtp_issue

Posted: Mon Aug 03, 2020 10:40 am
by ghost-moro
hello i found a solution u have to speciofy the option -P and spcify --TLS

u can close this case thanks for no help :)