Annotation of nagios/check_bioctl/README, Revision 1.6
1.1 andrew 1: check_bioctl - checks status of a RAID array using bioctl
2:
1.5 andrew 3: This check is for OpenBSD machines with bioctl(8) supported RAID cards.
1.2 andrew 4:
1.1 andrew 5: The only real caveat with it is that bioctl needs rw permission to
6: /dev/bio. One way to allow for that is by adding an entry to
1.6 ! andrew 7: /etc/sudoers.
1.1 andrew 8:
1.2 andrew 9: This is an example of a setup for NRPE. For checks on the machine running
10: Nagios, use the _nagios user in /etc/sudoers instead of _nrpe, and of course,
1.6 ! andrew 11: no ${SYSCONFDIR}/nrpe.cfg. check_bioctl runs bioctl once for each device, so
! 12: you will need a sudoers entry that matches each device you wish to check.
1.1 andrew 13:
14: /etc/sudoers:
1.6 ! andrew 15: _nrpe ALL = NOPASSWD:/sbin/bioctl ami[01]
1.1 andrew 16:
1.4 andrew 17: ${SYSCONFDIR}/nrpe.cfg:
1.6 ! andrew 18: command[check_bioctl]=${PREFIX}/libexec/nagios/check_bioctl -d ami0 -d ami1
1.1 andrew 19:
1.2 andrew 20: For more information on bioctl(8) see the OpenBSD man page.
21:
22: http://www.openbsd.org
23:
1.6 ! andrew 24: $AFresh1$
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>