The probe itself would just be arguments passed to regular GNU grep, including modes (E, F, P) and matching flags (i, e, v) so all needs to do is exec grep as the entrypoint against the current output buffer for the pod/container and then evaluate the returned response code.