Sudo updated and now sudo scripts fail: NRPE: Unable to read

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Sudo updated and now sudo scripts fail: NRPE: Unable to

Post by tgriep »

Can you run the following and post back the results?

Code: Select all

which sudo
ls -l /usr/bin/sudo
ls -l /usr/local/nagios
chage -l nagios
grep nag /etc/passwd
grep nag /etc/group
Be sure to check out our Knowledgebase for helpful articles and solutions!
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Sudo updated and now sudo scripts fail: NRPE: Unable to

Post by gormank »

Code: Select all

[root@txslm2mlnag001 ~]# which sudo
/usr/bin/sudo
[root@txslm2mlnag001 ~]# ls -l /usr/bin/sudo
---s--x--x. 1 root root 123832 Jul 31  2014 /usr/bin/sudo
[root@txslm2mlnag001 ~]# ls -l /usr/local/nagios
total 40
drwxrwxr-x.  2 nagios nagios  4096 Mar  6  2015 bin
drwsrwsr-x.  8 apache nagios  4096 Sep 11 21:55 etc
drwxr-xr-x.  2 root   root    4096 Mar  6  2015 include
drwxrwxr-x.  2 nagios nagios 12288 Sep 10 22:50 libexec
drwxrwxr-x.  2 nagios nagios  4096 Mar  6  2015 sbin
drwxrwxr-x. 14 nagios nagios  4096 Mar  6  2015 share
drwxrwxr-x.  6 nagios nagios  4096 Sep 14 15:51 var
drwxr-xr-x   3 root   root    4096 Jul 16 19:46 windows
[root@txslm2mlnag001 ~]# chage -l nagios
Last password change                                    : Mar 06, 2015
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7
[root@txslm2mlnag001 ~]# grep nag /etc/passwd
nagios:x:500:100::/home/nagios:/bin/bash
[root@txslm2mlnag001 ~]# grep nag /etc/group
nagios:x:500:nagios,apache,snmptt
nagcmd:x:501:nagios,apache,snmptt
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Sudo updated and now sudo scripts fail: NRPE: Unable to

Post by tmcdonald »

We'll pick this up in the ticket for now.
Former Nagios employee
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Sudo updated and now sudo scripts fail: NRPE: Unable to

Post by gormank »

A few minutes ago they updated sudo to 1.8.14-4.el5 from -3 I think and its all happy again...
This can be closed.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Sudo updated and now sudo scripts fail: NRPE: Unable to

Post by tmcdonald »

Glad to hear it! I'll close this and the ticket up.
Former Nagios employee
Locked