#!/bin/bash
# CheckMK Local Check - Status_Imunify360
SERVICE="imunify360"
# Check if service exists
if ! systemctl list-unit-files | grep -q "$SERVICE"; then
echo "3 Status_Imunify360 - UNKNOWN - Service $SERVICE not installed"
exit 0
fi
# Check status
if systemctl is-active --quiet "$SERVICE"; then
echo "0 Status_Imunify360 - OK - Imunify360 is RUNNING"
else
echo "2 Status_Imunify360 - CRITICAL - Imunify360 is DOWN"
fi