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$
}
define command{
command_name check_vhost
command_line $USER1$/check_http -H $HOSTALIAS$
}
Popularity: 12%


