check_ssmtp_issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ghost-moro
Posts: 2
Joined: Wed Jul 29, 2020 8:44 am

check_ssmtp_issue

Post 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
Attachments
result of telnet
result of telnet
ghost-moro
Posts: 2
Joined: Wed Jul 29, 2020 8:44 am

Re: check_ssmtp_issue

Post 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 :)
Locked