Trouble with check_nrpe+check_hpasm

CSingh at lightspeedresearch.com CSingh at lightspeedresearch.com
Tue Jun 2 18:02:42 CEST 2009



-----Original Message-----
From: Trond Hasle Amundsen [mailto:t.h.amundsen at usit.uio.no] 
Sent: Tuesday, June 02, 2009 11:35 AM
To: Singh, Charanbeer (LSBSR tech)
Cc: marc at ena.com; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Trouble with check_nrpe+check_hpasm

<CSingh at lightspeedresearch.com> writes:

> Thanks for your suggestion. I was able to get it fixed. Check_hpasm
> plugin needs to be run with root privileges. So, on locsys, 

No, it doesn't. The check_hpasm plugin will automatically try to use
sudo unless it is run as root. Add the following to your /etc/sudoers
file:

  xyzuser ALL=NOPASSWD:/sbin/hpasmcli
  xyzuser ALL=NOPASSWD:/usr/sbin/hpacucli

Also, you need to disable "requiretty", i.e. comment out this line:

  Defaults    requiretty

That is all :)

Cheers,
-- 
Trond Hasle Amundsen <t.h.amundsen at usit.uio.no>
Center for Information Technology Services, University of Oslo



Interestingly, I already had the above in my /etc/sudoers when I was
getting the error. I tried to run /usr/local/nagios/libexec/check_hpasm
as xyzuser and it prompted me for a password (apparently it was trying
to use sudo on its own).

Allowing /usr/local/nagios/libexec/check_hpasm in /etc/sudoers to
xyzuser and then defining the check_hpasm command in nrpe.cfg prefixed
with sudo fixed the problem.

Charan

This email is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email by mistake, please delete it from your system immediately and notify the sender. Email transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors 
 or omissions in the contents of this message, which arise as a result of email transmission.
 

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
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