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

checking CloudWatch Agent Metric #2

Open
picoroma opened this issue Mar 23, 2023 · 0 comments
Open

checking CloudWatch Agent Metric #2

picoroma opened this issue Mar 23, 2023 · 0 comments

Comments

@picoroma
Copy link

picoroma commented Mar 23, 2023

Hi!
I'm triing to use this script to collect CloudWatch Agent metric.
I have configured - for example - a command like this:

/usr/lib/nagios/plugins/check_cloudwatch_metric.py --region='eu-south-1' --namespace=CWAgent --name=disk_used_percent --statistics=Average --dimensions='path:/backup' --warning=60 --critical=80 --profile='myprofile' --prefix=""

But I receive error:

Traceback (most recent call last):
  File "/usr/lib/nagios/plugins/check_cloudwatch_metric.py", line 232, in <module>
    main()
  File "/usr/lib/nagios/plugins/check_cloudwatch_metric.py", line 215, in main
    value, unit = metric.get_current_value()
TypeError: 'NoneType' object is not iterable

I think there is some issue with "dimensions".
tried also with different content for the "--dimensions" but allways the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant