cookbook-zabbix/files/default/traps/openldap2.sh

13 lines
150 B
Bash
Raw Normal View History

2017-02-07 01:02:03 -05:00
#!/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