We are using sensu to monitor our AWS infrastructure. We have lots of ASG in every environments including prod, stage, qa, qe etc. and we are using lambda functions on some of our ASG to make desire number of instance to zero. But check-asg-instances-inservice.rb is sending an alert when the ASG desire number of instance is becoming to zero. To overcome this problem, we have to write individual checks for each ASG which is not dynamic. Is there anyway to update the script to check whether the ASG desire number is zero or not if zero then skip those ASG and continue checking other ASGs?
We are using sensu to monitor our AWS infrastructure. We have lots of ASG in every environments including prod, stage, qa, qe etc. and we are using lambda functions on some of our ASG to make desire number of instance to zero. But check-asg-instances-inservice.rb is sending an alert when the ASG desire number of instance is becoming to zero. To overcome this problem, we have to write individual checks for each ASG which is not dynamic. Is there anyway to update the script to check whether the ASG desire number is zero or not if zero then skip those ASG and continue checking other ASGs?