anchor.diff:  #
   # Server Density Agent Config
  -# Docs: http://support.serverdensity.com/knowledgebase/articles/69360-agent-config-variables-linux-mac-freebsd
  -#
  +# See http://www.serverdensity.com/docs/agent/configvariables/
   
   [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
  -#
  +<% if @tmp_directory %>
  +tmp_directory: <%= @tmp_directory %>
  +<% end %>
  +<% if @pidfile_directory %>
  +pidfile_directory: <%= @pidfile_directory %>
  +<% end %>
  +<% if @logging_level %>
  +logging_level: <%= @logging_level %>
  +<% end %>
   
  -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
  -#
  +# See http://www.serverdensity.com/docs/agent/config/
   
   <% if @apache_status_url %>
   # Apache
  -# See http://support.serverdensity.com/knowledgebase/articles/71145-apache-monitoring-linux-mac-and-freebsd
  -
  +# See http://www.serverdensity.com/docs/agent/apache/
   apache_status_url: <%= @apache_status_url %>
   apache_status_user: <%= @apache_status_user %>
   apache_status_pass: <%= @apache_status_pass %>
  
positive.code: 
  <% if @nginx_status_url %>
  # nginx
  # See http://support.serverdensity.com/knowledgebase/articles/75885-nginx-monitoring-linux-mac-and-freebsd
  
  nginx_status_url: <%= @nginx_status_url %>
  <% end %>
  
  <% if @rabbitmq_status_url %>
  # RabbitMQ
  # See http://support.serverdensity.com/knowledgebase/articles/75888-rabbitmq-monitoring-linux-mac-and-freebsd
  
  rabbitmq_status_url: <%= @rabbitmq_status_url %>
  rabbitmq_user: <% if @rabbitmq_user %><%= @rabbitmq_user %><% else %>guest<% end %>
  rabbitmq_pass: <% if @rabbitmq_pass %><%= @rabbitmq_pass %><% else %>guest<% end %>
  <% end %>
  
  <% if @tmp_directory %>
  # Temporary file location
  # See http://support.serverdensity.com/knowledgebase/articles/69360-agent-config-variables-linux-mac-freebsd
  
  tmp_directory: <%= @tmp_directory %>
  <% end %>
  
  <% if @pidfile_directory %>
  # Pid file location
  # See http://support.serverdensity.com/knowledgebase/articles/69360-agent-config-variables-linux-mac-freebsd
  
  pidfile_directory: <%= @pidfile_directory %>
  <% end %>
  
  <% if @logging_level %>
  # Set log level
  # See http://support.serverdensity.com/knowledgebase/articles/69360-agent-config-variables-linux-mac-freebsd
  
  logging_level: <%= @logging_level %>
  <% end %>
  
  <% unless @plugin_options.nil? or @plugin_options.empty? %>
  # Plugin options
  <% @plugin_options.reject { |k, v| v.class == Hash } .each do |name, value| %>
  <%= name %> = <%= value %>
  <% end %>
  
negative.code: 
  <% if @mongodb_server %>
  # MongoDB
  # See http://www.serverdensity.com/docs/agent/mongodb/
  mongodb_server: <%= @mongodb_server %>
  mongodb_dbstats: <%= @mongodb_dbstats ? 'yes' : 'no' %>
  mongodb_replset: <%= @mongodb_replset ? 'yes' : 'no' %>
  <% end %>
  
  <% if @mysql_server %>
  # MySQL
  # See http://www.serverdensity.com/docs/agent/mysql/
  mysql_server: <%= @mysql_server %>
  mysql_user: <%= @mysql_user %>
  mysql_pass: <%= @mysql_pass %>
  