B4BY.588
Home
Terminal
Upload
information
Create File
Create Folder
About
Tools
:
/
lib64
/
nagios
/
plugins
/
Filename :
check_monarx
back
Copy
#!/bin/bash if ! command -v monarx-agent >/dev/null 2>&1; then echo "UNKNOWN: Monarx is not installed on this server." exit 3 fi monarx_active=$(service monarx-agent status 2>/dev/null | awk '/Active: active \(running\)/ {print $2,$3}') if [[ "$monarx_active" == "active (running)" ]]; then echo "OK: Monarx is running." exit 0 else echo "CRITICAL: Monarx is not running on this server." exit 2 fi