Skip to content

Flex Integration - Events Not Capturing and Script Failing with Exit Status Code 1 #577

@amaykulkarni-tech

Description

@amaykulkarni-tech

Hi everyone,

We've successfully implemented the Flex integration, but we're facing an issue where the events we're trying to capture aren't showing up.

When we manually run the command defined in the Flex YAML file, it executes correctly and returns the expected output. However, when Flex runs the same command, it fails with the error: exit status code 1.

Here’s what we've verified so far:

  1. The Execution Policy is set to Unrestricted, so we don’t believe the issue is related to script execution permissions.
  2. We’ve confirmed that the New Relic Infrastructure service account has read access to the script file.

Has anyone encountered something similar or have any suggestions on how to resolve this?

Below is our Sample Flex file:-

integrations:

  • name: nri-flex
    interval: 60s
    timeout: 45s
    config:
    name: Test-sample
    apis:
    - event_type: Test-sample
    shell: powershell
    commands:
    - run: 'powershell.exe -ExecutionPolicy Bypass -NoProfile -File "C:/Program Files/New Relic/newrelic-infra/integrations.d/sample.ps1"'
    timeout: 30

Appreciate any help!

Thank You,
Amay

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions