check_https_certificate
Gareth Fletcher
gareth.fletcher at onenet.co.nz
Tue Oct 11 10:10:49 CEST 2016
Hey Ola!
You should look into SNI https://en.wikipedia.org/wiki/Server_Name_Indication to see what's happening here.
Try using check_http with the --sni flag e.g.:
# ./check_http -H www.tekniskaverken.se -S --sni -C 30,14
OK - Certificate 'www.tekniskaverken.se' will expire on 09/22/2018 23:59.
# ./check_http -H www.bixia.se -S --sni -C 30,14
OK - Certificate '*.bixia.se' will expire on 04/24/2018 23:59.
# ./check_http -H www.utsikt.se -S --sni -C 30,14
OK - Certificate '*.utsikt.se' will expire on 05/20/2019 23:59.
Hope this helps!! Just let us know if you have any other issues :)
Take care
Gareth
From: Help [mailto:help-bounces+gareth.fletcher=onenet.co.nz at monitoring-plugins.org] On Behalf Of Axén Ola
Sent: Tuesday, 11 October 2016 8:21 PM
To: help at monitoring-plugins.org
Subject: check_https_certificate
I have a webserver that hosts three websites. All of them use port 443 and some kind of forwarding.
When I test this check I can only get one certificate but I have three of them to different websites.
How can I set up the check?
https://www.tekniskaverken.se<http://scanmail.trustwave.com/?c=6630&d=0JP81-bJVB5u3PgSkXBd7X_Li8C0OE6HXqZBp6sKQw&s=4&u=https%3a%2f%2fwww%2etekniskaverken%2ese>
https://www.bixia.se<http://scanmail.trustwave.com/?c=6630&d=0JP81-bJVB5u3PgSkXBd7X_Li8C0OE6HXvYToqsLFQ&s=4&u=https%3a%2f%2fwww%2ebixia%2ese>
https://www.utsikt.se<http://scanmail.trustwave.com/?c=6630&d=0JP81-bJVB5u3PgSkXBd7X_Li8C0OE6HXvQSo_BfEA&s=4&u=https%3a%2f%2fwww%2eutsikt%2ese>
Ola Axén
Systemtekniker, IT
Tel 013-20 91 22
_________________________________
Tekniska verken i Linköping AB (publ)
Box 1500
581 15 Linköping
Växel: 013-20 80 00
www.tekniskaverken.se<http://scanmail.trustwave.com/?c=6630&d=0JP81-bJVB5u3PgSkXBd7X_Li8C0OE6HXqQRpa9fQw&s=4&u=http%3a%2f%2fwww%2etekniskaverken%2ese>
[tiny-logo-75px]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20161011/b0879962/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2828 bytes
Desc: image001.png
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20161011/b0879962/attachment.png>
More information about the Help
mailing list