checl_http vhost help


#1

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?


#2

try running

./check_http --help 

and that check_command definition is wrong… try having a look at the default definitions in the nagios example files to see how to use arguments.