Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nOutput_AWSCloudWatch: Cannot find function trim in object #157

Closed
nmaguiar opened this issue May 25, 2023 · 0 comments
Closed

nOutput_AWSCloudWatch: Cannot find function trim in object #157

nmaguiar opened this issue May 25, 2023 · 0 comments
Assignees
Labels

Comments

@nmaguiar
Copy link
Collaborator

nmaguiar commented May 25, 2023

Description
When trying to use nOutput_AWSCloudWatch in an AWS EC2 without an associated AWS IAM role the following error occurs:

Output AWS CloudWatch | TypeError: Cannot find function trim in object [object Object].

To Reproduce
Steps to reproduce the behavior:

  1. Install nAttrMon on an AWS EC2
  2. With a test nAttrMon input, configure a nAttrMon nOutput_AWSCloudWatch plug without any credentials (so it will default to AWS IMDS)
  3. Start nAttrMon
  4. The error will occur when trying to send the input metric to AWS CloudWatch

Expected behavior
It should error out indicating that the AWS EC2 IAM role was not found.

Additional context
The same applies on AWS EKS for it's AWS EC2 nodes which don't have a configured AWS IAM role.

@nmaguiar nmaguiar added the bug label May 25, 2023
@nmaguiar nmaguiar self-assigned this May 25, 2023
nmaguiar added a commit that referenced this issue May 25, 2023
@nmaguiar nmaguiar mentioned this issue May 25, 2023
nmaguiar added a commit that referenced this issue May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant