NSClient++ Help (#1) - NRPE_HANDLERS (#288) - Message List
I am working on setting up NRPE_HANDLER commands and I was wondering what inject means in the following example and where it is documented in the wiki
check_cpu=inject checkCPU warn=$ARG1$ crit=$ARG2$ 5 10 15
-
Message #903
All in all I would use the "ExternalCommands?" module as it is "simpler to use".
The "inject" means that you want to run an internal command ie. not a script.
MickeM
anonymous12/01/08 19:28:23 (3 years ago)-
Message #904
Ok, would the above example be using the "ExternalCommands??" module?
anonymous12/01/08 20:39:46 (3 years ago)-
Message #905
Sorry, what would the above example look like using an "ExternalCommand?"?
anonymous12/01/08 20:41:00 (3 years ago)-
Message #906
Like so?
[External Scripts] 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 [External Alias] 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
More details on the CheckExternalScripts wiki page...
MickeM
anonymous12/01/08 21:15:20 (3 years ago)-
Message #907
Which dll does that use and do i have to define an [NRPE Handlers] to use an [External Alias]
anonymous12/01/08 23:46:17 (3 years ago)-
Message #908
No this replaces the "NRPE Handler", and you no longer need the "inject" thingy as the scripts and "aliases" (inject) are now under different headers.
As for DLL you need the CheckExternalScripts.dll (in addition to the NRPE LIstsner if you want to use NRPE).
MickeM
anonymous12/02/08 07:16:57 (3 years ago)-
Message #917
Does the CheckExternalScripts support passing parameters because i can't seem to get that working with the example below
alias_cpu=checkCPU warn=$ARG1$ crit=90 time=5m time=1m time=30s
It appears to substitute zero for ARG1 when I am trying to pass it 80 with the following from nagios
check_nrpe -t 60 -H $HOSTADDRESS$ -c alias_cpu -a 80
anonymous12/03/08 18:29:25 (3 years ago)-
Message #919
FYI- here is the debug from the nscp output from above commands
2008-12-03 11:43:00: debug:.\NSClient++.cpp:910: Injecting: alias_cpu: 80 2008-12-03 11:43:00: debug:.\NSClient++.cpp:910: Injecting: checkCPU: warn=$ARG1$, crit=90, time=5m, time=1m, time=30s
anonymous12/03/08 18:45:24 (3 years ago)
-
-
-
-
-
-
-







