1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1" />
5 <title>Project.Mothership
</title>
6 <link href=
"styles.css" rel=
"stylesheet" type=
"text/css" />
7 <style type=
"text/css" media=
"screen">
14 font: normal
.8em/
1.5em
"Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
16 background: #E6EAE9 url(images/bg_grey.gif);
21 text-decoration: none;
26 text-decoration: underline;
33 background: url(images/god_logo1.gif);
40 border:
1px solid #
444;
48 border:
1px solid #ddd;
51 background: url(images/banner.jpg);
59 background: url(images/red_dot.gif) repeat;
66 font-family:
"Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
68 text-transform: uppercase;
73 margin-top:
0 !important;
85 text-decoration: none;
91 text-decoration: none;
94 #page_home #menu li.menu_home a {
115 font: bold
1.5em
"Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
117 text-transform: uppercase;
118 margin:
1.5em
0 .5em
0;
128 margin-left:
1.5em !important;
133 list-style-position: outside;
134 list-style-type: circle;
135 list-style-image: url(images/bullet.jpg);
150 border:
1px solid #ccc;
152 background-color: #efefef;
177 <script type=
"text/javascript" src=
"javascripts/code_highlighter.js"></script>
178 <script type=
"text/javascript" src=
"javascripts/ruby.js"></script>
182 <body id=
"page_home">
184 <div id=
"mothership">
193 <div class="dots"></div>
195 <li class="menu_home"><a href="/">Home</a></li>
196 <li class="menu_contact"><a href="mailto:tom@projectmothership.com">Contact</a></li>
198 <div class="dots"></div>
201 <div class=
"columnleft">
202 <h1>A Better Way to Monitor
</h1>
203 <p>God is an easy to configure, easy to extend monitoring library written in Ruby.
</p>
207 <div class=
"columnright">
209 <ul class=
"features">
210 <li>Config file is written in Ruby
</li>
211 <li>Write your own conditions in Ruby
</li>
215 <h1>Simple is Better
</h1>
216 <p>Keeping your server processes and tasks running should be a simple part of your deployment process. God aims to be the simplest, most powerful monitoring application available.
</p>
218 <h1>Finally, a Config File that Makes Sense
</h1>
219 <p>The easiest way to understand how god will make your life better is by looking at a sample config file. The following configuration file is what I use at
<a href=
"http://site.gravatar.com/">gravatar.com
</a> to keep the mongrels running:
</p>
221 <pre><code class=
"ruby"># This is the actual config file used to keep the mongrels of
222 # gravatar.com running.
224 RAILS_ROOT =
"/var/www/gravatar2/current"
227 god.interval =
30 # seconds
229 %w{
8200 8201 8202}.each do |port|
231 w.name =
"gravatar2-mongrel-#{port}"
233 w.start =
"mongrel_rails cluster::start --only #{port}"
234 w.stop =
"mongrel_rails cluster::stop --only #{port}"
236 w.start_if do |start|
237 start.condition(:process_not_running) do |c|
238 c.pid_file = File.join(RAILS_ROOT,
"log/mongrel.#{port}.pid")
248 <p>Brought to you by
<a href=
"http://rubyisawesome.com/">Ruby is Awesome
</a></p>