MRTG2PCP(1)
π MRTG2PCP π
okay bestie, welcome to mrtg2pcp β the little Perl icon that slurps up your MRTG logs and spits out a whole Performance Co-Pilot archive. it's giving glow-up, fr fr. β¨
πΈ NAME πΈ
mrtg2pcp β import MRTG data and create a PCP archive π¦
β¨ SYNOPSIS β¨
mrtg2pcp hostname devname timezone infile outfile
π DESCRIPTION π
so the whole vibe of mrtg2pcp is: it reads an MRTG log file β the kind mrtg(1) makes β and translates it into a Performance Co-Pilot (PCP) archive whose basename is outfile. that's the main character move. π
the hostname, devname, and timezone arguments are there to tell it the tea about the system those stats came from. no cap, it needs them.
once you've got your archive, it plays nice with all the PCP client tools:
- graph subsets of the data with
pmchart(1)π - do data reduction and reporting
- filter with the PCP inference engine,
pmie(1) - etc. (iykyk)
a series of physical files gets created with the prefix outfile. lowkey iconic trio:
outfile.0β the performance data πoutfile.metaβ the metadata that describes the performance dataoutfile.indexβ a temporal index to improve efficiency of replay operations for the archive
π¨ okay important: if any of these files already exists, then mrtg2pcp will not overwrite them, and it will exit with an error message of the form:
__pmLogNewFile: ``blah.0'' already exists, not over-written
mrtg2pcp is a Perl script that uses the PCP::LogImport Perl wrapper around the PCP libpcp_import library. so if you're feeling crafty, it could totally be used as an example to develop new tools to import other types of performance data and create PCP archives. π go off, honestly.
π 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. and the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5). π
π SEE ALSO π
and that's the whole page, bestie π«Ά this one came straight out of the Performance Co-Pilot era of PCP, page MRTG2PCP(1). mwah, go import something pretty πβ¨
π¦ 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-import-mrtg2pcp 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-import-mrtg2pcp 6.3.8-1
- ubuntu resolute: pcp-import-mrtg2pcp 7.1.1-1
- ubuntu stonking: pcp-import-mrtg2pcp 7.2.1-2build1
- Copyright (c) 2010 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms