Fix install doc

This commit is contained in:
Benjamin Renard 2021-02-23 12:34:52 +01:00
parent bd606b9eb9
commit 15ca2f3f35

View file

@ -12,7 +12,7 @@ Installation
git clone https://gogs.zionetrix.net/bn8/check_slapd_schema.git /usr/local/src/check_slapd_schema git clone https://gogs.zionetrix.net/bn8/check_slapd_schema.git /usr/local/src/check_slapd_schema
mkdir -p /usr/local/lib/nagios/plugins mkdir -p /usr/local/lib/nagios/plugins
ln -s /usr/local/src/check_slapd_schema/check_slapd_schema /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 echo "nagios ALL=NOPASSWD: /usr/local/lib/nagios/plugins/check_slapd_schema" > /etc/sudoers.d/nagios-slapd-schema
chmod 0400 /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 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 service nagios-nrpe-server reload