Can't specify scripts path in ini file #28
delboy1966
started this conversation in
General
Replies: 1 comment 12 replies
-
which version is that? Could you try the latest build from the actions? |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On NSClient I had some external scripts that lived in "c:\program files\NSClient++\scripts".
So on the snclient install I did the same thing, created a directory in c:\program files\snclient\scripts and dropped my external scripts in there.
But when running the check it can't find the scripts, my external command line is
checktest = scripts\check_test.bat
Which is exactly the same as I had it in the nsclient ini file, but when I run the check_nrpe command I get:
UNKNOWN: proc: exec: "scripts\check_test.bat": file does not exist
So guessed I had to set the paths as
**; shared-path- Path to shared things.
shared-path = "c:\Program Files\snclient"
; scripts - Path to scripts.
scripts = ${shared-path}\scripts**
And amend my command line in the ini file to
checktest = ${scripts}\check_test.bat
But then get:
UNKNOWN: proc: exec: "C:\Program": file does not exist
Have tried without quotes in the path with single quotes and with double quotes.
It works if i put my scripts in c:\scripts as there are no spaces in the path.
Am I not able to specify the path if it has spaces in?
Beta Was this translation helpful? Give feedback.
All reactions