Re: [Nagios-users] Help please - test works fine EXCEPT over NRPE???

2009-04-02 Thread Lei Chen
use visudo command, comment the following line: Defaultsrequiretty and try again. 2009/4/2 Andrew Davis ncc...@gmail.com: Its running under xinetd, so 'ps aux|grep nrpe' isn't showing the true user. However, the nrpe.cfg is set to use the nobody user. I've added the nobody user to sudo,

Re: [Nagios-users] Help please - test works fine EXCEPT over NRPE???

2009-04-02 Thread John Stile
Can you add a line to your /etc/xinetd.d/nrpe to run as a different user. Something like like: user = nagios-nrpe Next create that user in /etc/passwd, /etc/shadow, and /etc/group The user doesn't need a passwd set or a login shell. Next add the user to the groups needed to see the

Re: [Nagios-users] Help please - test works fine EXCEPT over NRPE???

2009-04-02 Thread Andrew Davis
I've checked /etc/sudoers, /etc/nagios/nrpe.cfg, /etc/xinetd.d/nrpe, and the script itself (/usr/local/nagios/libexec/check_logs.pl) and none have any tty strings in them for me to comment out. A. Davis Email: ncc...@gmail.com There is no limit to what a man can accomplish if he

Re: [Nagios-users] Help please - test works fine EXCEPT over NRPE???

2009-04-02 Thread Andrew Davis
I did that as a test and removed the entry later. I haven't created a nagios user for any of the NRPE clients. I'll try doing that... A. Davis Email: ncc...@gmail.com There is no limit to what a man can accomplish if he doesn't care who gets the credit. - Ronald Reagan John Stile

Re: [Nagios-users] Help please - test works fine EXCEPT over NRPE???

2009-04-02 Thread jmoseley
: [Nagios-users] Help please - test works fine EXCEPT over NRPE

[Nagios-users] Help please - test works fine EXCEPT over NRPE???

2009-04-01 Thread Andrew Davis
I setup the check_logs.pl (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1752.html;d=1) test and its config file on some local Linux servers tested via NRPE. All other NRPE tests work fine (including some custom ones). The check_logs.pl works fine locally, but fails over NRPE.

Re: [Nagios-users] Help please - test works fine EXCEPT over NRPE???

2009-04-01 Thread John Stile
On the client, if you look at 'ps aux |grep nrpe' what user does nrpe run as? You might have to configure sudo to allow that user to run the plugin. On Wed, 2009-04-01 at 18:27 -0400, Andrew Davis wrote: I setup the check_logs.pl

Re: [Nagios-users] Help please - test works fine EXCEPT over NRPE???

2009-04-01 Thread Andrew Davis
Its running under xinetd, so 'ps aux|grep nrpe' isn't showing the true user. However, the nrpe.cfg is set to use the nobody user. I've added the nobody user to sudo, and even tried it as the nagios user. What I see now from the server is: /usr/local/nagios/libexec/check_nrpe -H atum -c