You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Support,
We have been having issues with New Relic Flex integration when we use it to run a powershell script.
When the script contains an admin command it fails
Here is the yaml config file for flex :
The integration works fine and the script run as aspected unless, in the script, there is an admin command.
Steps to Reproduce
The following commands, for example, need admin rights to be executed.
Import-Module WebAdministration
aws s3 ls s3://.........
If I put one of these commands in the powershell script, the script fails when launched from flex.
If I run the script manually under an admin user, the script works fine.
Your Environment
The New Relic agent runs as 'Local System' under "Windows Server 2008 R2 Standard". The problem occurs also if I force the New Relic Agent to run under any admin user.
Are you aware of this issue ?
Do you have any workaround ?
cheers
The text was updated successfully, but these errors were encountered:
gcalzetta
changed the title
Flex integration and Powershell Scipt
Flex integration and Powershell Scripts
Jan 11, 2022
@davidgit Do you have an update for this? I have the same problem. PowerShell script can run as admin but not within New Relic. I'm getting permission denied. I have also tried invoking another PowerShell script using a specific domain user. It works fine within the PowerShell ISE but not via Flex.
@gcalzetta Please read the Workaround section in this bug: #448
However, I would like to see this as a native support in nri-flex. It would be very good to be able to specify a username and password which the PowerShell script should run as.
Description
Hello Support,
We have been having issues with New Relic Flex integration when we use it to run a powershell script.
When the script contains an admin command it fails
Here is the yaml config file for flex :
integrations:
interval: 300s
timeout: 60s
config:
name: NAME
apis:
- name: NAME2
- event_type: EVENT-TYPE
shell: powershell
commands:
- run: "& "C:/Program Files/New Relic/newrelic-infra/integrations.d/script.ps1""
Expected Behavior
The integration works fine and the script run as aspected unless, in the script, there is an admin command.
Steps to Reproduce
The following commands, for example, need admin rights to be executed.
If I put one of these commands in the powershell script, the script fails when launched from flex.
If I run the script manually under an admin user, the script works fine.
Your Environment
The New Relic agent runs as 'Local System' under "Windows Server 2008 R2 Standard". The problem occurs also if I force the New Relic Agent to run under any admin user.
Are you aware of this issue ?
Do you have any workaround ?
cheers
The text was updated successfully, but these errors were encountered: