Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Perl script to check spamassassins bayes database is up-to-date and running.
Current Version
1.0.0
Last Release Date
2012-09-18
Owner
Ralf Schiffers
License
GPL
Compatible With
Perl-script check_spamassassin_bayes V1.0.0
The script checks the age of the newest entry in the spamassassin bayes database. If it's older than the specified warning/critical time it will generate a nagios warning/critical state.
Furthermore the script will print the number of spams, hams and tokens in the database.
As it cannot tie to the database directly it will use a file generated by sa-learn as its input. The easiest way to create this file is via cronjob:
30 * * * * /usr/bin/sa-learn -u amavis --dbpath /var/amavis/.spamassassin/bayes --dump magic > /tmp/sabayes
We use this script on our mailserver via check_by_ssh.
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!