cloud::aws::cloudwatch::plugin --mode=get-alarms: plugin not detecting active alarms
Hello everyone, I'm reporting this bug and hope I can contribute.
Bug report
Quick description
*We have an active alarm, which can be confirmed when using the --debug option. The output indicates that the instance memory has <StateValue>ALARM</StateValue>. However, the final result is: OK: 0 problem(s) detected | 'alerts'=0;;;0; *
How to reproduce
Please provide the initial conditions to reproduce the bug down below
- Environment: AlmaLinux release 9.6 (Sage Margay)
- Version of the plugin: centreon-plugin-Cloud-Aws-Cloudwatch-Api-20250800-1.el9.noarch
- Information about the monitored resource: AWS Cloudwatch aws-cli/2.28.22 Python/3.13.7 Linux/5.14.0-570.24.1.el9_6.x86_64 exe/x86_64.almalinux.9
- Command line: /usr/lib/centreon/plugins/centreon_aws_cloudwatch_api.pl --plugin=cloud::aws::cloudwatch::plugin --mode=get-alarms --custommode='awscli' --aws-secret-key='' --aws-access-key='' --aws-role-arn='' --proxyurl='' --region='sa-east-1' --filter-alarm-name='' --warning-status='%{state_value} =~ /INSUFFICIENT_DATA/i' --critical-status='%{state_value} =~ /ALARM/i' --verbose.
Expected result
CRITICAL: 1 problem(s) detected
Actual result
*
2025-09-02 09:44:31,070 - MainThread - botocore.hooks - DEBUG - Event needs-retry.cloudwatch.DescribeAlarms: calling handler <botocore.retryhandler.RetryHandler object at 0x7f8741f3e650> 2025-09-02 09:44:31,071 - MainThread - botocore.retryhandler - DEBUG - No retry needed. OK: 0 problem(s) detected | 'alerts'=0;;;0; Command line: 'aws cloudwatch describe-alarms --region sa-east-1 --output json --debug' ok: status : skipped (no value(s)) ok: status : skipped (no value(s)).*
Hi,
To help us understand the problem could you run the aws cloudwatch describe-alarms --region sa-east-1 --output json --debug command the next time the problem occurs and post the result ( please make sure to anonymize any sensitive data) ?
Thanks
Hello,
I am attaching the outputAws file with the command aws cloudwatch describe-alarms --region sa-east-1 --output json --debug
Thanks.
Em sex., 19 de set. de 2025 às 06:42, Sylvain Cresto < @.***> escreveu:
scresto31 left a comment (centreon/centreon-plugins#5731) https://github.com/centreon/centreon-plugins/issues/5731#issuecomment-3311480399
Hi, To help us understand the problem could you run the aws cloudwatch describe-alarms --region sa-east-1 --output json --debug command the next time the problem occurs and post the result ( please make sure to anonymize any sensitive data) ? Thanks
— Reply to this email directly, view it on GitHub https://github.com/centreon/centreon-plugins/issues/5731#issuecomment-3311480399, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW5SXM2M3GZO5AINH5XVDFL3TPFZFAVCNFSM6AAAAACFRCHIHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGMJRGQ4DAMZZHE . You are receiving this because you authored the thread.Message ID: @.***>
Hi, Thank you for this information, we have identified the issue and will fix it.