cookbook-zabbix/files/default/traps/openldap2.sh
2017-02-07 01:02:03 -05:00

12 lines
150 B
Bash
Executable file

#!/bin/bash
/etc/init.d/slapd status >/dev/null 2>&1
status=$?
if [[ $status -ne 0 ]]
then
echo "- ldap.status 0"
else
echo "- ldap.status 1"
fi