From 1d9540963e47cd2b8cd247700b846544d4ce9d9a Mon Sep 17 00:00:00 2001 From: Colin Johnson Date: Wed, 3 Apr 2013 22:53:02 +0000 Subject: [PATCH] Removing typo - had duplicate curl command. --- ec2-write-storage-used/ec2-write-storage-used.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ec2-write-storage-used/ec2-write-storage-used.sh b/ec2-write-storage-used/ec2-write-storage-used.sh index dd8a71f..e7680ba 100644 --- a/ec2-write-storage-used/ec2-write-storage-used.sh +++ b/ec2-write-storage-used/ec2-write-storage-used.sh @@ -1,7 +1,7 @@ #!/bin/bash - #get instance id - used for putting metric INSTANCE_ID=`GET http://169.254.169.254/latest/meta-data/instance-id` -INSTANCE_AZ=`curl -s curl http://169.254.169.254/latest/meta-data/placement/availability-zone/` +INSTANCE_AZ=`curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone/` INSTANCE_REGION=${INSTANCE_AZ%?} #belowshould be changed to grep - get only everything after % space slash @@ -14,4 +14,4 @@ for filesystemmountpoint in $filesystemlist done #to run in cron every 5 minutes - note that you must first provide credentials for mon-put-data -#echo "*/5 * * * * ec2-user /usr/local/bin/ec2-write-storage-used.sh" > /etc/cron.d/ec2-write-storage-used \ No newline at end of file +#echo "*/5 * * * * ec2-user /usr/local/bin/ec2-write-storage-used.sh" > /etc/cron.d/ec2-write-storage-used