PMDAMAILQ(1)
π NAME π
okay bestie, meet pmdamailq β the mail queue performance metrics domain agent, aka a PMDA. that's the whole vibe, no notes. this is the PMDAMAILQ(1) page from the General Commands Manual, and yes we're reading it together, bestie behavior only π
β¨
πΈ SYNOPSIS πΈ
$PCP_PMDAS_DIR/mailq/pmdamailq [-b binlist] [-D debug] [-d domain] [-l logfile] [-r regex] [-U username] [queuedir]
π¦ DESCRIPTION π¦
so pmdamailq is a Performance Metrics Domain Agent (PMDA), and what it does is extract performance metrics describing the state of the e-mail queues managed by sendmail(1) and other mail transfer agents. it's giving surveillance but make it β¨usefulβ¨.
the mailq PMDA exports metrics that measure the total number of entries in the mail queue, plus the subtotals for entries that have been queued for various time periods. basically: how many mails are stuck, and exactly how stuck they are π«Ά
a brief description of the pmdamailq command line options follows β lowkey this is the important part, don't skip it:
-bbinlist β the binlist argument specifies a list of delay thresholds used to "bin" the entries in the queue into a histogram, based on how long the entry has been in the mail queue. the default thresholds are: 1 hour, 4 hours, 8 hours, 1 day, 3 days and 7 days. the entries in binlist are comma separated time intervals, using the syntax described inPCPIntro(1)for an update or reporting interval, e.g. the default list could be specified using the value1hr,4hrs,8hrs,1day,3days,7days.
values in binlist are assumed to be in ascending order, and mail items in the queue less than the first threshold are binned into a special bin labeled recent. cute little bin for the babies π
-ddomain β it is absolutely crucial that the performance metrics domain number specified here is unique and consistent. that is, domain should be different for every PMDA on the one host, and the same domain number should be used for the same PMDA on all hosts. do not play with this one fr fr π-llogfile β location of the log file. by default, a log file namedmailq.logis written in the current directory ofpmcd(1)whenpmdamailqis started, i.e.$PCP_LOG_DIR/pmcd. if the log file cannot be created or is not writable, output is written to the standard error instead.-rregex β use an extended regular expression to match file names in the mail queue directory, rather than assuming alldfprefixed files in the directory are mail files (thedfprefix is the sendmail convention, but this convention is not followed by other mail daemons). the regex pattern specified should conform to the POSIX format described inregex(3), and it describes file names that should be considered mail.-Uusername β user account under which to run the agent. the default is the unprivilegedpcpaccount in current versions of PCP, but in older versions the superuser account (root) was used by default. glow-up era for real π
the optional queuedir argument defines the directory in which pmdamailq expects to find the mail queue. the default is /var/spool/mqueue.
β¨ INSTALLATION β¨
if you want access to the names, help text and values for the mailq performance metrics, do the following as root:
# cd $PCP_PMDAS_DIR/mailq
# ./Install
if you want to undo the installation, do the following as root:
# cd $PCP_PMDAS_DIR/mailq
# ./Remove
β οΈpmdamailqis launched bypmcd(1)and should never be executed directly. theInstallandRemovescripts notifypmcd(1)when the agent is installed or removed. do not freelance on this one bestie, it's not giving main character energy, it's giving broken monitoring π
π FILES π
$PCP_PMCDCONF_PATHβ command line options used to launchpmdamailq$PCP_PMDAS_DIR/mailq/helpβ default help text file for the mailq metrics$PCP_PMDAS_DIR/mailq/Installβ installation script for thepmdamailqagent$PCP_PMDAS_DIR/mailq/Removeβ undo installation script for thepmdamailqagent$PCP_LOG_DIR/pmcd/mailq.logβ default log file for error messages and other information frompmdamailq
π PCP ENVIRONMENT π
environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. on each installation, the file /etc/pcp.conf contains the local values for these variables. the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5). iykyk π
π§ DEBUGGING OPTIONS π§
the -D or --debug option enables the output of additional diagnostics on stderr to help triage problems, although the information is sometimes cryptic and primarily intended to provide guidance for developers rather than for end-users. debug is a comma separated list of debugging options; use pmdbg(1) with the -l option to obtain a list of the available debugging options and their meaning. not me reading cryptic dev output at 3am π
π SEE ALSO π
PCPIntro(1), pmcd(1), pcp.conf(5) and pcp.env(5).
and that's the page bestie!! π brought to you by Performance Co-Pilot β the PCP crew β on the PMDAMAILQ(1) tip. go forth, watch those queues, and slay. periodt. ππ¦β¨
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2012 Red Hat
- Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms