From bd606b9eb938121e768f65a2ed5a87578a478d41 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 23 Feb 2021 12:27:32 +0100 Subject: [PATCH] Add installation doc --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3250267..55b8391 100644 --- a/README.md +++ b/README.md @@ -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 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 -----