Hello,
quite a while ago i used Cygwin to run sh/bash scripts as custom sensors for PRTG. My setup is similar to this kb https://kb.paessler.com/en/topic/60017-custom-sensor-bash-script
Now i want to use the "Windows Subsystem for Linux" feature in Windows 10 instead of Cygwin. I made sure the PRTG service runs under the same user as i used to setup WLS (Ubuntu). I changed the batch file accordingly "'c:\cygwin64\bin\bash.exe -l -c" -> "'c:\windows\system32\bash.exe -l -c" and verified it's working by executing it in cmd terminal.
Unfortunately i only get an error message in PRTG (response not well formed) "Antwort nicht wohlgeformt: "(Der Befehl "C:\Windows\System32\bash.exe" ist entweder falsch geschrieben oder konnte nicht gefunden werden. ECHO ist ausgeschaltet (OFF). )" (Code: PE132)"
However. If i copy bash.exe into the EXE folder (Custom Sensors) and write the whole -l -c ... string as parameter into the sensor, it works.
Any idea? I could use it with direct bash.exe command, but it would be nice to be able to just specify the script with its parameters or path.
Add comment