[BACK]Return to check_bioctl.html CVS log [TXT][DIR] Up to [local] / nagios / check_bioctl

Diff for /nagios/check_bioctl/check_bioctl.html between version 1.3 and 1.4

version 1.3, 2006/07/31 21:48:27 version 1.4, 2009/11/09 20:27:13
Line 7 
Line 7 
                 <p>The check_bioctl plugin for <a href="http://www.nagios.org">Nagios</a> monitors RAID arrays on <a href="http://www.openbsd.org">OpenBSD</a> using <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=bioctl">bioctl</a>.</p>                  <p>The check_bioctl plugin for <a href="http://www.nagios.org">Nagios</a> monitors RAID arrays on <a href="http://www.openbsd.org">OpenBSD</a> using <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=bioctl">bioctl</a>.</p>
                 <p>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 <code>sudo check_bioctl</code>.  </p>                  <p>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 <code>sudo check_bioctl</code>.  </p>
                 <p>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.</p>                  <p>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.</p>
                 <p>check_bioctl also uses utils.pm from the <a href="http://www.openbsd.org/3.9_packages/i386/nagios-plugins-1.4.2.tgz-long.html">Nagios Plugins</a> package, so that needs to be installed.</p>                  <p>check_bioctl also uses utils.pm from the Nagios Plugins package, so that needs to be installed.</p>
                 <p>TODO:                  <p><center><b><a href='check_bioctl-1.9.tar.gz'>Download the current version here</a></b></center></p>
                 <ul>  
                         <li>real documentation.</li>  
                 </ul>  
                 </p>  
                 <p><center><b><a href='check_bioctl-1.4.tar.gz'>Download the current version here</a></b></center></p>  
                 <h4>                  <h4>
                         Please be sure to support the <a href="http://www.openbsd.org">OpenBSD</a>                          Please be sure to support the <a href="http://www.openbsd.org">OpenBSD</a>
                         project by purchasing                          project by purchasing
Line 27 
Line 22 
                 </h4>                  </h4>
                 <pre>                  <pre>
 check_bioctl plugin for Nagios monitors bioctl on OpenBSD  check_bioctl plugin for Nagios monitors bioctl on OpenBSD
         check_bioctl -d &lt;device&gt; [ -d &lt;device2&gt; [ -d ... ] ]      check_bioctl -d &lt;device&gt; [ -d &lt;device2&gt; [ -d ... ] ]
   
 Usage:  Usage:
         -d, --device=DEVICE      -d, --device=DEVICE
                 DEVICE to check.  Can be any device that bioctl(8) accepts          DEVICE to check.  Can be any device that bioctl(8) accepts
         -h, --help       usage help      -h (--help)       usage help
         -V, --version    version information          -V (--version)    version information
   
 check_bioctl (nagios-plugins 1.4.2) 1.4  check_bioctl v1.9
 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute  Copyright (c) 2009 Andrew Fresh <andrew@afresh1.com>
 copies of the plugins under the terms of the GNU General Public License.  Permission to use, copy, modify, and distribute this software for any
 For more information about these matters, see the file named COPYING.  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.
                 </pre>                  </pre>
                 This is an example of what I have set up for <a href="http://www.openbsd.org/3.9_packages/i386/nrpe-2.3.tgz-long.html">NRPE</a>.  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.
                 <pre>                  <pre>
 $ grep check_bioctl /etc/sudoers /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/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/nrpe.cfg:command[check_bioctl]=/usr/bin/sudo /usr/local/libexec/nagios/check_bioctl -d ami0 -d ami1
                 </pre>                  </pre>
                 </p>                  </p>
                 <p>Andrew Fresh &lt;<a href='mailto:andrew@mad-techies.org'>andrew@mad-techies.org</a>&gt;</p>                  <p>Andrew Fresh &lt;<a href='mailto:andrew@afresh1.com'>andrew@afresh1.com</a>&gt;</p>
                 <p><small>$RedRiver: check_bioctl.html,v 1.2 2006/07/29 00:05:24 andrew Exp $</small></p>                  <p><small>$RedRiver: check_bioctl.html,v 1.3 2006/07/31 20:48:27 andrew Exp $</small></p>
         </body>          </body>
 </head>  </head>

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>