check_http

Anshul Gupta tech at anshulgupta.com
Mon Dec 15 07:37:47 CET 2003


Hi All,

I am new nagios user. I want to check the status the virtual hosts but 
couldn't do it.

Suppose there is one virtual host,
abc.xyz.com - 1.2.3.4

Now to check it, I use the default arguments in check_http in the 
checkcommands.cfg.

But if I add shouldfail.xyz.com - 1.2.3.4, it still gives OK as it 
establishes the connection to 1.2.3.4 at port 80 and doesn't check for 
any association between the HOSTADDRESS and HOSTNAME.

I modified the check_http arguments -H $HOMENAME$. It will fail but if 
I add www.hotmail.com - 1.2.3.4 it will still say it's OK. Is there any 
way to check both HOSTADDRESS and HOSTNAME.

Also can I check the DocumentRoot of virtual host? The uri thing is not 
working for me. Does check_http actually sends the vhost name and try 
to check it's document root?


Any help would be appreciated.

Thanks,
Anshul
  



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list