Add NRPE check bioctl for RAID devices and fix CHANGELOG and README syntax

This commit is contained in:
Jérémy Dubois 2021-12-15 16:29:48 +01:00
parent 798a87b0ff
commit 4522546edd
5 changed files with 21 additions and 5 deletions

View file

@ -5,15 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [7.0.0] - 2021-12-09
## [Unreleased - 7.0.0]
### Changed
- Configure locale to en_US.UTF-8 in .profile file so that "git log" displays the accents correctly
- Use vim as default git editor
### Added
- Add a bioctl NRPE check for RAID devices
## [6.9.2] - 2021-10-15
### Added

View file

@ -1,4 +1,4 @@
# EvoBSD 7.0.0
# EvoBSD
EvoBSD is an ansible project used for customising OpenBSD hosts
used by Evolix.

View file

@ -5,10 +5,11 @@
- nrpe--
state: present
- name: Install monitoring-plugins
- name: Install monitoring packages
openbsd_pkg:
name:
- monitoring-plugins
- check_bioctl
state: present
- name: Create nrpe.d dir

View file

@ -33,6 +33,7 @@ command[check_unbound]=/usr/local/libexec/nagios/check_dig -l evolix.net -H loca
command[check_mysql]=/usr/local/libexec/nagios/check_mysql -H 127.0.0.1 -f /etc/nrpe.d/.my.cnf
#command[check_vpn]=/usr/local/libexec/nagios/check_ping -H IPDISTANTE -p 1 -w 5000,100% -c 5000,100%
command[check_dhcpd]=/usr/local/libexec/nagios/check_procs -c1:1 -C dhcpd
command[check_bioctl]=/usr/local/libexec/nagios/check_bioctl -d sd2
# Local checks (not packaged)
#command[check_openvpn]=/usr/local/libexec/nagios/plugins/check_openvpn.pl -H 127.0.0.1 -p 1195 -P PASSWORD

View file

@ -146,3 +146,15 @@ ServiceType: firewall
ServiceVersion: packetfilter
EOT
if egrep -q 'sd.*RAID' /var/run/dmesg.boot; then
cat<<EOT>>/root/${EvoComputerName}.ldif
dn: ServiceName=bioctl,EvoComputerName=${EvoComputerName},ou=computer,dc=evolix,dc=net
objectClass: EvoService
NagiosEnabled: TRUE
ServiceName: bioctl
ServiceType: RAID
ServiceVersion: RAID
EOT
fi