PMDAAPACHE(1)
π PMDAAPACHE π
okay so bestie, listen β this is the manual page for pmdaapache, aka the Apache2 web server performance metrics domain agent (PMDA), from the General Commands Manual. it's giving sysadmin excellence, no cap. π¦
β¨ SYNOPSIS β¨
$PCP_PMDAS_DIR/apache/pmdaapache [-D debug] [-d domain] [-l logfile] [-U
username] [-S server] [-P port] [-L location]
πΈ DESCRIPTION πΈ
so pmdaapache is a Performance Metrics Domain Agent (PMDA) that pulls out performance metrics describing the state of an Apache web server. literally its whole job. π
the apache PMDA exports metrics that measure the request rate, cumulative request sizes, uptime and various connection states for active clients. obsessed with the range honestly.
this info is obtained by performing a HTTP request to the server status URL, which must be enabled in the httpd.conf configuration file. like, mandatory bestie, no status page = no metrics. π
ExtendedStatus on
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>
and here's a brief description of the pmdaapache command line options, because we're thorough in this house:
-dβ the performance metrics domain number. it is absolutely crucial that the domain number specified here is unique and consistent. meaning:domainshould 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 fumble this one, i'm so serious. π-lβ location of the log file. by default, a log file namedapache.logis written in the current directory ofpmcd(1)whenpmdaapacheis 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. slay, graceful degradation. β¨-Sβ query the Apache status information from the named server rather than the local host.-Pβ query the Apache status information from the given port rather than the default (80).-Lβ specify an alternative location for finding theserver-statuspage.-Uβ user account under which to run the agent. the default is the unprivileged"pcp"account in current versions of PCP, but in older versions the superuser account ("root") was used by default. glow-up behavior fr fr. π
π INSTALLATION π
if you want access to the names, help text and values for the apache performance metrics, do the following as root:
# cd $PCP_PMDAS_DIR/apache
# ./Install
if you want to undo the installation, do the following as root:
# cd $PCP_PMDAS_DIR/apache
# ./Remove
pmdaapache is launched by pmcd(1) and should never be executed directly. the Install and Remove scripts notify pmcd(1) when the agent is installed or removed. so don't be a main character and run it yourself, the system handles it. π
π¦ FILES π¦
$PCP_PMCDCONF_PATHβ command line options used to launchpmdaapache$PCP_PMDAS_DIR/apache/helpβ default help text file for the apache metrics$PCP_PMDAS_DIR/apache/Installβ installation script for thepmdaapacheagent$PCP_PMDAS_DIR/apache/Removeβ undo installation script for thepmdaapacheagent$PCP_LOG_DIR/pmcd/apache.logβ default log file for error messages and other information frompmdaapache
π 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 ngl 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. π
debugging options specific to pmdaapache are as follows:
appl0β trace eachrefreshData()callappl1β report badness detected inrefreshData()appl2β dump internal data after eachrefreshData()call
β SEE ALSO β
PCPIntro(1), httpd(8), pmcd(1), pcp.conf(5) and pcp.env(5).
and that's the whole page bestie!! π«Ά this one's brought to you by Performance Co-Pilot (the PCP girlies π) β PMDAAPACHE(1), 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) 2014 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms