Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!
DevOps Zone is brought to you in partnership with:

Eric is a former teacher and future time traveler who has returned to the present to work at DZone - the coolest site on earth. He likes reading and curating about NoSQL and Cloud development, and is always excited to see something new, shiny, and distracting. In his free time, Eric likes knowing more about movies than you do, and looking forward to when the unified Chinese-American Corpocracy will develop the technology needed for transport to the year 2056. Eric is a DZone Zone Leader and has posted 151 posts at DZone. You can read more from them at their website. View Full User Profile

Status Checks and SQL Statements via Jenkins

02.02.2012
Email
Views: 3481
  • submit to reddit
The DevOps Zone is presented by DZone with partners including ThoughtWorks Studios and UrbanCode to bring you the most interesting and relevant content on the DevOps movement.  See today's top DevOps content and be sure to check out ThoughtWorks Studio's Continuous Delivery Whitepapers and UrbanCode's Webinars.

Does your ops tam have trouble running status updates and SQL statements?  At a recent conference, John Vincent was asked this very question, and wrote a useful tutorial in response.  For those of you who don't know, Vincent is a well-known member of the DevOps community and the creator of NOAH, a nifty application inspired by Apache Zookeeper; you can check it out on GitHub here.  In his tutorial, John Vincent tries to meet the needs of DBA's out there who are looking for a lowtech monitoring method. His approach: Jenkins.

Jenkins is a Java-based open source continuous integration tool that, as Vincent points out, works like cron, another popular time-based job scheduler.  For a simple database health check system, there are three needs, according to Vincent: 

  • performing scheduled tasks
  • running a given command
  • reporting the success or failure of a given command.

He suggests that . . .

. . . there have been numerous posts about people replacing individual cron jobs with a centralized model based on Jenkins. This makes perfect sense and is something of a holy grail.  --John Vincent


Vincent also provides a small disclaimer by indicating that a Jenkins job is a low-friction way of accomplishing the requested task, and that "it may or may not be scalable in the long run."  The tutorial itself provides a cursory look at the Jenkins menus, and then goes on to provide a solution to the problem of status checks by using a "test case" MySQL database running on a Linux VM.  Luckily for users, the tutorial includes ample code snippets and illustrative images.  At the end, he also provides some "Additional plugins and tips" for the curious developer.   Hopefully, you'll find the tutorial useful - please provide your comments below. 

Source: Lowtech Monitoring With Jenkins by John Vincent

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

ThoughtWorks Studios and UrbanCode, the sponsors of the DevOps Zone, are champions of the DevOps movement.  Their deployment tooling solutions focus on the entire software development lifecycle, involving all parts of an organization, which helps facilitate a migration to the DevOps philosophy.