anchor.diff:  
   <% if @mongodb_server %>
   # MongoDB
  -# See http://support.serverdensity.com/knowledgebase/articles/71151-mongodb-monitoring-linux-mac-and-freebsd
  -
  +# See http://www.serverdensity.com/docs/agent/mongodb/
   mongodb_server: <%= @mongodb_server %>
  -mongodb_dbstats: <% if @mongodb_dbstats %>yes<% else %>no<% end %>
  -mongodb_replset: <% if @mongodb_replset %>yes<% else %>no<% end %>
  +mongodb_dbstats: <%= @mongodb_dbstats ? 'yes' : 'no' %>
  +mongodb_replset: <%= @mongodb_replset ? 'yes' : 'no' %>
   <% end %>
   
   <% if @mysql_server %>
   # MySQL
  -# See http://support.serverdensity.com/knowledgebase/articles/71166-mysql-monitoring-linux-mac-and-freebsd
  -
  +# See http://www.serverdensity.com/docs/agent/mysql/
   mysql_server: <%= @mysql_server %>
   mysql_user: <%= @mysql_user %>
   mysql_pass: <%= @mysql_pass %>
  
positive.code: #
  # Server Density Agent Config
  # Docs: http://support.serverdensity.com/knowledgebase/articles/69360-agent-config-variables-linux-mac-freebsd
  #
  
  [Main]
  sd_url: <%= @sd_url %>
  agent_key: <%= @agent_key %>
  
  #
  # Plugins
  #
  # Leave blank to ignore. See http://support.serverdensity.com/knowledgebase/articles/76018-writing-a-plugin-linux-mac-and-freebsd
  #
  
  plugin_directory: <%= @plugin_dir %>
  
  #
  # Optional status monitoring
  #
  # See http://support.serverdensity.com/knowledgebase/topics/10921-configuration
  # Ignore these if you do not wish to monitor them
  #
  
  <% if @apache_status_url %>
  # Apache
  # See http://support.serverdensity.com/knowledgebase/articles/71145-apache-monitoring-linux-mac-and-freebsd
  
  apache_status_url: <%= @apache_status_url %>
  apache_status_user: <%= @apache_status_user %>
  apache_status_pass: <%= @apache_status_pass %>
  
negative.code: 
  <% if @nginx_status_url %>
  # nginx
  # See http://www.serverdensity.com/docs/agent/nginx/
  nginx_status_url: <%= @nginx_status_url %>
  <% end %>
  
  <% if @rabbitmq_status_url %>
  # RabbitMQ
  # See http://www.serverdensity.com/docs/agent/rabbitmq/
  rabbitmq_status_url: <%= @rabbitmq_status_url %>
  rabbitmq_user: <%= @rabbitmq_user || 'guest' %>
  rabbitmq_pass: <%= @rabbitmq_pass || 'guest' %>
  <% end %>
  
  # Plugins
  # See http://www.serverdensity.com/docs/agent/writingplugins/
  plugin_directory: <%= @plugin_dir %>
  
  <% unless @plugin_options.nil? or @plugin_options.empty? %>
  <% @plugin_options.reject { |k, v| v.class == Hash } .each do |name, value| %>
  <%= name %> = <%= value %>
  <% end %>
  