D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
local
/
nagios
/
libexec
/
Filename :
check_mailq
back
Copy
#!/bin/bash mailq=`/usr/sbin/exim -bpc` warning="150" critical="200" if [ $mailq -ge $critical ];then echo "CRITICAL: exim mailq is "$mailq" (threshold c = $critical)" exit 2 elif [ $mailq -ge $warning ];then echo "WARNING: exim mailq is "$mailq" (threshold c = $warning)" exit 1 else echo "OK: exim mailq "$mailq" is below threshold ($warning/$critical)" exit 0 fi