Nscp test mode check_nrpe is working, while started as service not working


#1

when start NSCP as service under SYSTEM account in windows, the check_nrpe command is returnning me the follow error.

Result code: UNKNOWN The command (checkvirusupdate) returned an invalid return code: 255

while it’s working when running NSCP in test mode. Any hints?

Thanks.

regards, Long


#2

again, problem solved by myself. since nscp is running under SYSTEM account, the output of certain command execution is different between Administrator and SYSTEM account.

in my case, the output of “echo %date%” is having different result under these 2 accounts. ncsp test mode is running on Administrator account, and when in production, ncsp is running under SYSTEM account. so it gives different result.

suggests to test ur external script under cmd started by SYSTEM account.

Thanks.

regards, Long