version 1.5, 2009/11/18 19:21:45 |
version 1.6, 2017/02/08 17:16:09 |
|
|
</head> |
</head> |
<body> |
<body> |
<h1>Nagios Check - check_bioctl</h1> |
<h1>Nagios Check - check_bioctl</h1> |
<p>Please see |
<h3>check_bioctl - checks status of a RAID array using bioctl</h3> |
<a href="http://monitoringexchange.org/inventory/Check-Plugins/Hardware/Devices/RAID-Controller/check_bioctl">check_bioctl</a> |
|
on <a href="http://monitoringexchange.org/">Monitoring Exchange</a>.</p> |
<p>This check is for OpenBSD machines with bioctl(8) supported RAID cards. |
|
|
|
<p> |
|
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. |
|
</p> |
|
|
|
<p> |
|
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. |
|
</p> |
|
|
|
<pre> |
|
/etc/doas.conf: |
|
permit nopass _nrpe as root cmd /sbin/bioctl args ami0 |
|
permit nopass _nrpe as root cmd /sbin/bioctl args ami1 |
|
</pre> |
|
|
|
<pre> |
|
${SYSCONFDIR}/nrpe.cfg: |
|
command[check_bioctl]=${PREFIX}/libexec/nagios/check_bioctl -d ami0 -d ami1 |
|
</pre> |
|
|
|
<p> |
|
For more information on |
|
<a href="http://man.openbsd.org/bioctl.8">bioctl(8) see the OpenBSD man page</a>. |
|
</p> |
|
|
|
<p> |
|
<a href="check_bioctl-1.21.tar.gz">Download v1.21</a> |
|
</p> |
</body> |
</body> |
</head> |
</head> |