CartMetrix - Do you know yours?

« Stop Bandwidth Theives - Lighttpd Style | Home | Play Fetch with Mutt and Maildirs »

10/13/2005

Nagios and thttpd

Nagios defaults to running check via supplied IP address instead of the hostname. If virtual hosting with thttpd using only the IP address will give 404 because it doesn't make it into the virtual hosting subdirectories. Below is a check command that can be added to the Nagios configuration to correct this.

This should also be good for directly checking the status of Apache virtual hosts instead of just checking the default IP as the Nagios check_http command.

# 'check_vhost' command definition
define command{
command_name check_vhost
command_line $USER1$/check_http -H $HOSTALIAS$
}

Popularity: 12%

Trackback:

Related Posts

Post your opinion

Verification Image

Please type the letters you see in the picture.

Subscribe without commenting


damonparker.org is proudly powered by WordPress
Entries (RSS) and Comments (RSS).

copyright © 2002-2009 damonparker.org. all rights reserved.

Close
E-mail It