Current Path : /proc/3/task/3/root/proc/3/task/3/cwd/opt/zabbix_scripts/oldscripts/ |
Current File : //proc/3/task/3/root/proc/3/task/3/cwd/opt/zabbix_scripts/oldscripts/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}