SA-CHECK_SPAMD.RAW(1)
π sa-check_spamd β the spamd vibes monitor π
okay bestie, so this page is SA-CHECK_SPAMD.RAW(1) from the User Contributed Perl Documentation, and it's literally your girl's guide to a little script called sa-check_spamd. it watches spamd for you and tells you if it's slaying or flopping. no cap. π¦
β¨ NAME β¨
sa-check_spamd β a spamd monitoring script, made to be used with Nagios and friends, etc.
πΈ SYNOPSIS πΈ
sa-check_spamd [options]
Options:
-c secs, --critical=secs Critical ping response threshold
-h, -?, --help Print usage message
-H hostname, --hostname=hostname Hostname of spamd service to ping
-p port, --port=port Port of spamd service to ping
--socketpath=path Connect to given UNIX domain socket
-t secs, --timeout=secs Max time to wait for a ping response
-v, --verbose Verbose debug output
-V, --version Output version info
-w secs, --warning=secs Warning ping response threshold
π«Ά DESCRIPTION π«Ά
so the whole point of this program, bestie, is to give you a tool to monitor the status of "spamd" server processes. spamd is the daemonized version of the spamassassin executable, and both of them come with the SpamAssassin distribution. they're a package deal, iykyk. π
this program is designed for use, as a plugin, with the Nagios service monitoring software available from http://nagios.org. it might be compatible with other service monitoring packages too, no promises though. it's also genuinely useful as a command line utility, or as a component of a custom shell script you wrote at 2am. main character energy honestly. π
π OPTIONS π
lowkey important: options of the long form can be shortened as long as they remain unambiguous (i.e. --host can be used instead of --hostname). periodt.
-c secs,--critical=secsβ Critical ping response threshold, in seconds. if a spamd ping response takes longer than the value you specified (in seconds), the program will exit with a value of2to indicate the critical status. π¨
this value must be at least as long as the value specified for warning, and less than the value specified for timeout.
-h,-?,--helpβ prints this usage message and exits. that's it, that's the whole job. π-H hostname,--hostname=hostnameβ the hostname, or IP address, of the spamd service to ping. by default the hostnamelocalhostis used. if--socketpathis set, this value will be ignored. π-p port,--port=portβ the port of the spamd service to ping. by default port783(the spamd default port number) is used. if--socketpathis set, this value will be ignored. π--socketpath=pathβ connect to given UNIX domain socket. use this instead of a hostname and TCP port. when it's set, any hostname and TCP port specified will be ignored. slay, unified sockets. π§-t secs,--timeout=secsβ the maximum time to wait for a ping response. once that's exceeded, the program will exit with a value of2to indicate the critical status. the default timeout value is45seconds. the timeout must be no less than1second. β³
this value must be greater than the values specified for both the critical and warning values.
-v,--verboseβ display verbose debug output onSTDOUT. spill the tea, bestie. β-V,--versionβ display version info onSTDOUT. π-w secs,--warning=secsβ warning ping response threshold, in seconds. if a spamd ping response takes longer than the value you specified (in seconds), and does not exceed the critical threshold value, the program will exit with a value of1to indicate the warning status. π‘
this value must be no longer than the value specified for critical, and less than the value specified for timeout.
π EXIT CODES π
the program will indicate the status of the spamd process being monitored by exiting with one of these values. this is the vibe check, fr fr:
0β OK: a spamd ping response was received within all threshold times. we love to see it. π1β WARNING: a spamd ping response exceeded the warning threshold but not the critical threshold. π‘2β CRITICAL: a spamd ping response exceeded either the critical threshold or the timeout value. π¨3β UNKNOWN: an error occurred in the sa-check_spamd program β probably caused by a missing dependency, or an invalid configuration parameter being supplied. π
π SEE ALSO π
spamc(1) spamd(1) spamassassin(1)
go read those too, bestie, they're the whole lore. π
π PREREQUISITES π
"Mail::SpamAssassin" version 3.1.1 or higher (3.1.6 or higher recommended). yes, version matters, don't come at me with the old stuff. π
π AUTHOR π
Daryl C. W. O'Shea, DOS Technologies <spamassassin@dostech.ca>
π COPYRIGHT AND LICENSE π
sa-check_spamd is distributed under the Apache License, Version 2.0, as described in the file "LICENSE" included with the Apache SpamAssassin distribution and available at http://www.apache.org/licenses/LICENSE-2.0
Copyright (C) 2015 The Apache Software Foundation
ok so that's the whole page, and this wasSA-CHECK_SPAMD.RAW(1)from the User Contributed Perl Documentation βperl v5.40.1, dated2026-07-23. that's the footer tea, bestie, go monitor some spamd, you got this π«Άβ¨π
π¦ where this page comes from
- ubuntu stonking: spamassassin 4.0.2+svn1935691-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms