????
| Current Path : /proc/1724857/root/usr/lib/check_mk_agent/local/ |
| Current File : //proc/1724857/root/usr/lib/check_mk_agent/local/Status_Monarx |
#!/bin/bash
# CheckMK Local Check - Status_Monarx
SERVICE="monarx-agent.service"
# Check if service exists
if ! systemctl list-unit-files | grep -q "$SERVICE"; then
echo "1 Status_Monarx - WARNING - Monarx agent not installed"
exit 0
fi
# Check status
if systemctl is-active --quiet "$SERVICE"; then
echo "0 Status_Monarx - OK - Monarx agent is RUNNING"
else
echo "2 Status_Monarx - CRITICAL - Monarx agent is DOWN"
fi