Add installation doc

This commit is contained in:
Benjamin Renard 2021-02-23 12:27:32 +01:00
parent 7f98688245
commit bd606b9eb9

View file

@ -3,7 +3,20 @@ Nagios plugin to check slapd schema
This script could be used as Nagios check plugin to check schema compliance of the contents of a slapd database. This script could be used as Nagios check plugin to check schema compliance of the contents of a slapd database.
This script use slapschema utility to do this check. This script use *slapschema* utility to do this check.
Installation
------------
```
git clone https://gogs.zionetrix.net/bn8/check_slapd_schema.git /usr/local/src/check_slapd_schema
mkdir -p /usr/local/lib/nagios/plugins
ln -s /usr/local/src/check_slapd_schema/check_slapd_schema /usr/local/lib/nagios/plugins/
echo "nagios ALL=NOPASSWD: /usr/local/src/check_slapd_schema/check_slapd_schema" > /etc/sudoers.d/nagios-slapd-schema
chmod 0400 /etc/sudoers.d/nagios-slapd-schema
echo "command[check_slapd_schema]=sudo /usr/local/lib/nagios/plugins/check_slapd_schema" > /etc/nagios/nrpe.d/ldap-schema.cfg
service nagios-nrpe-server reload
```
Usage Usage
----- -----