Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_spamassassin_bayes
1.0.0
2012-09-18
- Nagios 3.x
GPL
52034
File | Description |
---|---|
check_bayes | Perl-script check_spamassassin_bayes V1.0.0 |
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!
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.
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.
Reviews (0)
Be the first to review this listing!