Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-32407

pcp2openmetrics ignores the output file specified via "-F" command line param

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-9.5
    • rhel-9.5
    • pcp
    • None
    • pcp-6.2.2-1.el9
    • None
    • Moderate
    • 1
    • rhel-sst-pt-pcp
    • ssg_platform_tools
    • 22
    • 1
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • PCP Sprint 5
    • Unspecified Release Note Type - Unknown
    • All
    • None

      What were you trying to do that didn't work?

      When output of pcp2openmetrics tool is redirected from the stdout to a file using "-F" command ine parameter, the redirection is ignored and the output goes to stdout anyway.

      Please provide the package NVR for which bug is seen:

      pcp-6.2.1-1.el9

      How reproducible:

      Always

      Steps to reproduce

      1.  Install pcp & pcp-export-pcp2openmetrics packages
      2.  Start pmcd and pmlogger
      3.  Export some metric from an archive to a file
        pcp2openmetrics -a /var/log/pcp/pmlogger/$(hostname)/ -F /tmp/load.openmetrics 'kernel.all.load'
        

      Expected results

      The result is written to the /tmp/load.openmetrics file.

      Actual results

      The result is printed on stdout

              rh-ee-lchilton Lauren Chilton
              jkurik@redhat.com Jan Kurik
              pcp-maint pcp-maint
              Jan Kurik Jan Kurik
              Jacob Valdez Jacob Valdez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: