CHips L MINI SHELL

CHips L pro

Current Path : /opt/zabbix_scripts/
Upload File :
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}

Copyright 2K16 - 2K18 Indonesian Hacker Rulez