#!/bin/sh -- # # The check_http plugin can't check the ssl cert status, and the page content, in # the same call. Fixing it looks possible but annoying. # check the cert cert_msg=`/usr/local/nagios/libexec/check_http -S -C14 $*` cert_status=$? if [ $cert_status != 0 ]; then echo $cert_msg exit $cert_status fi # now check the content exec /usr/local/nagios/libexec/check_http -S $*