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_sa-update

Rating
3 votes
Favoured:
0
Current Version
0.4
Last Release Date
2011-11-01
Compatible With
  • Nagios 3.x
License
BSD
Hits
90770
Files:
FileDescription
check_sa-updatecheck_sa-update
Nagios CSP

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!
check_sa-update uses the sa-update tool to verify that you have the current spamassassin rulesets installed. It's very basic and meets my needs, but I'm happy to incorporate any suggested changes as time permits.

check_sa-update is written in perl, and its only dependency is sa-update, provided by your spamassassin installation.
Changelog:

# 0.1 - initial release
# 0.2 - added exit if sa-update command fails
# 0.3 - command help text added
# 0.4 - exits if sa-update is running. Removed exit on error code of sa-update (oops).
Reviews (2)
when called by nrpe, the script may find it's own name in the process list, and therefore fail. Probably the shell variable $$ delivers the wrong pid in this context.

Solution: add
grep -v check_sa-update

to the filter chain.
Works on my CentOS machine.