Run a command as sudo

i have made a plugin in c code for nagios. it works in terminal. the only problem is that i have to be sudo (root) to execute this command. how i can insert this plugin to nagios so as to run and see it in the web interface ? because withot being root it cannot be executed . thanks

setuid?