sudo requiretty error

I got the following error in configuring an exim mailqueue checking nrpe command

===================

/usr/local/nagios/libexec/check_nrpe -H <ip>  -c check_eximmailqueue
must have a tty to run sudo
===================

This is actually not an error.But a setting in sudo configuration that sets a tty requirement for doing a sudo.

And the error condition is caused because the check command is trying to do a sudo but it does not have a valid tty

To get out of this error .You must comment out the following line in /etc/sudoers

=========

Defaults    requiretty

========

should be

==========

#Defaults    requiretty

==========

Use visudo command to edit /etc/sudoers

Share and Enjoy:
  • Digg
  • Mixx
  • del.icio.us
  • StumbleUpon
  • Facebook
  • TwitThis
  • Technorati
  • Google

Tags:

Leave a Reply