Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

krasko

Reviews(1)
bykrasko, July 28, 2012
You need to define nagios command with sudo prefix, for example:

define command{
command_name check_hddtemp
command_line sudo $USER1$/contrib/check_hddtemp.sh /dev/$ARG1$ 40 50
}

And you will also probbly need to do not require tty for nagios user sudo. Add following line into /etc/sudoers:

Defaults:nagios !requiretty