=================================================================== RCS file: /cvs/nagios/check_bioctl/check_bioctl.html,v retrieving revision 1.1 retrieving revision 1.8 diff -u -r1.1 -r1.8 --- nagios/check_bioctl/check_bioctl.html 2006/07/28 01:04:33 1.1 +++ nagios/check_bioctl/check_bioctl.html 2017/02/08 19:02:26 1.8 @@ -4,42 +4,42 @@
check_bioctl plugin for Nagios monitors RAID arrays on OpenBSD using bioctl.
-The new raid framework in OpenBSD is really kewl. The fact the commands are the same, no matter which RAID card you use is just amazingly handy.
-TODO: -
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.
--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.3 -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. -
+/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$
+ ++ Download v1.23 +