• Sponsorship

  • CheckExternalScripts.dll

    This module allows you to check external scripts and/or programs.

    Configuration

    [External Script]

    Configure how the External Scripts module works (not to be confused with the "External Scripts" section below that holds scripts that can be run.

    OptionDefault valueDescription
    command_timeout60The maximum time in seconds that a command can execute. (if more then this execution will be aborted). NOTICE this only affects external commands not internal ones.
    allow_arguments0A Boolean flag to determine if arguments are accepted on the incoming socket. If arguments are not accepted you can still use external commands that need arguments but you have to define them in the NRPE handlers below. This is similar to the NRPE "dont_blame_nrpe" option.
    allow_nasty_meta_chars0Allow NRPE execution to have “nasty” meta characters that might affect execution of external commands (things like > “ etc).
    script_dir When set all files in this directory will be available as scripts. This is pretty dangerous but can be a bit useful if you use many scripts and you are sure no one else can add files there.

    [External Scripts]

    A list of scripts available to run from the CheckExternalScripts module. Syntax is: <command>=<script> <arguments> for instance:

    check_es_long=scripts\long.bat
    check_es_ok=scripts\ok.bat
    check_es_nok=scripts\nok.bat
    check_vbs_sample=cscript.exe //T:30 //NoLogo scripts\check_vb.vbs
    

    To configure scripts that request arguments, use the following syntax:

    check_script_with_arguments=scripts\script_with_arguments.bat $ARG1$ $ARG2$ $ARG3$ 
    

    Use ./check_nrpe ... -c check_script_with_arguments -a arg1 arg2 arg3 ... Make sure you type $ARG1$ and not $arg1$ (case sensitive)

    [External Alias]

    Works like the "inject" concept of NRPE scripts module. But in short a list of aliases available. An alias is an internal command that has been "wrapped" (to add arguments). Be careful so you don't create loops (ie check_loop=check_a, check_a=check_loop)

    alias_cpu=checkCPU warn=80 crit=90 time=5m time=1m time=30s
    alias_disk=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED
    alias_service=checkServiceState CheckAll
    alias_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=physical