#!/bin/sh
if [ -f /var/run/icinga2/icinga2.pid ];
then
echo "[OK] Icinga2 pidfile found"
exit 0
else
echo "[FAIL] Icinga2 pidfile not found"
exit 1
fi