you could write a bash wrapper for check_ping that inverts the exitcode if exitcode != 0 => exit 0 else exit 1