Skip to main content

Hi all, 

It’s about centreon_aws_cloudwatch_api.pl  and FreeableMemory metric.

I’ve got 64 Gb RAM.

I would like warning threshold when 10 Gb remaining and critical threshold when 5 Gb remaining.

Actually, --warning-metric <= 10Gb and --critical-metric<= 5Gb.

I tried with --warning-metric=10737418240 --critical-metric=5368709120

CRITICAL: Metric 'DBInstanceIdentifier.my-aurora-db-instance_FreeableMemory_maximum' value is 36857413632 | 'FreeableMemory_maximum'=36857413632;0:10737418240;0:5368709120;;

36857413632 is around 34 GB.

I believed status check OK. 

 

Is someone experencied such a problem.

 

Thank you for any help.

 

Regards

 

Laurent.

 

 

Hello :)

The values returned by the metrics mode of the Amazon CloudWatch connector are not values interpreted by the connector itself, this are the values returned for the metrics itself (this is why in the documentation the unit of the metrics returned is N/A as this depends on the metric queried).
The way you use the threshold is like if they are applied in the memory available and not the memory used. So indeed you raise above 5 GB and 10 GB memory used. In your case, if you want a warning alert when there are 10 GB or less available (i.e. 64-10=54 GB used) and a critical alert when there are 5 GB or less available (i.e. 64-5=59 GB used) you need to enter these thresholds: 
54 x  1 073 741 824 = 57 982 058 496
59 x  1 073 741 824 = 63 350 767 616
--warning-metric=57982058496 --critical-metric=63350767616

And the return should be : 
'FreeableMemory_maximum'=36857413632;0:57982058496 ;0:63350767616;;

with an OK status

For more details about how to use the thresholds you can read this documentation section.

Hope it helps you :)
Kind regards


Reply