CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/cwd/opt/zabbix_scripts/
Upload File :
Current File : //proc/2/cwd/opt/zabbix_scripts/cpanel.MailChannels_Configured.sh

#!/bin/bash
################################################################################################################
#                                                                                                              #
# !!!!!!!!!!! This file is managed by Puppet.  Do not edit directly.  Changes will be overwritten. !!!!!!!!!!! #
#                                                                                                              #
# Author:   William O.                                                                                         #
# Revision: 20191227.1230                                                                                      #
################################################################################################################


STATE_OK=0
STATE_WARNING=1

VALUE=$(grep -q send_via_mailchannels /etc/exim.conf || echo "MailChannels NOT configured")

if [ -z "${VALUE}" ]
then
        RET=${STATE_OK}
        DATA="OK"
else
        RET=${STATE_WARNING}
        DATA="WARNING"
fi

echo ${DATA}
exit ${RET}

Copyright 2K16 - 2K18 Indonesian Hacker Rulez