Page 2 of 3
Re: Sudo updated and now sudo scripts fail: NRPE: Unable to
Posted: Thu Sep 10, 2015 4:13 pm
by jdalrymple
gormank wrote:I guessed the debugging was to be done on the nagios server since rsyslog isn't used on monitored servers...
Skip all the rsyslog nonsense and just enable debugging on the monitored server (nrpe.cfg) then look for related entries in /var/log/messages.
Re: Sudo updated and now sudo scripts fail: NRPE: Unable to
Posted: Thu Sep 10, 2015 4:19 pm
by gormank
I already did that and posted the results:
Sep 10 21:18:14 txslm2mlapp002 nrpe[21169]: INFO: SSL/TLS initialized. All network traffic will be encrypted.
Re: Sudo updated and now sudo scripts fail: NRPE: Unable to
Posted: Thu Sep 10, 2015 4:29 pm
by tgriep
The following line isn't in my sudoers file.
Maybe the sudo upgrade has an issue with this line overriding the other line.
Try removing that and see if the works.
Re: Sudo updated and now sudo scripts fail: NRPE: Unable to
Posted: Thu Sep 10, 2015 4:30 pm
by jdalrymple
gormank wrote:I already did that and posted the results:
Sep 10 21:18:14 txslm2mlapp002 nrpe[21169]: INFO: SSL/TLS initialized. All network traffic will be encrypted.
My apologies - I misunderstood your statement.
Re: Sudo updated and now sudo scripts fail: NRPE: Unable to
Posted: Fri Sep 11, 2015 10:35 am
by gormank
I commented the following 2 lines, tested and no change.
Defaults requiretty
Defaults !visiblepw
I then commented the last line and tested. Still no change...
Defaults:nagios !requiretty
I added the following, tested and no change.
nagios ALL=(ALL) NOPASSWD: ALL
Removed the changes to put things back to original.
I did a tail -f /var/log/audit/audit.log while running the failing check, and nonfailing ones. Nothing logged.
What's next?
Re: Sudo updated and now sudo scripts fail: NRPE: Unable to
Posted: Fri Sep 11, 2015 11:35 am
by ssax
What is the output when you run these commands on it?
Code: Select all
su - nagios
sudo /usr/local/nagios/libexec/check_vxvm
Re: Sudo updated and now sudo scripts fail: NRPE: Unable to
Posted: Fri Sep 11, 2015 11:44 am
by ssax
Woops, sorry, looks like you already did that in your first post.
Please PM or attach your entire /etc/sudoers and entire nrpe.cfg
Re: Sudo updated and now sudo scripts fail: NRPE: Unable to
Posted: Fri Sep 11, 2015 11:56 am
by gormank
Yep, the commands work fine as the nagios user.
Files attached...
I checked to see is selinux might be the denying but only see 2 entries that appear not to be related.
sealert -a /var/log/audit/audit.log
I guess next on my end is checking to see if its the AD integration, once I figure out how.
Re: Sudo updated and now sudo scripts fail: NRPE: Unable to
Posted: Fri Sep 11, 2015 1:11 pm
by lmiltchev
Can you try commenting out the "Defaults requiretty" line (line 56), so that it would look like this:
Let us know if this helped.
Re: Sudo updated and now sudo scripts fail: NRPE: Unable to
Posted: Fri Sep 11, 2015 2:02 pm
by gormank
No change.