anchor.diff:  
   define command {
     command_name    check_file_age
  -  command_line    $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "/usr/local/bin/check_file -i -p $ARG1$ -w $ARG2$ -c $ARG3$" -l root
  +  command_line    $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "<%= node['nagios']['nrpe']['home'] %>/plugins/check_file -i -p $ARG1$ -w $ARG2$ -c $ARG3$" -l root
   }
   
   define command {
     command_name    check_file_count
  -  command_line    $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "/usr/lib/nagios/checks/file_queues.rb -t count -p $ARG1$ -w $ARG2$ -c $ARG3$" -l app
  +  command_line    $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "<%= node['nagios']['nrpe']['home'] %>/plugins/file_queues.rb -t count -p $ARG1$ -w $ARG2$ -c $ARG3$" -l app
   }
   
   define command {
     command_name    check_log
  -  command_line    $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "/usr/lib64/nagios/plugins/check_log -F $ARG1$ -O /tmp/nagios.logcheck.processed -q $ARG2$" -l root
  +  command_line    $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "<%= node['nagios']['nrpe']['home'] %>/plugins/check_log -F $ARG1$ -O /tmp/nagios.logcheck.processed -q $ARG2$" -l root
   }
   
   define command {
  
positive.code: # dummy commands for passive checks
  
  define command {
  	command_name	no-disk-checks
  	command_line	/usr/local/nagios/libexec/check_dummy 2 "CRITICAL: Results of disk checks not coming in!"
  }
  
  define command {
  	command_name	no-mem-checks
  	command_line	/usr/local/nagios/libexec/check_dummy 2 "CRITICAL: Results of memory checks not coming in!"
  }
  
  # Notification
  define command {
    command_name  host-notify-by-email
    command_line  /usr/bin/printf "%b" "$LONGDATETIME$\n\n$HOSTALIAS$ $NOTIFICATIONTYPE$ $HOSTSTATE$\n\n$HOSTOUTPUT$\n\nLogin: ssh://$HOSTNAME$" | <%=node['nagios']['server']['mail_command']%> -s "$NOTIFICATIONTYPE$ - $HOSTALIAS$ $HOSTSTATE$!" $CONTACTEMAIL$
  }
  
  define command {
    command_name  host-notify-by-sms-email
    command_line  /usr/bin/printf "%b" "$HOSTALIAS$ $NOTIFICATIONTYPE$ $HOSTSTATE$\n\n$HOSTOUTPUT$" | <%=node['nagios']['server']['mail_command']%> -s "$HOSTALIAS$ $HOSTSTATE$!" $CONTACTPAGER$
  }
  
  # 'notify-by-email' command definition
  define command {
    command_name  service-notify-by-email
    command_line  /usr/bin/printf "%b" "$LONGDATETIME$ - $SERVICEDESC$ $SERVICESTATE$\n\n$HOSTALIAS$  $NOTIFICATIONTYPE$\n\n$SERVICEOUTPUT$\n\nLogin: ssh://$HOSTNAME$" | <%=node['nagios']['server']['mail_command']%> -s "** $NOTIFICATIONTYPE$ - $HOSTALIAS$ - $SERVICEDESC$ - $SERVICESTATE$" $CONTACTEMAIL$
  }
  
  #define command {
  #        command_name process-service-perfdata
  #        command_line /usr/lib/nagios/plugins/process_perfdata.pl
  #}
  
  #define command {
  #        command_name process-host-perfdata
  #        command_line /usr/lib/nagios/plugins/process_perfdata.pl -d HOSTPERFDATA
  #}
  
  # Commands added through nagios_services data bags
  <% @services.each do |service| -%>
  define command {
    command_name check_<%= service['id'] %>
    command_line <%= service ['command_line'] %>
  }
  <% end -%>
  
  
negative.code: 
  
  define command {
  	command_name    check_query_count
  	command_line    $USER1$/db_queues.rb -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -d $ARG3$ -q $ARG4$ -w $ARG5$ -c $ARG6$
  }
  
  define command {
  