zabbix-helpers/check_email_delivery/run.sh

15 lines
399 B
Bash
Raw Normal View History

2024-11-06 10:16:00 +03:00
#!/bin/bash
# Run service
BIN_DIR=${BIN_DIR:-/usr/local/bin}
ETC_DIR=${ETC_DIR:-/usr/local/etc}
LIB_DIR=${LIB_DIR:-/usr/local/lib}
echo "Creating host into zabbix"
${BIN_DIR}/zabbix_create_host.sh
${BIN_DIR}/check_email_send_delivery.sh local ${MAIL_SERVER}
${BIN_DIR}/check_email_send_delivery.sh incoming ${MAIL_SERVER}
${BIN_DIR}/check_email_send_delivery.sh outgoing ${MAIL_SERVER}
sleep 300