#!/bin/bash                                                                     

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