I have managed to get the check to work properly, but now I've realized that what I did above actually created a command with the title as the command and the command as blank. I would like to delete this command in order to clean everything up, but it appears that it is still attached to the given host, though it is showing up as inactive.
How can I go about deleting this command since it doesn't seem to be associated with the host except in the database...