Skip to content

Instantly share code, notes, and snippets.

@RoBo-OnGitHub
RoBo-OnGitHub / zbx-exim-stats.sh
Last active March 23, 2021 21:32 — forked from crashdump/zbx-exim-stats.sh
A simple Zabbix statistics pusher. It check and report these values: - Number of running processes exim4 (trigger if 0) - Mails Queue Size (trigger if >500 and >1000) - Mails Received - Mails Error - Mails Received Size in Bytes - Mails Delivered - Mails Delivered Size in BytesImport the template. Assign to you hosts. Cron the .sh.. You're good …
#!/bin/bash
#
# The purpose of this script is to regularly send statistics of exim to a Zabbix server
#
# Updated by RoBo on 2021-03-23
# This is how you can make use of this script:
# Enable "ServerActive" option (zabbix_agentd.conf)
# Try "Hostname" option (zabbix_agentd.conf)
# You need following applications to be installed: