Check_multipath
Assaf Flatto
nagios at flatto.net
Thu Mar 25 18:52:21 CET 2010
Brian O'Mahony wrote:
>
> It works locally though, and I have
>
>
>
> Cmnd_Alias MULTIPATH=/sbin/multipath -l
>
> nagios ALL= NOPASSWD: MULTIPATH
>
>
>
>
>
>
>
> *From:* Trisha Hoang [mailto:trisha at 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 = NOPASSWD: ALL
>
>
>
> On Thu, Mar 25, 2010 at 8:16 AM, Brian O'Mahony
> <brian.omahony at curamsoftware.com
> <mailto:brian.omahony at 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 connect remotely it gives:
>
>
>
> MULTIPATH: UNKNOWN - sudo not configured
>
>
>
> I am running :
>
> /usr/lib/nagios/plugins/check_nrpe -H ccdub -c check_multipath
>
>
>
> When I su into the nagios user account on the client, and run
> /usr/lib/nagios/plugins/check_multipath it works.
>
>
>
> Any ideas?
>
I assume you are executing it remotely via NRPE , did to remember to add
the sudo in the nrpe.cfg command definitions ?
Assaf
--
Never,Ever Cut A Deal With a Dragon
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list