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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vuduops
Posts: 81
Joined: Wed Sep 07, 2016 1:34 pm

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

Post 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
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post 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.
Former Nagios Employee
Locked