Nagios and thttpd

by damonp on October 13, 2005

in Snippets

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: 1%

Most Popular Posts

Damon Parker is a freelance sysadmin and web developer in Texas. He specializes in server setup, server security and high performance server configurations. Need help setting up a web server or getting a server back online after a crash or hack? Email Damon

Leave a Comment

Previous post:

Next post: