Nagios plugin for check exim4 mails in queue. Supports directly usage and Nagios/Icinga usage.
-w (--warning)- Specify warning number of emails in queue (usage:-w <integer> | --warning=<integer>).-c (--critical)- Specify critical number of emails in queue (usage:-c <integer> | --critical=<integer>).
Put check_eximq.sh to nagios plugins directory (usually /usr/lib*/nagios/plugins). Than make file executable (chmod +x check_eximq.sh).
./check_eximq.sh -w <integer> -c <integer>Add following check command object to your commands file
object CheckCommand "eximq" {
import "plugin-check-command"
command = [ PluginDir + "/check_eximq" ]
arguments = {
"-w" = "$eximq_warning$"
"-c" = "$eximq_critical$"
}
}Notice: critical and warning number of mails must be integer and critical number of mails must be greater than warning number of mails.
- 17.01.2018 - 1.0.0 - released