ministryofjustice / network-access-control-server

FreeRadius server for the 802.1x Network Access Control Service
MIT License
0 stars 0 forks source link

Use bash trap to report on unhealthy host count #131

Closed emileswarts closed 2 years ago

emileswarts commented 2 years ago

The AWS metric isn't reliable enough and we need to ensure a consistent string is reported to cloudwatch to create a metric on.

Use bash trap to catch the error and rethrow after printing a predictable string to CloudWatch logs.