All pastes #196506 Raw Edit

check_qq.sh

public text v1 · immutable
·published 2006-10-10 17:30 UTC
rendered paste body
This script is designed to check permods and see is Spamassassin and clamav are running

This script must be run as root


QMR check_perlmods v1.1

Checking for the existence of needed perl modules...

checking for Time::HiRes...
/usr/lib/perl5/5.8.8/i586-linux-thread-multi/Time/HiRes.pm

checking for Net::DNS...
/usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi/Net/DNS.pm

checking for Digest::SHA1...
/usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi/Digest/SHA1.pm

checking for Digest::HMAC...
/usr/lib/perl5/vendor_perl/5.8.8/Digest/HMAC.pm

checking for HTML::Tagset...
/usr/lib/perl5/vendor_perl/5.8.8/HTML/Tagset.pm

checking for HTML::Parser...
/usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi/HTML/Parser.pm

checking for Mail::SpamAssassin...
/usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin.pm

checking for Pod::Usage...
/usr/lib/perl5/5.8.8/Pod/Usage.pm

checking for Parse::Syslog...
/usr/lib/perl5/site_perl/5.8.8/Parse/Syslog.pm

checking for Statistics::Distributions...
/usr/lib/perl5/site_perl/5.8.8/Statistics/Distributions.pm

checking if Spamassassin is running
root      2528  0.1  2.4  26900 25020 ?        S    21:12   0:00 /usr/bin/perl -T -w /usr/sbin/spamd -r /var/run/spamd.pid
root      2540  0.0  0.0   1544   412 ?        Ss   21:12   0:00 startpar -f -- spamd
root      3267  0.0  2.4  27164 25040 ?        S    21:13   0:00 spamd child
root      3268  0.0  2.2  26900 23088 ?        S    21:13   0:00 spamd child

checking if clam is running
vscan     2421  0.1  1.4  27060 15312 ?        S    21:12   0:01 /usr/sbin/clamd
root      3962  0.0  0.0   1860   640 pts/1    R+   21:27   0:00 grep clam

Make sure the file below is owned by qscand:qscand
-rw-r----- 1 qscand qscand 12288 Oct 10 03:57 /var/spool/qmailscan/quarantine-attachments.db

Check Complete.