{"id":556,"date":"2010-09-06T09:49:05","date_gmt":"2010-09-06T07:49:05","guid":{"rendered":"http:\/\/code.openark.org\/forge"},"modified":"2011-04-07T13:10:04","modified_gmt":"2011-04-07T11:10:04","slug":"quick-startup-guide","status":"publish","type":"page","link":"https:\/\/code.openark.org\/forge\/mycheckpoint\/documentation\/quick-startup-guide","title":{"rendered":"Quick startup guide"},"content":{"rendered":"<p><em>mycheckpoint<\/em> is becoming larger and loaded with features. This page will help the new comer answering these questions:<\/p>\n<h4>How do I start using mycheckpoint and what are the most interesting functionalities?<\/h4>\n<p>This short page will describe how to set up mycheckpoint and quickly view HTML reports with interactive charting.<\/p>\n<p>The steps you will follow are:<\/p>\n<ol>\n<li>Install <em>mycheckpoint<\/em>.<\/li>\n<li>Create a monitoring user and schema.<\/li>\n<li>Setup monitoring for your database via <em>crontab<\/em>.<\/li>\n<li>View charts using <em>mycheckpoint HTTP server<\/em>.<\/li>\n<\/ol>\n<h4>Install mycheckpoint<\/h4>\n<p>You&#8217;ll need to install MySQL-Python: the python driver for MySQL. You can easily do so with <em>apt-get<\/em> or <em>yum<\/em> or <em>up2date<\/em>.<\/p>\n<p>After that, proceed to install <em>mycheckpoint<\/em>.<\/p>\n<p>Follow these <a href=\"http:\/\/code.openark.org\/forge\/mycheckpoint\/documentation\/quick-howto#Install\">short<\/a> or <a href=\"http:\/\/code.openark.org\/forge\/mycheckpoint\/documentation\/installation\">detailed<\/a> instructions.<\/p>\n<h4>Create a monitoring user and schema<\/h4>\n<p>You&#8217;ll need a schema (via <strong>CREATE DATABASE<\/strong>) for each server you wish to monitor. You&#8217;ll need to create a user with privileges on this schema.<\/p>\n<p>Follow these <a href=\"http:\/\/code.openark.org\/forge\/mycheckpoint\/documentation\/quick-howto#Setup\">short<\/a> or <a href=\"http:\/\/code.openark.org\/forge\/mycheckpoint\/documentation\/installation\">detailed<\/a> onstructions.<\/p>\n<h4>Setup monitoring for your database via <em>crontab<\/em><\/h4>\n<p>In your crontab, issue something like this:<\/p>\n<blockquote>\n<pre>*\/5 * * * * mycheckpoint --user=my_user --password=my_password --host=my_host --socket=\/path\/to\/mysql.sock<\/pre>\n<\/blockquote>\n<p>Of course, you must replace option values with your own data. But the idea is to have <em>mycheckpoint<\/em> run every <strong>5<\/strong> minutes. Try one execution outside <em>crontab<\/em> to see that it works. Depending on your OS\/distro, you may wish to specify full path for the <em>mycheckpoint<\/em> binary (e.g. <strong>\/usr\/local\/bin\/mycheckpoint<\/strong>) within <em>crontab<\/em>.<\/p>\n<p>Later on, you may wish to <a href=\"http:\/\/code.openark.org\/forge\/mycheckpoint\/documentation\/quick-howto#Create%20a%20defaults%20file\">create a defaults file<\/a>, and avoid passing the options on command line.<\/p>\n<h4>View charts using <em>mycheckpoint HTTP server<\/em><\/h4>\n<p>Wait for some time. There is no point in looking at charts when you&#8217;ve only taken a few samples. Actually, the charts won&#8217;t even show within the first hour. Things become interesting after <em>several hours<\/em> have passed.<\/p>\n<p>Invoke <em>mycheckpoint<\/em> from the command line with the <strong>http<\/strong> argument (regardless of your <em>crontab<\/em> setup):<\/p>\n<blockquote>\n<pre>mycheckpoint --user=... --password=... --host=... --socket=... <strong>http<\/strong><\/pre>\n<\/blockquote>\n<p>This starts <em>mycheckpoint<\/em> as HTTP service, by default listening on port <strong>12306<\/strong>. Point your browser at:<\/p>\n<blockquote>\n<pre>http:\/\/host_running_mycheckpoint_server:12306\/<\/pre>\n<\/blockquote>\n<p>And start browsing through HTML reports!<\/p>\n<h4>What&#8217;s next?<\/h4>\n<p>You may want to look at <a href=\"http:\/\/code.openark.org\/forge\/mycheckpoint\/documentation\/generating-human-reports\">human reports<\/a>; create <a href=\"http:\/\/code.openark.org\/forge\/mycheckpoint\/documentation\/alerts\">alert conditions<\/a>; generate <a href=\"http:\/\/code.openark.org\/forge\/mycheckpoint\/documentation\/custom-monitoring\">custom queries<\/a>. Read the complete <a href=\"http:\/\/code.openark.org\/forge\/mycheckpoint\/documentation\">documentation<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mycheckpoint is becoming larger and loaded with features. This page will help the new comer answering these questions: How do I start using mycheckpoint and what are the most interesting functionalities? This short page will describe how to set up mycheckpoint and quickly view HTML reports with interactive charting. The steps you will follow are: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":147,"menu_order":-20,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-556","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/code.openark.org\/forge\/wp-json\/wp\/v2\/pages\/556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code.openark.org\/forge\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/code.openark.org\/forge\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/code.openark.org\/forge\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/code.openark.org\/forge\/wp-json\/wp\/v2\/comments?post=556"}],"version-history":[{"count":18,"href":"https:\/\/code.openark.org\/forge\/wp-json\/wp\/v2\/pages\/556\/revisions"}],"predecessor-version":[{"id":606,"href":"https:\/\/code.openark.org\/forge\/wp-json\/wp\/v2\/pages\/556\/revisions\/606"}],"up":[{"embeddable":true,"href":"https:\/\/code.openark.org\/forge\/wp-json\/wp\/v2\/pages\/147"}],"wp:attachment":[{"href":"https:\/\/code.openark.org\/forge\/wp-json\/wp\/v2\/media?parent=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}