The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
get_test_hostcheck
    returns the test hostcheck plugin source

NAME

test_hostcheck.pl - host check replacement for testing purposes

SYNOPSIS

./test_hostcheck.pl [ -v ] [ -h ] [ --type=<type> ] [ --minimum-outage=<seconds> ] [ --failchance=<percentage> ] [ --previous-state=<state> ] [ --state-duration=<meconds> ] [ --parent-state=<state> ]

DESCRIPTION

this host check calculates a random based result. It can be used as a testing replacement host check

example monitoring configuration:

    defined command {
        command_name  check_host_alive
        command_line  $USER1$/test_hostcheck.pl --failchance=2% --previous-state=$SERVICESTATE$ --state-duration=$SERVICEDURATIONSEC$
    }

ARGUMENTS

script has the following arguments

help
    -h

print help and exit

verbose
    -v

verbose output

type
    --type

can be one of up,down,unreachable,random,flap

EXAMPLE

./test_hostcheck.pl --minimum-outage=60 --failchance=3% --previous-state=OK --state-duration=2500

AUTHOR

2009, Sven Nierlein, <nierlein@cpan.org>