Specifically, how (can?) I do something like this (which doesn’t seem to work)
In one of my hosts where i use the $HOSTNAME$ variable it is also inserted in the field for “Hosts name / IP address” and it is working without problem.
Ok, that seems to have worked to put $HOSTNAME$ into both fields.
If I only put it into the virtual host, I still got the error.
I could put the actual hostname in virtualhost and it worked fine.
Works
$HOSTNAME in both hostname and vhost fields of the rule
Service check command check_mk_active-http!’–ssl’ ‘–onredirect=follow’ ‘–sni’ ‘$HOSTNAME$’ ‘$HOSTNAME$’
I put the actual hostname into the vhost in the rule
Service check command check_mk_active-http!’–ssl’ ‘–onredirect=follow’ ‘–sni’ ‘$HOSTNAME$’ ‘www..com’
Didn’t work before but is now working (or maybe I had a typo, now I’m questioning myself)
This is only with $HOSTNAME$ in the vhost field in the rule
check_mk_active-http!’–ssl’ ‘–onredirect=follow’ ‘–sni’ ‘$_HOSTADDRESS_4$’ ‘$HOSTNAME$’
Anyway, the best I can tell, it DOES work to use $HOSTNAME$ in the rule.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.