I have an issue with one of my checks. Basically I'm trying to monitor a HTTPS vhost. Initial setup was fine, for both HTTP and HTTPS.
The issue occur when I deployed the site live. Because the client wishes to force HTTPS, I'm getting the following:
The response from HTTPS vhost:
Code: Select all
root@hera:/usr/local/nagios/libexec# ./check_http -I 10.123.45.67 -H domain.com -S
HTTP WARNING: HTTP/1.1 403 Forbidden - 7472 bytes in 0.101 second response time |time=0.100901s;;;0.000000 size=7472B;;;0
Code: Select all
root@hera:/usr/local/nagios/libexec# ./check_http -I 10.123.45.67 -H domain.com
HTTP OK: HTTP/1.1 301 Moved Permanently - 463 bytes in 0.002 second response time |time=0.002416s;;;0.000000 size=463B;;;0
This are my vhosts on the live server:
Code: Select all
<VirtualHost *:80>
ServerName domain.com
ServerAlias www.domain.com
Redirect permanent / https://www.domain.com/
ErrorLog ${APACHE_LOG_DIR}/domain-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/domain.log combined
</VirtualHost>
Thank you.