Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_mailstats
1.0
2012-11-18
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios XI
GPL
60922
File | Description |
---|---|
check_mailstats | Bash Script |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Script parses mailstats output (total row). Provides number of received, sent, rejected and discarded mails.
Performance data interval can be interpreted as per second (-s parameter) or per minute (-m).
/var/log/sendmail.st must have 644 permissions so nagios user can get data from mailstats. You should also disable its log rotation in newsyslog.conf (file doesn't grow in size).
Performance data interval can be interpreted as per second (-s parameter) or per minute (-m).
/var/log/sendmail.st must have 644 permissions so nagios user can get data from mailstats. You should also disable its log rotation in newsyslog.conf (file doesn't grow in size).
Reviews (3)
byxoroz, May 5, 2016
it worked but comment out the part
#if [ ! -r "/var/log/sendmail.st" ]; then
# printf "CRITICAL - /var/log/sendmail.st #has wrong permissions, should be 644
"
# exit
#fi
#if [ ! -r "/var/log/sendmail.st" ]; then
# printf "CRITICAL - /var/log/sendmail.st #has wrong permissions, should be 644
"
# exit
#fi
byDennisPR, September 18, 2013
Would you mind sharing the CentOS version of the script you created pls ?
byGldRush98, January 22, 2013
1 of 1 people found this review helpful
I'm on CentOS and it seems that mailstats works pretty differently on CentOS than FreeBSD (What the author wrote it for).
I had to re-write a large part of the script... I also gave it the ability to check for warning and critical values for received and sent mail, something else lacking here. I spent probably 4 hours bringing this script up to a usable point for us.
I had to re-write a large part of the script... I also gave it the ability to check for warning and critical values for received and sent mail, something else lacking here. I spent probably 4 hours bringing this script up to a usable point for us.