Add installation doc
This commit is contained in:
parent
7f98688245
commit
bd606b9eb9
1 changed files with 14 additions and 1 deletions
15
README.md
15
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 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
|
||||||
-----
|
-----
|
||||||
|
|
Loading…
Reference in a new issue