HTTP Extraction
HTTP extraction has been around almost as long as the World-Wide Web. We called it “screen scraping” back in the 80’s. It’s a simple concept – you access a web page programmatically, then extract the information you need from the web page. Once you have the information in a variable inside your program, you are limited only by your imagination.
M3 simplifies HTTP extraction. It is a Perl-based framework that uses regular expressions, XML, or JSON to extract parameters. As Dan shows us, M3 can be used to extract data from a web page and populate a Paid Monitor monitor with the extracted data.
A World of Possibilities
When I first read Dan’s article, I could easily see the technical simplicity that it demonstrated, but I could also see that Paid Monitor’ monitoring platform is useful for more than server monitoring. It opened my eyes to new possibilities. I’m sure many others have seen these possibilities already, but it was new for me.
“Limited only by your imagination” is the real key here. I remember when I was originally told about this new Internet thing (1988, I think). I couldn’t get my mind around why everyone would cooperate to build this giant network. Someone had a better imagination than I did. Today, some people will have the same problem. “Okay, I can extract data from web pages. So what?” The lack of imagination obscures opportunities that are available to us.
Sysadmins and other techies may limit their thinking to things like performance, security, and availability (which is good), but may not recognize opportunities to monitor non-technical data. Dan’s article gives one non-technical example, but there are countless others. For example, would your company like to monitor your competition’s website? Your marketing gurus might like to know about any changes. Press releases, new products, new services, and changes to specifications are just a few of the possibilities.
We know CEOs of publicly traded companies like to keep a close eye on their companies’ stock prices. A Paid Monitor monitor could send them a text message when the price drops below a preset level.
Your purchasing department might appreciate a monitor that tracks the prices of key raw materials. Finance departments might like to monitor their bank’s prime lending rate. Lawyers might monitor supreme court decisions that contain certain keywords. Pharmacists might like to be informed about changes to existing product specifications.
There is a myriad of possibilities, but I am limited by my imagination, which is my point. Dan’s article shows us how to track weather, but more importantly it show us that cloud-based monitoring with M3 can be used for much more than we can imagine. In his following article, Planning Your Next Vacation With Paid Monitor, Dan shows that he understands this point well. It contains additional examples that show how to monitor data that is not related to servers. This is not the main point of his article, but it is obvious that he has a good grasp of the concept.
Dan initially introduced M3 and provided examples in M3 – Paid Monitor Monitor Manager. Josh Mattson followed up with Using M3 to Take System Monitors to the Next Level, which outlined the benefits and provided use cases and examples.
References
M3 – Paid Monitor Monitor Manager by Dan Fruehauf. Published 2011.07.21 by Paid Monitor at blog.monitor.us/index.php/2011/07/21/m3-paid-monitor-monitor-manager. Accessed 2011.12.05.
Using M3 to Take System Monitors to the Next Level by Josh Mattson. Published 2011.09.06 by Paid Monitor at blog.monitor.us/index.php/2011/09/06/using-m3-to-take-custom-system-monitors-to-the-next-level. Accessed 2011.12.05.
HTTP Extraction With Paid Monitor by Dan Fruehauf. Published 2011.09.27 by Paid Monitor at blog.monitor.us/index.php/2011/09/27/http-extraction-with-paid-monitor. Accessed 2011.12.05.
Planning Your Next Vacation With Paid Monitor by Dan Fruehauf. Published 2011.10.06 by Paid Monitor at blog.monitor.us/index.php/2011/10/06/planning-your-next-vacation-with-paid-monitor. Accessed 2011.12.05.
Paid Monitor-Top: An Open Source Command Line Interface for Paid Monitor Agents and Monitors by abarnas. Published 2011.10.17 by Paid Monitor at blog.monitor.us/index.php/2011/10/17/paid-monitor-top-an-open-source-command-line-interface-for-paid-monitor-agents-and-monitors. Accessed 2011.12.05.
Try Paid Monitor For Free. A 15-day free trial. Your opportunity to see how easy it is to use the Paid Monitor cloud-based monitoring system. Credit card not required.
The Paid Monitor Exchange at GitHub. This is the official repository for scripts, plugins, and SDKs that make it a breeze to use the Paid Monitor system to its full potential.