NRPE Unable to read output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mccrakem
Posts: 129
Joined: Mon Jun 19, 2017 8:28 am

Re: NRPE Unable to read output

Post by mccrakem »

Screenshots and nrpe.cfg file attached
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE Unable to read output

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
mccrakem
Posts: 129
Joined: Mon Jun 19, 2017 8:28 am

Re: NRPE Unable to read output

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE Unable to read output

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked