check_hpasm (3.5) problem on RHEL3
CSingh at lightspeedresearch.com
CSingh at lightspeedresearch.com
Fri Jun 12 23:01:35 CEST 2009
Just an update to this. This problem was happening because of an older
version of hpacucli. Installing below version fixed the issue:
ftp://ftp.compaq.com/pub/products/servers/supportsoftware/linux/hpacucli
-7.70-12.linux.rpm
Regards,
Charan
________________________________
From: CSingh at lightspeedresearch.com
[mailto:CSingh at lightspeedresearch.com]
Sent: Tuesday, June 09, 2009 10:54 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_hpasm (3.5) problem on RHEL3
I have check_hpasm installed successfully on RHEL3 but I am unable to
get it to work (I have it working correctly for me on RHEL4 and 5). Here
is the problem that I face with RHEL3:
[nagios at mysys nagios]$ /usr/local/nagios/libexec/check_nrpe -H localhost
-c check_hpasm
UNKNOWN - insufficient rights to call /usr/sbin/hpacucli
[nagios at mysys nagios]$ sudo /usr/local/nagios/libexec/check_hpasm -v
UNKNOWN - insufficient rights to call /usr/sbin/hpacucli
My /etc/sudoers has
nagios
ALL=NOPASSWD:/sbin/hpasmcli,/usr/sbin/hpacucli,/usr/local/nagios/libexec
/check_hpasm
Calling /usr/bin/hpacucli works correctly using sudo:
[nagios at mysys nagios]$ sudo /usr/sbin/hpacucli
HP Array Configuration Utility CLI 7.40.7.0
Detecting Controllers...Done.
Type "help" for a list of supported commands.
Type "exit" to close the console.
=>
[nagios at mysys nagios]$ sudo /usr/sbin/hpacucli -s help
To enter the ACU CLI console type:
hpacucli
Commands can also be executed from outside the
ACU CLI console using the syntax:
hpacucli <target> <command> [param[=value]]
All targets, commands, parameters, and values must be entered in
lowercase.
The only exceptions to this are user-specified names, such as
chassisname.
<target> <command> [param[=value]]
<target> is of format:
[controller all|slot=#|wwn=#|chassisname="AAA"] [array all|<id>]
[physicaldrive all|#:#:#|allunassigned] [logicaldrive all|#]
Note: The first # in physicaldrive is only needed for systems that
specify port:box:bay. Other physical drive targeting schemes
are box:bay and port:id.
Example targets:
controller all
controller slot=5
controller chassisname="Lab C"
controller serialnumber=P21DA2322S
controller wwn=500308B300701011
controller slot=1 array all
controller slot=7 array A
ctrl slot=1 pd allunassigned
controller slot=2 logicaldrive all
controller slot=5 ld 5
controller slot=5 physicaldrive 1:5
controller slot=5 physicaldrive 1E:2:3
<command> can be "create","delete","modify","show","rescan"
For detailed command information type any of the following:
help add
help create
help delete
help modify
help remove
help shorthand
help show
help target
help rescan
What else could I try?
Thanks!
Charanbeer
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.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090612/f0dd0d9f/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
-------------- next part --------------
_______________________________________________
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