Add NRPE check bioctl for RAID devices and fix CHANGELOG and README syntax
This commit is contained in:
parent
798a87b0ff
commit
4522546edd
|
@ -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/),
|
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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased - 7.0.0]
|
||||||
|
|
||||||
## [7.0.0] - 2021-12-09
|
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Configure locale to en_US.UTF-8 in .profile file so that "git log" displays the accents correctly
|
- Configure locale to en_US.UTF-8 in .profile file so that "git log" displays the accents correctly
|
||||||
- Use vim as default git editor
|
- Use vim as default git editor
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Add a bioctl NRPE check for RAID devices
|
||||||
|
|
||||||
## [6.9.2] - 2021-10-15
|
## [6.9.2] - 2021-10-15
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# EvoBSD 7.0.0
|
# EvoBSD
|
||||||
|
|
||||||
EvoBSD is an ansible project used for customising OpenBSD hosts
|
EvoBSD is an ansible project used for customising OpenBSD hosts
|
||||||
used by Evolix.
|
used by Evolix.
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
- nrpe--
|
- nrpe--
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Install monitoring-plugins
|
- name: Install monitoring packages
|
||||||
openbsd_pkg:
|
openbsd_pkg:
|
||||||
name:
|
name:
|
||||||
- monitoring-plugins
|
- monitoring-plugins
|
||||||
|
- check_bioctl
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Create nrpe.d dir
|
- name: Create nrpe.d dir
|
||||||
|
|
|
@ -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_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_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_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)
|
# Local checks (not packaged)
|
||||||
#command[check_openvpn]=/usr/local/libexec/nagios/plugins/check_openvpn.pl -H 127.0.0.1 -p 1195 -P PASSWORD
|
#command[check_openvpn]=/usr/local/libexec/nagios/plugins/check_openvpn.pl -H 127.0.0.1 -p 1195 -P PASSWORD
|
||||||
|
|
|
@ -146,3 +146,15 @@ ServiceType: firewall
|
||||||
ServiceVersion: packetfilter
|
ServiceVersion: packetfilter
|
||||||
|
|
||||||
EOT
|
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
|
||||||
|
|
Loading…
Reference in a new issue