Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_spamassassin_bayes

Rating
0 votes
Favoured:
0
Current Version
1.0.0
Last Release Date
2012-09-18
Compatible With
  • Nagios 3.x
License
GPL
Hits
51662
Files:
FileDescription
check_bayesPerl-script check_spamassassin_bayes V1.0.0
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Perl script to check spamassassins bayes database is up-to-date and running.
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.