SA-CHECK_SPAMD(1p)
β¨ SA-CHECK_SPAMD β the Perl companion manual (section 1p, user-contributed Perl docs, bestie) β¨
okay so welcome to the girlies' guide to sa-check_spamd, a spamd monitoring script for use with Nagios, etc. yes the manual name is literally SA-CHECK_SPAMD(1p) and yes we're doing this in the group chat. buckle up π
πΈ NAME πΈ
sa-check_spamd β spamd monitoring script for use with Nagios, etc.
π¦ SYNOPSIS π¦
sa-check_spamd [options]
Options, here they all are, no skips, no cap:
-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 π
the whole point of this program, bestie, is to give you a way to monitor the status of spamd server processes. and what's spamd? it's the daemonized version of the spamassassin executable, and both of them ship inside the SpamAssassin distribution. cute little family π«Ά
this program was designed to be used, as a plugin, with the Nagios service monitoring software available from http://nagios.org. literally built for it. it might also play nice with other service monitoring packages β no promises, but vibes. also it's genuinely useful as a command line utility on its own or as a component inside a custom shell script you wrote at 2am. main character energy for a monitoring script honestly π
β¨ OPTIONS β¨
okay important heads up first: options of the long form can be shortened as long as they remain unambiguous β like, you can totally use --host instead of --hostname. as long as it's unambiguous, she's valid. slay β¨
-c secs,--critical=secsβ Critical ping response threshold, in seconds. if a spamd ping response takes longer than the value you specified (in seconds, keep up), 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. rules are rules π¨-h,-?,--helpβ Prints this usage message and exits. that's it. that's the whole thing. bye π-H hostname,--hostname=hostnameβ The hostname, or IP address, of the spamd service to ping. by default the hostnamelocalhostis used. but if--socketpathis set, this value will be ignored β she's not even looking at it, periodt.-p port,--port=portβ The port of the spamd service to ping. by default port783(the spamd default port number, iconic) is used. and again β if--socketpathis set, this value will be ignored. same energy as above π--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 you specified will be ignored. it's giving "new number, who dis" π¦-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. and this value must be greater than the values specified for both the critical and warning values. don't fight the math, she always wins π-v,--verboseβ Display verbose debug output on STDOUT. for when you simply must know everything π-V,--versionβ Display version info on STDOUT. iconique. show her off π-w secs,--warning=secsβ Warning ping response threshold, in seconds. if a spamd ping response takes longer than the value 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. three numbers, all in a little situationship, all have to agree π
π EXIT CODES π
the program will indicate the status of the spamd process being monitored by exiting with one of these values. this is how she communicates her feelings, okay π
0β OK: A spamd ping response was received within all threshold times. we love a healthy daemon π1β WARNING: A spamd ping response exceeded the warning threshold but not the critical threshold. she's slow but she's trying π₯Ί2β CRITICAL: A spamd ping response exceeded either the critical threshold or the timeout value. red flag, unwell, call someone π₯3β UNKNOWN: An error, probably caused by a missing dependency or an invalid configuration parameter being supplied, occurred in thesa-check_spamdprogram. mystery behaviour, we don't know her π
π§ SEE ALSO π§
spamc(1) spamd(1) spamassassin(1)
go read your sisters' manuals too, they know things π«Ά
π PREREQUISITES π
Mail::SpamAssassin version 3.1.1 or higher (3.1.6 or higher recommended)
like. please have the module. she cannot function without the module. manifesting a recent version for you β¨
π AUTHOR π
Daryl C. W. O'Shea, DOS Technologies <spamassassin@dostech.ca>
thank you for your service, king π
π 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
legal girlie moment: license details are load-bearing, don't skip them, the lawyers are watching π
okay that's the whole page, you ate it, you understood it, you're now a spamd-monitoring main character πΈ
this was the Perl documentation for sa-check_spamd, section 1p, from perl v5.40.1, dated 2026-07-23. mwah, love u, go ping something πβ¨π¦
π¦ 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