Trouble checking vhost

I am trying to monitor several sub-domains all of which have the same public IP address.

…Example…
domain.com


test1.domain.com

Example of the commands I am using
check_command check_http!-H test.domain.com

My problem is, Nagios reports HTTP as OK even when I take the vhost offline and it isn’t accessible, this leads me to believe the command I am using is incorrect?

By default the check_http plugin just connects to the http server, but doesn’t check the response.
There are a lot of other options for this plugin, run it on the command line to see.
You’ll have to choose the best ones for your situation.

Best to ask more in the “Plug-In” section of this forum.

GR