PMLOGGER_DAILY_REPORT(1)
π NAME π
pmlogger_daily_report β write Performance Co-Pilot daily summary reports β¨
okay so real quick, this is a General Commands Manual page for PMLOGGER_DAILY_REPORT(1), and she is giving "I quietly keep receipts on your machine's whole entire day" energy π
π¦ SYNOPSIS π¦
$PCP_BINADM_DIR/pmlogger_daily_report [-ApV?] [-a archivefile] [-f
outputfile] [-h hostname] [-l logfile] [-o directory] [-t interval]
β¨ DESCRIPTION β¨
pmlogger_daily_report writes daily performance summary reports, much like the ones sadc(1) and the sa2(8) utility produce. it's giving classic sysadmin scrapbook, honestly π
All of the command line arguments are optional and intended to be self explanatory. no pressure, no requirements, just vibes π«Ά
By default, the reports are not generated. but β and this is the plot twist β if the pcp-zeroconf package has been installed (there will be files in $PCP_VAR_DIR/config/pmlogconf/zeroconf) then the necessary metrics will have been included in the default pmlogger(1) configuration file and the reports will be generated. so it's giving "install one thing and suddenly everything works" π
The reports are generated (by default) soon after midnight, once pmlogger_daily(1) has completed the merging of any partial archives to generate one archive for yesterday's activity. midnight shift workers fr fr π
Each performance summary report is named sarXX (where XX is yesterdays day-of-the-month). The outputfile may be changed with the -f option. The report will be written to the $PCP_LOG_DIR/sa directory by default, but this may be changed with the -o option to a different directory. pick your own adventure, bestie ποΈ
Note that there are sufficiently flexible command line options for pmlogger_daily_report to be used to read any archivefile and write the report to any output directory. she's flexible, she's adaptable, she's booked and busy π
If the -a option is not given, the default input archivefile is $PCP_ARCHIVE_DIR/HOSTNAME/YYYYMMDD, where HOSTNAME defaults to the local hostname (unless changed with the -h option) and YYYYMMDD is the base name of yesterdays merged archive, as produced by pmlogger(1) and pmlogger_daily(1). If archivefile is a directory, then pmlogger_daily_report will use all PCP archives found in that directory to write the report (this is known as multi-archive mode, and may be considerably slower than specifying a single archive as the input). no cap, multi-archive mode is highkey the slow one π
The reports themselves are created by the pmrep(1) utility using its default configuration file, see pmrep.conf(5). The pmrep(1) configuration entries used to write the reports is currently hardwired into the pmlogger_daily_report script. hardwired. permanent. committed. periodt π
Finally, the input archives must contain sufficient metrics as needed by pmrep(1) to write the report. On platforms that support it, the pcp-zeroconf package configures PCP logging as required for this - hence pmlogger_daily_report should be used with the pmlogger(1) configuration that is set up by pcp-zeroconf. As the name suggests, pcp-zeroconf requires no additional configuration after installation in order to capture the required archives needed by pmlogger_daily_report. zero config, maximum slay β¨
π OPTIONS π
The available command line options are:
-aarchive β Specifies an alternate input archive file basename or directory path. ποΈ-Aβ Use the start and end times of input archive for the report, as opposed to the default behaviour of 24 hours from midnight yesterday. so like, the archive decides the window instead of the clock β°-ffilename β Specifies an alternate output filename. π-hhostname β Specifies an alternate hostname to use within the default input archive file path. π₯οΈ-lfile,--logfile=file β In order to ensure that mail is not unintentionally sent when this script is run frompmlogger_daily(1)diagnostics are always sent to a log file. By default, this file is$PCP_LOG_DIR/pmlogger/pmlogger_daily_report.logbut this can be changed using the-loption. If this log file already exists when the script starts, it will be renamed with a.prevsuffix (overwriting any log file saved earlier) before diagnostics are generated to the log file. so yeah, the old log gets replaced β that previous.previs gone gone π-pβ If this option is specified then the status of the daily processing is polled and if the report has not been done in the last 24 hours then it is done now. With this option,pmlogger_daily_reportsimply exits if the previous day's processing has already been done.
This option is no longer required as the polling of pmlogger_daily(1) will ensure the report will be generated, however the option is retained for backwards compatibility. legacy queen, still invited to the party π
-tinterval β Specifies the sampling interval used when generating the report, in the format described inPCPIntro(1). The default is every 10 minutes. β±οΈ-V,--verboseβ The output from the execution of the script may be extended using this option which enables verbose tracing of activity. By default the script generates no log output unless some error or warning condition is encountered. she's quiet until something's wrong, iconic behavior π-?,--helpβ Display usage message and exit. π
πΈ 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). β¨
π§ SEE ALSO π§
PCPIntro(1), pmlogger_daily(1), pmlogger(1), pmrep(1), sadc(1) and sa2(8).
and that's the whole page bestie, every flag accounted for, nothing skipped, we ate and left no crumbs π
made with love by the Performance Co-Pilot girlies, PCP edition, on PMLOGGER_DAILY_REPORT(1) β stay reporting, stay slaying, iykyk ππ
π¦ 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
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- centos-stream 9: pcp-doc 6.3.7-14.el9 Β· GPL-2.0-or-later AND CC-BY-3.0
- debian trixie: pcp 6.3.8-1
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-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.1.0-6.fc44 Β· 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 questing: pcp 6.3.8-1
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2018-2019 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms