HEX
Server: LiteSpeed
System: Linux shams.tasjeel.ae 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: infowars (1469)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //lib/check_mk_agent/local/Status_Imunify360
#!/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