CHips L MINI SHELL

CHips L pro

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

Copyright 2K16 - 2K18 Indonesian Hacker Rulez