Follow instructions in “nagios/docs/commandfile.html”. It’s quite involved, but you must do it, if you want to use external commands.
Let us know how it turns out. BTW, a host will not be checked, unless the service fails. But luca is correct, you can force a check, by disabling/enabling the host check( I forgot about that trick, thx luca).