Sven Nierlein > Monitoring-Generator-TestConfig-0.44 > test_servicecheck.pl

Download:
Monitoring-Generator-TestConfig-0.44.tar.gz

Annotate this POD

Website

View/Report Bugs
Source  
get_test_servicecheck
    returns the test servicecheck plugin source

NAME ^

test_servicecheck.pl - service check replacement for testing purposes

SYNOPSIS ^

./test_servicecheck.pl [ -v ] [ -h ] [ --type=<type> ] [ --minimum-outage=<seconds> ] [ --failchance=<percentage> ] [ --previous-state=<state> ] [ --state-duration=<meconds> ] [ --total-critical-on-host=<nr> ] [ --total-warning-on-host=<nr> ]

DESCRIPTION ^

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

example configuration:

    defined command {
        command_name  check_service
        command_line  $USER1$/test_servicecheck.pl --failchance=2% --previous-state=$SERVICESTATE$ --state-duration=$SERVICEDURATIONSEC$ --total-critical-on-host=$TOTALHOSTSERVICESCRITICAL$ --total-warning-on-host=$TOTALHOSTSERVICESWARNING$
    }

ARGUMENTS ^

script has the following arguments

help
    -h

print help and exit

verbose
    -v

verbose output

type
    --type

can be one of ok,warning,critical,unknown,random,flap

EXAMPLE ^

./test_servicecheck.pl --minimum-outage=60 --failchance=3% --previous-state=OK --state-duration=2500 --total-critical-on-host=0 --total-warning-on-host=0

AUTHOR ^

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

syntax highlighting: