I'm using nsclient on one of my windows machines and for some reason I keep getting an 'UNKNOWN' status on the check every one in a while.
I'm running a powershell script with this command:
Code: Select all
Check_test = cmd /c echo scripts\check_test "vm-test"; exit($lastexitcode) | powershell.exe -Command - 2> $null
-Running from the cli nagios machine gets the result back just fine all the time.powershell.exe -command - 2> $null) returned an invalid return code: 255: The process cannot access the file because it is being used by another process.
What is locking this file?nagios itself?