anchor.diff:  #
   HistoryCacheSize=<%= @historycachesize %>
   
  +<% if @zabbix_version.to_f <= 2.4 %>
   ### Option: HistoryTextCacheSize
  -#	Size of text history cache, in bytes.
  -#	Shared memory size for storing character, text or log history data.
  +#   Size of text history cache, in bytes.
  +#   Shared memory size for storing character, text or log history data.
   #
   HistoryTextCacheSize=<%= @historytextcachesize %>
  +<% end %>
  +
  +<% if @zabbix_version.to_f >= 3.0 %>
  +### Option: HistoryIndexCacheSize
  +#   Size of history index cache, in bytes.
  +#   Shared memory size for indexing history cache.
  +#
  +<% if @historyindexcachesize %>HistoryIndexCacheSize=<%= @historyindexcachesize %><% end %>
  +<% end %>
   
   ### Option: Timeout
   #	Specifies how long we wait for agent, SNMP device or external check (in seconds).
  
positive.code: 
  ### Option: DebugLevel
  #	Specifies debug level
  #	0 - no debug
  #	1 - critical information
  #	2 - error information
  #	3 - warnings
  #	4 - for debugging (produces lots of information)
  #
  DebugLevel=<%= @debuglevel %>
  
  ### Option: PidFile
  
negative.code: # SourceIP=
  <% if @sourceip %>SourceIP=<%= @sourceip %><% end %>
  
  <% if @zabbix_version.to_f >= 3.0 -%>
  ### Option: LogType
  #	Specifies where log messages are written to:
  #		system  - syslog
  #		file    - file specified with LogFile parameter
  #		console - standard output
  #
  <% if @logtype %>LogType=<%= @logtype %><% end %>
  
  ### Option: LogFile
  #	Log file name for LogType 'file' parameter.
  #
  LogFile=<%= @logfile %>
  
  <% else %>
  ### Option: LogFile
  #	Name of log file.
  #	If not set, syslog is used.
  #
  LogFile=<%= @logfile %>
  <% end %>
  
  ### Option: LogFileSize
  #	Maximum size of log file in MB.
  