kerio_mailqueue_check
Inhaltsverzeichnis
Kerio Mailqueue-Check
Installation
cd /usr/lib/check_mk_agent/local/ wget -O kerio_mailqueue "https://wiki.mhcsoftware.de/_export/code/kerio_mailqueue_check?codeblock=1" chmod +x kerio_mailqueue
Check
#!/bin/bash QueueDir=`grep StoreDir /opt/kerio/mailserver/mailserver.cfg | cut -d ">" -f 2 | cut -d "<" -f 1`/queue warn=10 critical=20 count=`find $QueueDir -type f -name "*.eml" | wc -l` item="Kerio_Mailqueue" status=0 text="OK" if [ $count -gt $warn ]; then status=1 text="WARNING" fi if [ $count -gt $critical ]; then status=2 text="CRITICAL" fi echo "$status $item count=$count;$warn;$critical;0 $text - $count mails in queue"
kerio_mailqueue_check.txt · Zuletzt geändert: 2017/03/17 11:37 von 127.0.0.1