Is there a way to run the script by check_ssh insted of NRPE?

I’d like to run the script on a remote server without NRPE support, but with ssh access. Is there a way to modify the script to accomplish that? Sorry, i’m not a perl programmer