Hi, I am looking for a solution for a fallowing problem. I could not find in anywhere.
Output from nsclient for powershell external scripts is: File C:\Program Files\op5\NSClient++\scripts\check_ad_time.ps1 cannot be loaded because the execution of scripts is disabled on this system.
And that is ok but exit code from fallowing error is 0. Most preferably it should be 3. I tried to mess with wrappings but those does not seem to work. Tried to recreate problem from this topic https://github.com/mickem/nscp/issues/207 and “solving” it with solution presented at the end of it, but it seems like nsclient is ignoring “wrappings”.
Other simple (i guess) solution would be if nsclient returned 3 every time unless executed script provided differently. But I could not find such functionality. Basically any output that is not provided by executed script should not return 0 (imo).