I'm having a Template A with two items:
Total Storage Space (External Check, Key: rds_stats.py["--metric","AllocatedStorage","--instance-id","{HOST.HOST}","--access-key","{$AWS_ACCESS_KEY}","--secret-key","{$AWS_SECRET_KEY}","--region","{$REGION}"])
Available Storage Space (External Check, Key: rds_stats.py["--metric","FreeStorage","--instance-id","{HOST.HOST}","--access-key","{$AWS_ACCESS_KEY}","--secret-key","{$AWS_SECRET_KEY}","--region","{$REGION}"])
Now I would like to add a third item to the same template, calculating the free storage space in percentage.
According to the documentation https://www.zabbix.com/documentation...pes/calculated, it should look like this: 100*last("vfs.fs.size[/,free]")/last("vfs.fs.size[/,total]")
So I've created this:
But for some reason, this does not work. The error I am seeing is the following:
Macro '{$AWS_ACCESS_KEY}' value is not numeric
Any tips on how I an resolve this?
Total Storage Space (External Check, Key: rds_stats.py["--metric","AllocatedStorage","--instance-id","{HOST.HOST}","--access-key","{$AWS_ACCESS_KEY}","--secret-key","{$AWS_SECRET_KEY}","--region","{$REGION}"])
Available Storage Space (External Check, Key: rds_stats.py["--metric","FreeStorage","--instance-id","{HOST.HOST}","--access-key","{$AWS_ACCESS_KEY}","--secret-key","{$AWS_SECRET_KEY}","--region","{$REGION}"])
Now I would like to add a third item to the same template, calculating the free storage space in percentage.
According to the documentation https://www.zabbix.com/documentation...pes/calculated, it should look like this: 100*last("vfs.fs.size[/,free]")/last("vfs.fs.size[/,total]")
So I've created this:
100*last("rds_stats.py["--metric","FreeStorageSpace","--instance-id","{HOST.HOST}","--access-key","{$AWS_ACCESS_KEY}","--secret-key","{$AWS_SECRET_KEY}","--region","{$REGION}"]")/last("rds_stats.py["--metric","AllocatedStorage","--instance-id","{HOST.HOST}","--access-key","{$AWS_ACCESS_KEY}","--secret-key","{$AWS_SECRET_KEY}","--region","{$REGION}"]")
Macro '{$AWS_ACCESS_KEY}' value is not numeric
Any tips on how I an resolve this?
Comment