Current Path : /usr/lib64/nagios/plugins/ |
Current File : //usr/lib64/nagios/plugins/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}