From d4774d0ddf4704e617c0f6c1294b4f504d92b1d5 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 23 Feb 2021 12:20:37 +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 29007bf..24eca09 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,20 @@ Icinga/Nagios plugin to check MDB database This script could be used as Icinga/Nagios check plugin to check MDB database. -This script use _mdb_stat_ utility to do this check. +This script use *mdbstat* utility to do this check. + +Installation +------------ + +``` +apt install lmdb-utils +git clone https://gogs.zionetrix.net/bn8/check_mdb.git /usr/local/src/check_mdb +mkdir -p /usr/local/lib/nagios/plugins +ln -s /usr/local/src/check_mdb/check_mdb /usr/local/lib/nagios/plugins/ +echo "command[check_mdb]=/usr/local/lib/nagios/plugins/check_md" > /etc/nagios/nrpe.d/ldap-mdb.cfg +service nagios-nrpe-server reload +``` + Usage -----