Current Path : /opt/zabbix_scripts/ |
Current File : //opt/zabbix_scripts/check_mailchannels.sh |
#!/bin/bash STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 VALUE=$(grep -q send_via_mailchannels /etc/exim.conf || echo "MailChannels NOT configured") if [ -z "${VALUE}" ] then RET=${STATE_OK} DATA="OK: MailChannels is configured" else RET=${STATE_CRITICAL} DATA="CRITICAL: ${VALUE}" fi echo "${DATA}" exit ${RET}