Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
krasko
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
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