Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Trying to install perfstatbeat on AIX 7.1

    Posted Mon April 08, 2019 04:06 PM

    Originally posted by: c01362


    Hello all.

    We had an internal request from one our of analyst to install perfstatbeat on an AIX 7.1 test server in our environment.

    We followed the instructions provided at this link:

    https://github.com/WuerthIT/perfstatbeat

    Unfortunately, the gmake portion of the process keeps failing with the following errors.

    One of the sub-folders mentioned, WuerthIT, does not seem to exist.

    Not sure how to address this.

    Has anyone else successfully installed perfstatbeat on an AIX 7.1 server?

    If so, any advice on addressing this would be appreciated.

    Thank you.

    -Tom


    # gmake
    go build -i
    main.go:13:2: cannot find package "github.com/WuerthIT/perfstatbeat/include" in any of:
            /opt/freeware/src/github.com/WuerthIT/perfstatbeat/include (from $GOROOT)
            /root/go/src/github.com/WuerthIT/perfstatbeat/include (from $GOPATH)
    main.go:6:2: cannot find package "github.com/elastic/beats/libbeat/cmd/instance" in any of:
            /opt/freeware/src/github.com/elastic/beats/libbeat/cmd/instance (from $GOROOT)
            /root/go/src/github.com/elastic/beats/libbeat/cmd/instance (from $GOPATH)
    main.go:7:2: cannot find package "github.com/elastic/beats/metricbeat/beater" in any of:
            /opt/freeware/src/github.com/elastic/beats/metricbeat/beater (from $GOROOT)
            /root/go/src/github.com/elastic/beats/metricbeat/beater (from $GOPATH)
    vendor/github.com/elastic/beats/libbeat/scripts/Makefile:95: recipe for target 'perfstatbeat' failed
    gmake: *** [perfstatbeat] Error 1


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: Trying to install perfstatbeat on AIX 7.1

    Posted Tue April 09, 2019 05:06 AM

    Originally posted by: AyappanP


    Seems like the Makefile is not very generic to work in all environments.

    But the below steps will work.

    git clone https://github.com/WuerthIT/perfstatbeat

    cd perfstatbeat

    mkdir -p ./_build/src/github.com/WuerthIT/

    ln -s $(pwd) ./_build/src/github.com/WuerthIT/perfstatbeat

    export GOPATH=$(pwd)/_build

    go build -v -o dist/perfstatbeat  github.com/WuerthIT/perfstatbeat


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: Trying to install perfstatbeat on AIX 7.1

    Posted Tue April 09, 2019 12:15 PM

    Originally posted by: c01362


    Hello AyappanP.

     

    Thanks for the information.

     

    We're getting "gccgo: error trying to exec 'cc1': execvp: No such file or directory" errors during the build as shown below.

     

    We seem to have all the files needed by gcc-go as shown here so I'm not sure what's missing to explain the errors.

    # rpm -qa | grep gcc
    gcc-go-8.3.0-1.ppc
    gcc-4.9.4-1.ppc
    gcc-c++-4.9.4-1.ppc
    libgcc-4.9.4-1.ppc
    gcc-cpp-4.9.4-1.ppc
    gcc-gfortran-4.9.4-1.ppc

     

    Please let me know if you have any other suggestions.

     

    Thank you.

     

     

     

     

    # go build -v -o dist/perfstatbeat  github.com/WuerthIT/perfstatbeat
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/pkg/errors
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/libbeat/paths
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/go.uber.org/zap/internal/exit
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/go.uber.org/zap/buffer
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/go.uber.org/atomic
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/go.uber.org/zap/internal/color
    github.com/WuerthIT/perfstatbeat/module/system
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/go.uber.org/zap/internal/color
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/module/system
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/elastic/go-ucfg/internal/parse
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/satori/go.uuid
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/go.uber.org/zap/internal/exit
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/gopkg.in/yaml.v2
    github.com/WuerthIT/perfstatbeat/helper/odm
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/libbeat/paths
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/go.uber.org/zap/buffer
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/joeshaw/multierror
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/libbeat/common/atomic
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/go.uber.org/atomic
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/pkg/errors
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/mitchellh/hashstructure
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/libbeat/common/match
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/joeshaw/multierror
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/elastic/go-ucfg/internal/parse
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/libbeat/plugin
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/blkiodev
    # github.com/WuerthIT/perfstatbeat/helper/odm
    cc1: error: '-fsplit-stack' is not supported by this compiler configuration
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/mount
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/libbeat/common/atomic
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/satori/go.uuid
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/blkiodev
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/strslice
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/libbeat/plugin
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/go-connections/nat
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/go-units
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/mitchellh/hashstructure
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/versions
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/network
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/mount
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/opencontainers/go-digest
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/strslice
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/opencontainers/image-spec/specs-go
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/versions
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/events
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/network
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/opencontainers/image-spec/specs-go
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/Sirupsen/logrus
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/go-units
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/golang.org/x/net/context
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/events
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/pkg/system
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/libtrust
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/opencontainers/go-digest
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/image
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/golang.org/x/net/context
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/go-connections/nat
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/time
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/pkg/tlsconfig
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/image
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/golang.org/x/net/proxy
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/pkg/system
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/libbeat/common/match
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/golang/protobuf/proto
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/api/types/time
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/golang.org/x/net/http2/hpack
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/docker/pkg/tlsconfig
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/golang.org/x/net/lex/httplex
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/mattn/go-isatty
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/mattn/go-isatty
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/libbeat/common/dtfmt
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/golang.org/x/net/lex/httplex
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/urso/go-structform
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/golang.org/x/net/proxy
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/urso/go-structform/internal/unsafe
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/Sirupsen/logrus
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/golang.org/x/crypto/pbkdf2
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/urso/go-structform/internal/unsafe
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/elastic/gosigar/sys/linux
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/golang.org/x/crypto/pbkdf2
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/elastic/gosigar/sys/linux
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/davecgh/go-spew/spew
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/eapache/go-resiliency/breaker
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/golang.org/x/net/http2/hpack
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/golang/snappy
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/eapache/go-resiliency/breaker
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/eapache/queue
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/libbeat/common/dtfmt
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/pierrec/xxHash/xxHash32
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/eapache/queue
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/rcrowley/go-metrics
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/golang/snappy
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/urso/go-structform
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/pierrec/xxHash/xxHash32
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/elastic/go-lumber/protocol/v2
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/klauspost/compress/flate
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/garyburd/redigo/internal
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/elastic/go-lumber/protocol/v2
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/libbeat/version
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/garyburd/redigo/internal
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/libbeat/version
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/davecgh/go-spew/spew
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/docker/libtrust
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/gopkg.in/yaml.v2
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/klauspost/compress/flate
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/rcrowley/go-metrics
    gccgo: error trying to exec 'cc1': execvp: No such file or directory
    # github.com/WuerthIT/perfstatbeat/vendor/github.com/elastic/beats/vendor/github.com/golang/protobuf/proto
    gccgo: error trying to exec 'cc1': execvp: No such file or directory

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: Trying to install perfstatbeat on AIX 7.1

    Posted Tue April 09, 2019 01:19 PM

    Originally posted by: c01362


    Hello again.

    We did the the "go build..." to complete by re-installing gcc.

     

    Unfortunately, the gmake is still giving us these errors:

     


    # gmake
    go build -i
    main.go:6:2: cannot find package "github.com/elastic/beats/libbeat/cmd/instance" in any of:
            /opt/freeware/src/github.com/elastic/beats/libbeat/cmd/instance (from $GOROOT)
    main.go:7:2: cannot find package "github.com/elastic/beats/metricbeat/beater" in any of:
            /opt/freeware/src/github.com/elastic/beats/metricbeat/beater (from $GOROOT)
    vendor/github.com/elastic/beats/libbeat/scripts/Makefile:95: recipe for target 'perfstatbeat' failed
    gmake: *** [perfstatbeat] Error 1

     

    The package it cannot find seems to be present as shown here:

     

    # ls -alt  /opt/freeware/src/github.com/elastic/beats/libbeat/cmd/instance
    total 104
    drwxr-xr-x    2 root     system          256 Jan 27 15:40 ./
    drwxr-xr-x    5 root     system         4096 Jan 27 15:40 ../
    -rw-r--r--    1 root     system        17073 Jan 27 15:40 beat.go
    -rw-r--r--    1 root     system          917 Jan 27 15:40 beat_test.go
    -rw-r--r--    1 root     system         1180 Jan 27 15:40 doc.go
    -rw-r--r--    1 root     system         5676 Jan 27 15:40 metrics.go
    -rw-r--r--    1 root     system          765 Jan 27 15:40 metrics_common.go
    -rw-r--r--    1 root     system          249 Jan 27 15:40 metrics_other.go
    -rw-r--r--    1 root     system          288 Jan 27 15:40 setup.go

     



    # ls -alt /opt/freeware/src/github.com/elastic/beats/metricbeat/beater
    total 48
    drwxr-xr-x    2 root     system          256 Jan 27 15:40 ./
    drwxr-xr-x   15 root     system         4096 Jan 27 15:40 ../
    -rw-r--r--    1 root     system         1491 Jan 27 15:40 autodiscover.go
    -rw-r--r--    1 root     system          675 Jan 27 15:40 config.go
    -rw-r--r--    1 root     system         1908 Jan 27 15:40 doc.go
    -rw-r--r--    1 root     system         6774 Jan 27 15:40 metricbeat.go

     

    Not sure how to address this.

     

    Any suggestions?

     

    Thanks again for your help so far.

     

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 5.  Re: Trying to install perfstatbeat on AIX 7.1

    Posted Wed April 10, 2019 05:38 AM

    Originally posted by: AyappanP


    If this command "go build -v -o dist/perfstatbeat  github.com/WuerthIT/perfstatbeat" is successful, then the one in bold is the binary you are looking for (inside the dist directory).


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 6.  Re: Trying to install perfstatbeat on AIX 7.1

    Posted Wed April 10, 2019 10:31 AM

    Originally posted by: c01362


    Hello again AyappanP.

     

    Thanks for clarifying.

     

    The "go build..." command was successful and the perfstatbeat binary now exists.

     

    We installed all the perfbeatstat files in a folder with enough space on our AIX 7.1 test server as shown below.

    Folder name is /opt/Tanium/TomWolf2/perfstatbeat.

    As shown below, we executed the perfstatbeat binary but it generated errors indicating no outputs were defined.

    The perfstatbeat ReadMe doesn't have any details about where to configure these outputs.

    Do you have any suggestions about this?

    Thanks again for your help so far.

     

     

    root (aixtrn10)  [ /opt/Tanium/TomWolf2/perfstatbeat/dist ]
    # ./perfstatbeat -e -d "*"
    2019-04-10T09:15:49.837-0500    INFO    instance/beat.go:468    Home path: [/opt/Tanium/TomWolf2/perfstatbeat/dist] Config path: [/opt/Tanium/TomWolf2/perfstatbeat/dist] Data path: [/opt/Tanium/TomWolf2/perfstatbeat/dist/data] Logs path: [/opt/Tanium/TomWolf2/perfstatbeat/dist/logs]
    2019-04-10T09:15:49.838-0500    DEBUG   [beat]  instance/beat.go:495    Beat metadata path: /opt/Tanium/TomWolf2/perfstatbeat/dist/data/meta.json
    2019-04-10T09:15:49.838-0500    INFO    instance/beat.go:475    Beat UUID: e041363a-717f-4bd1-b046-7be3ec876006
    2019-04-10T09:15:49.838-0500    INFO    instance/beat.go:213    Setup Beat: perfstatbeat; Version: 6.2.4
    2019-04-10T09:15:49.839-0500    WARN    instance/metrics_other.go:12    Metrics not implemented for this OS.
    2019-04-10T09:15:49.839-0500    DEBUG   [beat]  instance/beat.go:230    Initializing output plugins
    2019-04-10T09:15:49.839-0500    DEBUG   [processors]    processors/processor.go:49      Processors:
    2019-04-10T09:15:49.839-0500    INFO    pipeline/module.go:91   No outputs are defined. Please define one under the output section.
    2019-04-10T09:15:49.839-0500    ERROR   instance/beat.go:667    Exiting: error initializing publisher: No outputs are defined. Please define one under the output section.
    Exiting: error initializing publisher: No outputs are defined. Please define one under the output section.

     

    root (aixtrn10)  [ /opt/Tanium/TomWolf2/perfstatbeat/dist ]
    # ls -alt
    total 164856
    drwxr-x---    2 root     system          256 Apr 10 09:10 data/
    drwxr-xr-x    3 root     system          256 Apr 10 09:10 ./
    -rwxr-xr-x    1 root     system     84395640 Apr 09 13:33 perfstatbeat*
    drwxr-xr-x   11 root     system         4096 Apr 09 12:55 ../
    -rw-r--r--    1 root     system         1231 Apr 09 09:13 beat.yml

     

    root (aixtrn10)  [ /opt/Tanium/TomWolf2/perfstatbeat/dist ]
    # cat ./beat.yml
    ###################### Winlogbeat Configuration Example ##########################

    # This file is an example configuration file highlighting only the most common
    # options. The winlogbeat.reference.yml file from the same directory contains all the
    # supported options with more comments. You can use it as a reference.
    #
    # You can find the full configuration reference here:
    # https://www.elastic.co/guide/en/beats/winlogbeat/index.html

    #======================= Winlogbeat specific options ==========================

    # event_logs specifies a list of event logs to monitor as well as any
    # accompanying options. The YAML data type of event_logs is a list of
    # dictionaries.
    #
    # The supported keys are name (required), tags, fields, fields_under_root,
    # forwarded, ignore_older, level, event_id, provider, and include_xml. Please
    # visit the documentation for the complete details of each option.
    # https://go.es.io/WinlogbeatConfig
    winlogbeat.event_logs:
      - name: Application
        ignore_older: 72h
      - name: Security
      - name: System

    #==================== Elasticsearch template setting ==========================

    setup.template.settings:
      index.number_of_shards: 3
      #index.codec: best_compression
      #_source.enabled: false

     

    root (aixtrn10)  [ /opt/Tanium/TomWolf2/perfstatbeat/dist ]

    # ls -alt ./data
    total 8
    drwxr-x---    2 root     system          256 Apr 10 09:10 ./
    -rw-------    1 root     system           48 Apr 10 09:10 meta.json
    drwxr-xr-x    3 root     system          256 Apr 10 09:10 ../

     


    root (aixtrn10)  [ /opt/Tanium/TomWolf2/perfstatbeat/dist ]
    # cat ./data/meta.json
    {"uuid":"e041363a-717f-4bd1-b046-7be3ec876006"}

     

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 7.  Re: Trying to install perfstatbeat on AIX 7.1

    Posted Thu April 11, 2019 02:53 AM

    Originally posted by: AyappanP


    No idea. Please check with the project maintainer. 


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 8.  Re: Trying to install perfstatbeat on AIX 7.1

    Posted Sun April 14, 2019 04:57 PM

    Originally posted by: c01362


    Hello all.

    Thanks again AyappanP for your help.

     

    I still haven't figured out where to define the outputs mentioned in the following error.

     

    ./perfstatbeat -e -v -d "*"

    2019-04-12T17:07:18.008-0500
    INFO instance/beat.go:468 Home path: [/opt/Tanium/Tom/perfstatbeat/dist] Config path: [/opt/Tanium/Tom/perfstatbeat/dist] Data path: [/opt/Tanium/Tom/perfstatbeat/dist/data] Logs path:

    [/opt/Tanium/Tom/perfstatbeat/dist/logs] 2019-04-12T17:07:18.009-0500
    DEBUG [beat] instance/beat.go:495 Beat metadata path: /opt/Tanium/Tom/perfstatbeat/dist/data/meta.json 2019-04-12T17:07:18.009-0500
    INFO instance/beat.go:475 Beat UUID: e041363a-717f-4bd1-b046-7be3ec876006 2019-04-12T17:07:18.009-0500
    INFO instance/beat.go:213 Setup Beat: perfstatbeat; Version: 6.2.4 2019-04-12T17:07:18.009-0500
    WARN instance/metrics_other.go:12 Metrics not implemented for this OS. 2019-04-12T17:07:18.009-0500
    DEBUG [beat] instance/beat.go:230 Initializing output plugins 2019-04-12T17:07:18.010-0500
    DEBUG [processors] processors/processor.go:49 Processors: 2019-04-12T17:07:18.010-0500
    INFO pipeline/module.go:91 No outputs are defined. Please define one under the output section. 2019-04-12T17:07:18.010-0500
    ERROR instance/beat.go:667 Exiting: error initializing publisher: No outputs are defined. Please define one under the output section. Exiting: error initializing publisher: No outputs are defined. Please

    define one under the output section.

     

     

    We looked in the filebeat.yml and found an output section as shown here:

     


    #================================ Outputs =====================================

    # Configure what output to use when sending the data collected by the beat.

    #-------------------------- Elasticsearch output ------------------------------
    output.elasticsearch:
    # Array of hosts to connect to.
    hosts: ["localhost:9200"]

    # Optional protocol and basic auth credentials.
    #protocol: "https"
    #username: "elastic"
    #password: "changeme"

    #----------------------------- Logstash output --------------------------------
    #output.logstash:
    # The Logstash hosts
    #hosts: ["localhost:5044"]

    # Optional SSL. By default is off.
    # List of root certificates for HTTPS server verifications
    #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]

    # Certificate for SSL client authentication
    #ssl.certificate: "/etc/pki/client/cert.pem"

    # Client Certificate Key
    #ssl.key: "/etc/pki/client/cert.key"

     

    But I'm not clear on what I need to add/edit.

     

    Any suggestions on how to address this?

     

    Haven't had any success looking at the doc's provided with the perfbeatstat files.

     

    Please advise.

     

    Thanks all.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 9.  Re: Trying to install perfstatbeat on AIX 7.1

    Posted Mon April 15, 2019 02:16 AM

    Originally posted by: AyappanP


    As i mentioned earlier , you need to check with the project maintainer. 

    You can open an issue here --> https://github.com/WuerthIT/perfstatbeat/issues and take it further.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 10.  Re: Trying to install perfstatbeat on AIX 7.1

    Posted Mon April 15, 2019 10:05 AM

    Originally posted by: T.Rex


    Hi,

    You said:

    # rpm -qa | grep gcc
    gcc-go-8.3.0-1.ppc
    gcc-4.9.4-1.ppc

     

    That's wrong. gcc-go depends on gcc and libgo of the SAME version.

    On my machine, I have (list the packages required by gcc-go) :

    # rpm -qa | grep gcc-go
    gcc-go-8.3.0-2
    and:

    # rpm -qR gcc-go
    gcc = 8.3.0-2
    libgo = 8.3.0-2
    libgo-devel = 8.3.0-2

    ....

     

    If you want to use gcc-go, you have to install its requirements, thus update GCC 4.9.4 with GCC 8.3.0 . You cannot install gcc-go with --nodeps .

     

    Regards,

    Tony


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 11.  Re: Trying to install perfstatbeat on AIX 7.1

    Posted Mon April 15, 2019 11:29 AM

    Originally posted by: c01362


    Hello AyappanP and Tony.

     

    AyappanP, I wasn't aware of the https://github.com/WuerthIT/perfstatbeat/issues link.

     

    I have posted a question about the "ERROR instance/beat.go:667 Exiting: error initializing publisher: No outputs are defined. Please define one under the output section. Exiting: error initializing publisher: No outputs are defined. Please define one under the output section." message we're encountering when executing './perfstatbeat -e -v -d "*"'

     

    I'll post to this thread once we have that ERROR fixed.

     

    Tony, thanks for the feedback.

    We had updated the packages since my earlier posting.

    Below shows the versions we're currently at on our AIX 7.1 server.

    # rpm -qa | grep gcc-go
    gcc-go-8.3.0-1.ppc

    # rpm -qR gcc-go
    gcc = 8.3.0-1
    libgo = 8.3.0-1
    libgo-devel = 8.3.0-1

     

    So I think we're in good shape as far as gcc-go and its requirements are concerned.

     

    Thanks again for the assistance given so far.


    #AIXOpenSource
    #AIX-Open-Source-Software