Re: [Nagios-users] Check_multipath

2010-03-25 Thread Steve Shipway
> My money is on "Requiretty". Locally you have a TTY, while NRPE does > not. The "Requiretty" setting in /etc/sudoers must be turned > off. Comment out this line in /etc/sudoers: > > Defaultsrequiretty I agree -- this one had me stumped for days when I was producing a different plugin (fo

Re: [Nagios-users] Check_multipath

2010-03-25 Thread Trond Hasle Amundsen
Brian O'Mahony writes: > It works locally though, and I have > > > > Cmnd_Alias MULTIPATH=/sbin/multipath -l > > nagios ALL= NOPASSWD: MULTIPATH My money is on "Requiretty". Locally you have a TTY, while NRPE does not. The "Requiretty" setting in /etc/sudoers must be turned off. Comment out t

Re: [Nagios-users] Check_multipath

2010-03-25 Thread Assaf Flatto
ursday, March 25, 2010 4:36 PM > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] Check_multipath > > > > What about adding NOPASSWD. > > ALL = NOPASSWD: ALL > > > > On Thu, Mar 25, 2010 at 8:16 AM, Brian O'Mahony > <mailto:brian.omah...@curamsoftwa

Re: [Nagios-users] Check_multipath

2010-03-25 Thread Brian O'Mahony
It works locally though, and I have Cmnd_Alias MULTIPATH=/sbin/multipath -l nagios ALL= NOPASSWD: MULTIPATH From: Trisha Hoang [mailto:tri...@rockyou.com] Sent: Thursday, March 25, 2010 4:36 PM To: Nagios Users List Subject: Re: [Nagios-users] Check_multipath What about adding NOPASSWD. ALL

Re: [Nagios-users] Check_multipath

2010-03-25 Thread Trisha Hoang
What about adding NOPASSWD. ALL = NOPASSWD: ALL On Thu, Mar 25, 2010 at 8:16 AM, Brian O'Mahony < brian.omah...@curamsoftware.com> wrote: > I downloaded this from monitoring exchange but it wont work. > > > > I have added nagios to the sudo allow files, and it works locally. However > when I

[Nagios-users] Check_multipath

2010-03-25 Thread Brian O'Mahony
I downloaded this from monitoring exchange but it wont work. I have added nagios to the sudo allow files, and it works locally. However when I connect remotely it gives: MULTIPATH: UNKNOWN - sudo not configured I am running : /usr/lib/nagios/plugins/check_nrpe -H ccdub -c check_multipath When