=================================================================== RCS file: /cvs/nagios/check_bioctl/check_bioctl.html,v retrieving revision 1.2 retrieving revision 1.4 diff -u -r1.2 -r1.4 --- nagios/check_bioctl/check_bioctl.html 2006/07/29 01:05:24 1.2 +++ nagios/check_bioctl/check_bioctl.html 2009/11/09 20:27:13 1.4 @@ -7,13 +7,8 @@
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 also uses utils.pm from the Nagios Plugins package, so that needs to be installed.
+check_bioctl plugin for Nagios monitors bioctl on OpenBSD - check_bioctl -d <device> [ -d <device2> [ -d ... ] ] + 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 + -d, --device=DEVICE + DEVICE to check. Can be any device that bioctl(8) accepts + -h (--help) usage help + -V (--version) version information -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. +check_bioctl v1.9 +Copyright (c) 2009 Andrew Fresh- 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. + 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.+Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
$ 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-
Andrew Fresh <andrew@mad-techies.org>
-$RedRiver: check_bioctl.html,v 1.1 2006/07/28 00:04:33 andrew Exp $
+Andrew Fresh <andrew@afresh1.com>
+$RedRiver: check_bioctl.html,v 1.3 2006/07/31 20:48:27 andrew Exp $