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...@monitoring-plugins.org] On 
Behalf Of Axén Ola
Sent: Tuesday, 11 October 2016 8:21 PM
To: help@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]

Reply via email to