You could wrap the check_ipmi command with sudo, that allows your nagios user 
to run check_ipmi as root.

I do the same with a few other checks, and it works perfect that way.

Regards,
Jens Dueholm Christensen 
Business Process and Improvement, Rambøll Survey IT


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Shaun Qualheim
Sent: 6. august 2009 17:52
To: [email protected]
Subject: IPMI read as non-root user?

Hi there all --

I realize that this may not be the most appropriate group for this topic,
but it's quite likely someone here has run into this at some point.

I'm using nagios and wanting to use the check_ipmi script on the local
machine with a check_by_ssh check.

The problem I'm running into right now is when the script is trying to run
the ipmitool command as a non-root user.  I've changed /dev/ipmi0 to have
644 permission in an attempt to allow non-root users to read from the ipmi
device.  This has not yet worked though:


crw-r--r-- 1 root root 252, 0 Aug  5 22:31 /dev/ipmi0


I still receive the following response:


[sh...@localhost ~]$ ipmitool sdr
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No
such file or directory
Get Device ID command failed
Unable to open SDR for reading



Anyone know what needs to be done to enable read-only non-root ipmi access
for this script to grab the data for nagios?

Thanks,
Shaun

-- 
Shaun Qualheim
CTB System Administrator
CTB/McGraw-Hill Online Systems
 
--------------------------------------------------------

The information contained in this message is intended only for the recipient, 
and may be a confidential attorney-client communication or may otherwise be 
privileged and confidential and protected from disclosure. If the reader of 
this message is not the intended recipient, or an employee or agent responsible 
for delivering this message to the intended recipient, please be aware that any 
dissemination or copying of this communication is strictly prohibited. If you 
have received this communication in error, please immediately notify us by 
replying to the message and deleting it from your computer. The McGraw-Hill 
Companies, Inc. reserves the right, subject to applicable local law, to monitor 
and review the content of any electronic message or information sent to or from 
McGraw-Hill employee e-mail addresses without informing the sender or recipient 
of the message.
--------------------------------------------------------

_______________________________________________
Linux-PowerEdge mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq

_______________________________________________
Linux-PowerEdge mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq

Reply via email to