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
90439
Files:
FileDescription
check_sa-updatecheck_sa-update
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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.