1PMDAMAILQ(1) General Commands Manual PMDAMAILQ(1)
2
3
4
6 pmdamailq - mail queue performance metrics domain agent (PMDA)
7
9 $PCP_PMDAS_DIR/mailq/pmdamailq [-b binlist] [-d domain] [-l logfile]
10 [-r regex] [queuedir]
11
13 pmdamailq is a Performance Metrics Domain Agent (PMDA) which extracts
14 performance metrics describing the state of the e-mail queues managed
15 by sendmail(1) and other mail transfer agents.
16
17 The mailq PMDA exports metrics that measure the total number of entries
18 in the mail queue, and the subtotals for entries that have been queued
19 for various time periods.
20
21 A brief description of the pmdamailq command line options follows:
22
23 -b The binlist argument specifies a list of delay thresholds used to
24 ``bin'' the entries in the queue into a a histogram based on how
25 long the entry has been in the mail queue. The default thresholds
26 are: 1 hour, 4 hours, 8 hours, 1 day, 3 days and 7 days. The
27 entries in binlist are comma separated time intervals, using the
28 syntax described in PCPIntro(1) for an update or reporting inter‐
29 val, e.g. the default list could be specified using the value
30 1hr,4hrs,8hrs,1day,3days,7days.
31
32 Values in binlist are assumed to be in ascending order, and mail
33 items in the queue less than the first threshold are binned into a
34 special bin labeled ``recent''.
35
36 -d It is absolutely crucial that the performance metrics domain num‐
37 ber specified here is unique and consistent. That is, domain
38 should be different for every PMDA on the one host, and the same
39 domain number should be used for the same PMDA on all hosts.
40
41 -l Location of the log file. By default, a log file named mailq.log
42 is written in the current directory of pmcd(1) when pmdamailq is
43 started, i.e. $PCP_LOG_DIR/pmcd . If the log file cannot be cre‐
44 ated or is not writable, output is written to the standard error
45 instead.
46
47 -r Use an extended regular expression to match file names in the mail
48 queue directory, rather than assuming all "df" prefixed files in
49 the directory are mail files (the "df" prefix is the sendmail con‐
50 vention, but this convention is not followed by other mail dae‐
51 mons). The regex pattern specified should conform to the POSIX
52 format described in regex(3), and it describes file names that
53 should be considered mail.
54
55 The optional queuedir argument defines the directory in which pmdamailq
56 expects to find the mail queue. The default is /var/spool/mqueue.
57
59 If you want access to the names, help text and values for the mailq
60 performance metrics, do the following as root:
61
62 # cd $PCP_PMDAS_DIR/mailq
63 # ./Install
64
65 If you want to undo the installation, do the following as root:
66
67 # cd $PCP_PMDAS_DIR/mailq
68 # ./Remove
69
70 pmdamailq is launched by pmcd(1) and should never be executed directly.
71 The Install and Remove scripts notify pmcd(1) when the agent is
72 installed or removed.
73
75 $PCP_PMCDCONF_PATH
76 command line options used to launch pmdamailq
77 $PCP_PMDAS_DIR/mailq/help
78 default help text file for the mailq metrics
79 $PCP_PMDAS_DIR/mailq/Install
80 installation script for the pmdamailq agent
81 $PCP_PMDAS_DIR/mailq/Remove
82 undo installation script for the pmdamailq agent
83 $PCP_LOG_DIR/pmcd/mailq.log
84 default log file for error messages and other information
85 from pmdamailq
86
88 Environment variables with the prefix PCP_ are used to parameterize the
89 file and directory names used by PCP. On each installation, the file
90 /etc/pcp.conf contains the local values for these variables. The
91 $PCP_CONF variable may be used to specify an alternative configuration
92 file, as described in pcp.conf(4).
93
95 PCPIntro(1), pmcd(1), pcp.conf(4) and pcp.env(4).
96
97
98
99Performance Co-Pilot SGI PMDAMAILQ(1)