Xymon Mailing List Archive search

RDP TLS cert monitoring

list Grant Taylor
Fri, 25 Oct 2024 15:38:09 -0500
Message-Id: <user-a6ee28df299c@xymon.invalid>

On 9/25/24 8:26 PM, Jeremy Laidman wrote:
I'd be surprised if you couldn't use https://<IP>:3389/ and get some kind of useful result.
I can get useful information with the following OpenSSL commands:

    openssl s_client -connect <IP>:3389 0</dev/null 2>/dev/null | openssl x509 -noout -subject -startdate -enddate
You can use the "ssl" keyword in protocols.cfg and that checks the certificate. Something like this:

[rdps]
         port 3389
         options ssl
         send "QUIT\r\n"

The "send" line is not necessary, but it lets the RDP endpoint close the session, and might avoid error logs being added to the event logs.
Your rdps protocol idea worked out PERFECTLY!

Xymon showed that the system I found the expired cert on was good.  But as soon as I asked it to monitor an additional host, it found that the additional hosts's TLS cert expired 47 days ago.  <facePALM>

Sorry for the delay getting back to this thread.


-- 
Grant. . . .
unix || die