check_by_ssh: how to handle no process found


I want to check processes on a remote host like “python” or something like that. I’ll probably do something like:

ps -ef | grep “python

check_by_ssh only throw a warning or critical error if a response time is exceeded. I want to check if output is returned but it looks like the only way to do so is to write my own plugin that will call check_by_ssh. Any suggestions?