WARNING: nerdy ops stuff below
Want to add low-latency counter support to your app and already run OpenTSDB? Don't like how OpenTSDB only takes updates via TCP? No, I don't either. I wrote a hacky proxy to accept UDP increment and decrement operations and send updates to OpenTSDB. It uses a persistent intermediary to store the values before updating OpenTSDB. It's up on the githubs. Have fun. RTFM. https://github.com/scurvy/OpenTSDB-UDP-Proxy In my last post, I ventured into the topic of monitoring individual SSD health using Intel's SMART stats, specifically, the Media_Wearout_Indicator. I contrasted this to someone's approach of monitoring for total number of bytes written. In the post, I also threw out the idea of monitoring these counters with smartd. Well, smartd wouldn't do what I wanted it to do (watch this counter and throw a fit if it dropped below a value). Sooooo, I did what any UNIX admin would do and replaced it with a shell script. We use OpenNMS and NRPE to trigger commandlets like this, so here's the script I wrote. It should work in Nagios, too. You'll probably have to customize the script to your liking, but it's straightforward and has some easy to tweak variables in the beginning. If you can't figure these variables out, time find a new line of work. Full inline script after the jump (if you want to see what you can download). ![]()
|
AuthorA NOLA native just trying to get by. I live in San Francisco and work as a digital plumber for the joint that runs this thing. (Square/Weebly) Thoughts are mine, not my company's. Archives
January 2025
Categories
All
|