Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aws cloudwatch put-metric-data --metric-name "sendmail queue" --dimensions InstanceId=$(ec2metadata --instance-id) --namespace "EC2" --value $(mailq | grep -Po "(?<=Total requests\: )([0-9]+)"| paste -sd+ | bc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement