Wednesday 29 June 2011

Nagios webserver check - check_website

define host{
        use                     websites
        host_name               www.a24direct.co.uk
        alias                   www.a24direct.co.uk
        address                 www.a24direct.co.uk
        }
 


define service{
        use                             local-service
        host_name                       Nagios-Bellville
        service_description             HTTP
        check_command                   check_http
        notifications_enabled           0
        }


define service{
        use                     local-service
        host_name               www.bla.com
        service_description     check_website
        check_command           check_website
        }

Check_website

/usr/local/nagios/etc/objects/commands.cfg

# 'check_website' command definition
define command{
        command_name    check_website
        command_line    $USER1$/check_website -H $HOSTADDRESS$
        }


Plugin

Copy check_website plugin to /usr/local/nagios/libexec/

No comments:

Post a Comment