TracNav menu
-
Home
-
Documentation
- …
-
Information
- …
-
Commands/Modules
-
CheckDisk
- CheckFileSize
- CheckDriveSize
- CheckFile
-
CheckEventLog
- CheckEventLog
-
CheckSystem
- CheckCPU
- CheckUpTime
- CheckServiceState
- CheckProcState
- CheckMem
- CheckCounter
-
CheckHelpers
- CheckAlwaysOK
- CheckAlwaysCRITICAL
- CheckAlwaysWARNING
- CheckOK
- CheckCRITICAL
- CheckWARNING
- CheckMultiple
- CheckVersion
-
CheckTaskSched
- CheckTaskSched
-
FileLogger
- N/A
-
NRPEListener
- N/A
-
NSClientListener
- N/A
-
SysTray
- N/A
-
CheckWMI
- CheckWMI
- CheckWMIValue
-
RemoteConfiguration
- N/A
-
CheckExternalScripts
- N/A
-
LUAScript
- Guide
-
NSCAAgent
- N/A
-
Donate
- …
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.
| Option | Default value | Description |
| command_timeout | 60 | The 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_arguments | 0 | A 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_chars | 0 | Allow 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
