Page 2 of 2
Re: NRPE Unable to read output
Posted: Thu Jan 16, 2020 10:37 am
by mccrakem
Screenshots and nrpe.cfg file attached
Re: NRPE Unable to read output
Posted: Thu Jan 16, 2020 11:59 am
by lmiltchev
Can you su as "nrpe" user on the client (remote machine), and run your script without being prompted for a password?
Code: Select all
su - nrpe
sudo /usr/lib64/nagios/plugins/check_ucard_backups.sh
Re: NRPE Unable to read output
Posted: Fri Jan 17, 2020 5:29 am
by mccrakem
Hi
No it goes to a prompt but when I try and run the script it prompts for the password for the nrpe user
Re: NRPE Unable to read output
Posted: Fri Jan 17, 2020 9:55 am
by lmiltchev
Can you PM me your sudoers file? If you have more than one file, e.g. a file in /etc/sudoers.d directory, PM me this one as well.
In addition to the "standard" sudoers, do you have by chance sudo configured via LDAP as well? If you do, we would need to see these configs too.