1MRTG2PCP(1)                 General Commands Manual                MRTG2PCP(1)
2
3
4

NAME

6       mrtg2pcp - import MRTG data and create a PCP archive
7

SYNOPSIS

9       mrtg2pcp hostname devname timezone infile outfile
10

DESCRIPTION

12       mrtg2pcp is intended to read an MRTG log file as created by mrtg(1) and
13       translate this into a Performance Co-Pilot (PCP) archive with the base‐
14       name  outfile.   The  hostname, devname, and timezone arguments specify
15       information about the system for which the statistics were gathered.
16
17       The resultant PCP achive may be used with all PCP client tools to graph
18       subsets  of  the  data  using  pmchart(1),  perform  data reduction and
19       reporting, filter with the PCP inference engine pmie(1), etc.
20
21       A series of physical files will be created  with  the  prefix  outfile.
22       These  are outfile.0 (the performance data), outfile.meta (the metadata
23       that describes the performance  data)  and  outfile.index  (a  temporal
24       index  to improve efficiency of replay operations for the archive).  If
25       any of these files exists already, then  mrtg2pcp  will  not  overwrite
26       them and will exit with an error message of the form
27
28       __pmLogNewFile: ``blah.0'' already exists, not over-written
29
30       mrtg2pcp  is  a  Perl  script that uses the PCP::LogImport Perl wrapper
31       around the PCP libpcp_import library, and as such could be used  as  an
32       example  to develop new tools to import other types of performance data
33       and create PCP archives.
34

PCP ENVIRONMENT

36       Environment variables with the prefix PCP_ are used to parameterize the
37       file  and  directory names used by PCP.  On each installation, the file
38       /etc/pcp.conf contains the  local  values  for  these  variables.   The
39       $PCP_CONF  variable may be used to specify an alternative configuration
40       file, as described in pcp.conf(5).
41

SEE ALSO

43       mrtg(1), pmchart(1), pmie(1), pmlogger(1), LOGIMPORT(3) and PCP::LogIm‐
44       port(3).
45
46
47
48Performance Co-Pilot                  PCP                          MRTG2PCP(1)
Impressum