Wednesday 6 July 2011

Nagios Check_website

Define check_website command in commands.cfg

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

# 'check_website' command definition

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

Download Plugin and copy to libexec

Download check_website plugin
Copy into /usr/local/nagios/libexec/change file permissions to chmod 775 check_website


Test Plugin
/usr/local/nagios/libexec/ ./check_website -H (hostname) -F (file)

No comments:

Post a Comment