initialize check class [ERROR]: ‘while scanning for the next token\nfound character that cannot start any token\n in “

In Datadog, I received the following error: initialize check class [ERROR]: ‘while scanning for the next token\nfound character that cannot start any token\n in “<byte string> After running sudo /etc/init.d/datadog-agent info   I investigated the unhappy files in /etc/dd-agent/conf.d and found that the yaml indentation was incorrect. I had used 4 spaces instead of 2 … [Read more…]

AWS Lambda – CloudWatch event to S3 action

AWS Lambda is a great tool to enhance your messaging and alerting without creating more infrastructure to manage. Use Case I have CloudWatch Log Alarms (originating from CloudTrail events) that I want to act upon by uploading data to S3. Lambda Function Create a Lambda function with these attributes. Code console.log(‘Loading function’); exports.handler = function(event, … [Read more…]

Network vpc-* has some mapped public address(es). Please unmap those public address(es) before detaching the gateway

I ran into the error: Network vpc-* has some mapped public address(es). Please unmap those public address(es) before detaching the gateway while working with AWS CloudFormation templates. This error message is accurate but if you don’t fully understand VPCs, it can be very confusing. After learning what and why this happens, I decided to write it down … [Read more…]

System Engineering thoughts

I was talking to jtzl the other day. He said something post worthy. I see systems engineering as essential to keep as simple and transparent as possible because that allows the app developers to make mistakes If system configuration issues are unpredictable, it slows down app development and makes it unclear where bugs are being … [Read more…]

Tweet-A-Watt is working locally

I made a Tweet-A-Watt last year which is a hacked Kill-A-Watt wall plug that sends data wireless to a computer. The twitter API has changed a lot since then, it now uses OAuth to authenticate tweets. I cloned ladyada’s Tweet-A-Watt github repo and started getting to work. My code isn’t ready to push up to … [Read more…]

DIY 2×4 Server Rack on Wheels

This past weekend I made a server rack for my shed out of 2x4s. I used the design concept from Mythos & Rini which I tweaked slightly for my space. I needed a short rack I could wheel out from under a shelf. This rack is screwed together and feels very sturdy. The front wheels … [Read more…]