I can't get an external script to run from NSClient++. The host is a Windows 2008 box with NSClient++ 0.3.8.76
In the NSC.ini file, I've left it pretty much stock. But in the NRPE section, I've un-commented "check_es_ok=scripts\check_ok.bat" which points to the distributed check_ok.bat
From the Nagios server, calling an internal command:
Code: Select all
check_nrpe -H <our host> -c CheckCPU -a warn=80 crit=90 time=4sBut this
Code: Select all
check_nrpe -H <our host> -c check_es_okI turned on debugging in NSC.ini, but the debug log file just shows "Injecting: check_es_ok:" and then "No handler for command: 'check_es_ok'"
I've tried using check_es_ok="c:\Program Files\NSClient++\scripts\check_ok.bat" (the full directory spec) in NSC.ini, but that doesn't work.
I've tried enabling "script_dir=scripts", with and without the full directory spec, then using "-c check_ok" and "-c check_ok.bat" in the check_nrpe call, but none of that works. Of course, I'm restarting the service after every config change.
Any thoughts are appreciated. Thanks....Lyle