Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Sendmail mailstats parsing script
Current Version
1.0
Last Release Date
2012-11-18
Owner
Mikanoshi
Download URL
http://mikanoshi.name/share/Nagios/check_mailstats
License
GPL
Compatible With
Bash Script
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).
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
Would you mind sharing the CentOS version of the script you created pls ?
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.
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!