#!/bin/bash                                                                     

PID=`ps -eaf | grep kafka | grep zookeeper.properties | awk '{print $2}'`
if [[ "" != "$PID" ]]; then
    echo "OK - Zookeeper est bien lancé";
    exit 0
else
    echo "CRITICAL - Zookeeper n'est pas lancé";
    exit 2
fi


