Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Wed Mar 15, 2017 12:18 am
I have changed it as per your request. Than i go to the nagios user and run following command.
Code: Select all
su - nagios
Last login: Wed Mar 15 05:09:28 UTC 2017 on pts/0
-bash-4.2$ /usr/bin/sudo -u root /usr/sbin/exim -bpc
21
ssax
Dreams In Code
Posts: 7682 Joined: Wed Feb 11, 2015 12:54 pm
Post
by ssax » Wed Mar 15, 2017 4:21 pm
Ok, try re-running the check from the XI server, what is it showing?
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Thu Mar 16, 2017 12:51 am
It's nagios core and i resinstalled nrpe and its plugins from source code, now it is working. But i don't know why it's not working on centos-7 using epel repo.
ssax
Dreams In Code
Posts: 7682 Joined: Wed Feb 11, 2015 12:54 pm
Post
by ssax » Thu Mar 16, 2017 1:45 pm
Sorry, my mistake about the XI vs Core thing.
Did you try it again after you got the sudoers file setup properly or did you just re-install before testing?
rlinux57
Posts: 324 Joined: Mon Dec 08, 2014 12:03 am
Post
by rlinux57 » Mon Mar 20, 2017 12:36 am
I re-tried on my other VPS client, it again shows same error. I don't know why it gives error when i install through yum.
dwhitfield
Former Nagios Staff
Posts: 4583 Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:
Post
by dwhitfield » Mon Mar 20, 2017 9:15 am
What version did you install from source? nrpe-2.15-7.el7.x86_64 appears to be the version from epel.
If they are different versions, is it ok to go ahead and lock this up or do you want to dig a little deeper?