Page 1 of 1

(No output on stdout) stderr: sudo: no tty present and no as

Posted: Wed Dec 07, 2016 12:11 pm
by vuduops
Hi ;

I am seeing the below error on the nagiosxi server. Can you please let me know how can I resolve this issue?

Code: Select all

(No output on stdout) stderr: sudo: no tty present and no askpass program specified
I have attached the screen shot for the checks it is failing.

Thanks
Krishna

Re: (No output on stdout) stderr: sudo: no tty present and n

Posted: Wed Dec 07, 2016 12:50 pm
by rkennedy
Those checks all depend on a script called manage_services.sh -

Code: Select all

check_xi_service_status 	sudo /usr/local/nagiosxi/scripts/manage_services.sh status $ARG1$
Now taking a look at a stock system, I have this line in my /etc/sudoers, which I believe you're missing -

Code: Select all

NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
You'll need to add line back to the file.

If that doesn't work, please post your /etc/sudoers file for us to look at.