Director custom command with sudo


So I can’t find a descent example of how to add a custom command with sudo.
What is the correct format?

Thank you in advance!

Kind regards.

Hi @florius

using full paths to sudo and the plugin works.

/usr/bin/sudo /usr/lib/nagios/plugins/check_disk


Kind regards

Lame, was hoping to keep using BaseDir. But we’ll have to deal with it! Thanks for the source @ritzgu.