<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Scout ~ The Blog comments on How To Customize a Scout Plugin</title>
    <link>http://blog.scoutapp.com/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Scout ~ The Blog comments</description>
    <item>
      <title>"How To Customize a Scout Plugin" by seebq</title>
      <description>&lt;p&gt;Since &lt;a href="http://scoutapp.com/plugin_urls"&gt;Scout Plugins&lt;/a&gt; are open source, it&amp;#8217;s easy to modify them to fit your needs.&lt;/p&gt;


	&lt;p&gt;Here&amp;#8217;s a quick way to create a custom version of a Scout plugin.&lt;/p&gt;


	&lt;h2&gt;1. Grab the current plugin and options&lt;/h2&gt;


The code:
&lt;pre&gt;
&lt;code&gt;
curl http://plugins.scoutapp.com/mongrel_cluster_monitor/trunk/mongrel_cluster_monitor.rb \ 
&amp;gt; mongrel_cluster_monitor.rb
&lt;/code&gt;
&lt;/pre&gt;

The options:
&lt;pre&gt;
&lt;code&gt;
curl http://plugins.scoutapp.com/mongrel_cluster_monitor/trunk/mongrel_cluster_monitor.yml \ 
&amp;gt; mongrel_cluster_monitor.yml
&lt;/code&gt;
&lt;/pre&gt;

	&lt;h2&gt;2. Edit the plugin code and test&lt;/h2&gt;


&lt;pre&gt; 
scout -p /path/to/customized/mongrel_cluster_monitor.rb \
-o '{"mongrel_cluster_configuration_dir"=&amp;gt;"/etc/mongrel_cluster"}' \
-v -l debug
&lt;/pre&gt;

	&lt;p&gt;That says, use the &lt;code&gt;-p option (or --plugin)&lt;/code&gt; and the &lt;code&gt;-o (or --option)&lt;/code&gt; to
test locally, passing these options, be verbose &lt;code&gt;(--verbose)&lt;/code&gt; and
set the log level to debug &lt;code&gt;(--log-level debug)&lt;/code&gt;.&lt;/p&gt;


	&lt;p&gt;Note that you could also add your own &amp;#8220;option&amp;#8221; there, as the path to
one of the configuration files&amp;#8230;.  however you want to do it.&lt;/p&gt;


	&lt;h2&gt;3. Host the Plugin&lt;/h2&gt;


	&lt;p&gt;&lt;img src="http://img.skitch.com/20080509-deu93s7qbgknqkuc8f8d1p9nkk.jpg" alt="Scout ~ Bristol"/&gt;&lt;/p&gt;


	&lt;p&gt;Then, all you have to do is make that plugin and its options file (of
the same name) &lt;span class="caps"&gt;URL&lt;/span&gt; accessible (put it in your rails public dir,
perhaps, or on another server) for the scout server to be able to grab
it when you install.  When you install, choose, Manual&amp;#8212;and type in
the &lt;span class="caps"&gt;URL&lt;/span&gt; to your new customized version
(http://highgroove.com/new_customized_single_mongrel.rb for
example).&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://scoutapp.com/plugin_urls/static/creating_a_plugin"&gt;More on creating plugins&lt;/a&gt;&lt;/p&gt;

</description>
      <pubDate>Thu,  8 May 2008 17:20:00 CDT</pubDate>
      <guid>&lt;a href="/articles/2008/05/08/how-to-customize-a-scout-plugin"&gt;How To Customize a Scout Plugin&lt;/a&gt;</guid>
      <link>&lt;a href="/articles/2008/05/08/how-to-customize-a-scout-plugin"&gt;How To Customize a Scout Plugin&lt;/a&gt;</link>
    </item>
  </channel>
</rss>
