Someone on the nagios mailing list responded with the following... I am now using it to do what I want and it is working great.
"To do a check similar to this I used check_by_ssh and put the
plugin on the remote host. I then used an ssh key so the nagios user could
log in to the nagios account on the remote host without a password and
execute the plugin. "