Search found 6 matches

by RyanW
Fri Nov 13, 2015 12:56 pm
Forum: Open Source Nagios Projects
Topic: Check_NRPE returns version, but cannot remote execute
Replies: 10
Views: 7195

Re: Check_NRPE returns version, but cannot remote execute

Thanks for all of the input, from everything I've gathered it's a user/group issue.
As to why it is working on the other machines, I have not been able to figure that one out yet.

If I get a definitive solution I will report back.

Thanks guys!
by RyanW
Fri Nov 13, 2015 11:07 am
Forum: Open Source Nagios Projects
Topic: Check_NRPE returns version, but cannot remote execute
Replies: 10
Views: 7195

Re: Check_NRPE returns version, but cannot remote execute

Box293 wrote:IF your user is nrpe then the sudoers line needs to start with nrpe (I'm pretty sure):
I noticed the user is NRPE and added that line to the sudoers file as well, still returned the same results.
by RyanW
Thu Nov 12, 2015 5:31 pm
Forum: Open Source Nagios Projects
Topic: Check_NRPE returns version, but cannot remote execute
Replies: 10
Views: 7195

Re: Check_NRPE returns version, but cannot remote execute

Does it help if you put the following line in sudoers on the remote box? nagios ALL = NOPASSWD:/usr/lib/nagios/plugins/check_disk * Just gave it a try and restarted services, but it was unsuccessful. I'm taking a look at the other systems now to look for discrepancies in users/groups, but so far, t...
by RyanW
Thu Nov 12, 2015 4:16 pm
Forum: Open Source Nagios Projects
Topic: Check_NRPE returns version, but cannot remote execute
Replies: 10
Views: 7195

Re: Check_NRPE returns version, but cannot remote execute

jdalrymple you are correct: [root@agile-db-u2 xinetd.d]# ps -ef | grep -i nrpe nrpe 19770 1 0 13:14 ? 00:00:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d [root@nagios agile-u2]# /usr/lib/nagios/plugins/check_nrpe -H agile-db-u2 -c check_root NRPE: Unable to read output When it is run as root I do rec...
by RyanW
Thu Nov 12, 2015 2:21 pm
Forum: Open Source Nagios Projects
Topic: Check_NRPE returns version, but cannot remote execute
Replies: 10
Views: 7195

Re: Check_NRPE returns version, but cannot remote execute

I installed it from the EPEL repos, it is currently running under init.d. **For startup reasons it's running under init.d, but to actually start the command for testing and such, I'm using "service nrpe restart/start/stop" I have tried running it standalone: nrpe -n -c /etc/nagios/nrpe.cfg...
by RyanW
Thu Nov 12, 2015 1:20 pm
Forum: Open Source Nagios Projects
Topic: Check_NRPE returns version, but cannot remote execute
Replies: 10
Views: 7195

Check_NRPE returns version, but cannot remote execute

I have seen similar questions asked, but I have not seen one which fits this use case specifically. Basically executing the base check-nrpe to the remote host will return the remote nrpe version: [root@nagios agile-u2]# /usr/lib/nagios/plugins/check_nrpe -H agile-db-u2 NRPE v2.15 When you add a comm...