Fixlet Status "Completed" even if exit code is 1

I am having a fixlet which has Shell script which in turn call some script in a target server. Even if shell script throws exit codes other than 0.On the Status drill down page i can see it shows the exit code as 100 or 1 but, fixlet status moves to Completed. So when we use this in Action plan, plan moves even if the end action had failed. I have tried with and without custom Success criteria to run all the lines.
Is there a setting i am missing. Any help will be great.

The BigFix client does not use the external script’s exit code to determine success or failure, but as this is your custom fixlet you may choose to take the non-zero code as a failure.

Try adding this after the ‘wait’ command that executes the script

continue if {exit code of action = 0}

1 Like

Thanks , I will try that.

Thanks It worked. Appreciate your quick help.

1 Like

Nice, helped me also. Is there any idea how to get status “failed” and “exit code XX” out of this? Actual exit code is “none”.