=================================================================== RCS file: /cvs/nagios/check_bioctl/check_bioctl.html,v retrieving revision 1.3 retrieving revision 1.7 diff -u -r1.3 -r1.7 --- nagios/check_bioctl/check_bioctl.html 2006/07/31 21:48:27 1.3 +++ nagios/check_bioctl/check_bioctl.html 2017/02/08 17:36:04 1.7 @@ -4,50 +4,42 @@

Nagios Check - check_bioctl

-

The check_bioctl plugin for Nagios monitors RAID arrays on OpenBSD using bioctl.

-

The only real caveat with it is that bioctl needs rw permission to /dev/bio. The way I allow for that is by adding an entry to /etc/sudoers and then making the check run sudo check_bioctl.

-

I wrote this on OpenBSD 3.9 and tested on Dell PERC 3/DC controllers using the ami driver. It should work just fine on other versions of OpenBSD as well as with other cards and drivers. If you do run into trouble, send me the output from bioctl on the system you are having trouble with and I can try to help. Patches to fix problems would be even better.

-

check_bioctl also uses utils.pm from the Nagios Plugins package, so that needs to be installed.

-

TODO: -

+

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/doas.conf.

-

Download the current version here

-

- Please be sure to support the OpenBSD - project by purchasing - CDs, - T-shirts, or making a - donation. -
- These finances ensure that OpenBSD will continue to exist, and - will remain free - for everyone to use and reuse as they see fit. -

-
-check_bioctl plugin for Nagios monitors bioctl on OpenBSD
-	check_bioctl -d <device> [ -d <device2> [ -d ... ] ]
 
-Usage:
-	-d, --device=DEVICE
-		DEVICE to check.  Can be any device that bioctl(8) accepts
-	-h, --help       usage help
-	-V, --version    version information
+		

+ This is an example of a setup for NRPE. For checks on the machine running + Nagios, use the _nagios user in /etc/doas.conf instead of _nrpe, and of course, + no ${SYSCONFDIR}/nrpe.cfg. check_bioctl runs bioctl once for each device, so + you will need a doas.conf entry that matches each device you wish to check. If + you have multiple RAID volumes, you'll need one permit rules per volume. +

-check_bioctl (nagios-plugins 1.4.2) 1.4 -The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute -copies of the plugins under the terms of the GNU General Public License. -For more information about these matters, see the file named COPYING. -
- This is an example of what I have set up for NRPE. For checks on the machine running Nagios, use the _nagios user in /etc/sudoers instead of _nrpe, and of course, no /etc/nrpe.cfg. -
-$ grep check_bioctl /etc/sudoers /etc/nrpe.cfg
-/etc/sudoers:_nrpe   ALL = NOPASSWD:/usr/local/libexec/nagios/check_bioctl -d ami0 -d ami1
-/etc/nrpe.cfg:command[check_bioctl]=/usr/bin/sudo /usr/local/libexec/nagios/check_bioctl -d ami0 -d ami1
-		
+
+/etc/doas.conf:
+permit nopass _nrpe as root cmd /sbin/bioctl args ami0
+permit nopass _nrpe as root cmd /sbin/bioctl args ami1
+
+ +
+${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.

-

Andrew Fresh <andrew@mad-techies.org>

-

$RedRiver: check_bioctl.html,v 1.2 2006/07/29 00:05:24 andrew Exp $

+ +

+ Download v1.22 +