From: Joseph H. <per...@gm...> - 2011-07-30 02:37:15
|
Hey All, I hope I'm not stepping on any toes with this project. A few weeks ago I was trying to set up monitoring for MooseFS, and I realized that the closest thing to an API that seemed to be available was the web interface. I didn't want to have to write a web scraper for it, so I decided to take a peek inside and see if I could just do what it was doing. Long story short, I ripped out the parts that query the Moose and tossed them into a class. I'll be the first to admit that most of the code is stolen^Wborrowed from the original mfs.cgi, but it's certainly much easier to integrate into monitoring apps than the web interface. I have a project set up at: https://github.com/techhat/python-moosefs Hopefully it'll come in handy for somebody else too. -- Joseph |