File: [local] / nagios / check_bioctl / README (download)
Revision 1.6, Fri Jun 27 18:59:56 2014 UTC (10 years ago) by andrew
Branch: MAIN
Changes since 1.5: +6 -5 lines
Only require sudo for the actual bioctl call
This means we don't need to run perl as root.
from Florian Obser florian@
|
check_bioctl - checks status of a RAID array using bioctl
This check is for OpenBSD machines with bioctl(8) supported RAID cards.
The only real caveat with it is that bioctl needs rw permission to
/dev/bio. One way to allow for that is by adding an entry to
/etc/sudoers.
This is an example of a setup for NRPE. For checks on the machine running
Nagios, use the _nagios user in /etc/sudoers instead of _nrpe, and of course,
no ${SYSCONFDIR}/nrpe.cfg. check_bioctl runs bioctl once for each device, so
you will need a sudoers entry that matches each device you wish to check.
/etc/sudoers:
_nrpe ALL = NOPASSWD:/sbin/bioctl ami[01]
${SYSCONFDIR}/nrpe.cfg:
command[check_bioctl]=${PREFIX}/libexec/nagios/check_bioctl -d ami0 -d ami1
For more information on bioctl(8) see the OpenBSD man page.
http://www.openbsd.org
$AFresh1: README,v 1.6 2014/06/27 18:59:56 andrew Exp $