if [[ $? = 0 ]]; then
  NAGIOS_CODE=0
  NAGIOS_MESSAGE=\"OK\"
else
  NAGIOS_CODE=2
  NAGIOS_MESSAGE=\"CRITICAL\"
fi

printf \"<%= @fqdn -%>\t<%= @service_description -%>\t\${NAGIOS_CODE}\t\${NAGIOS_MESSAGE}\\n\" | /usr/sbin/send_nsca -H alert.cluster >/dev/null

if [[ $? = 0 ]]; then
  NAGIOS_CODE=0
  NAGIOS_MESSAGE=\"OK\"
else
  NAGIOS_CODE=2
  NAGIOS_MESSAGE=\"CRITICAL\"
fi

printf "<%= @fqdn -%>\t<%= @service_description -%>\t${NAGIOS_CODE}\t${NAGIOS_MESSAGE}\n" | /usr/sbin/send_nsca -H alert.cluster >/dev/null

Fix quoting in backup::assets::job Icinga check
Fix quoting in backup::assets::job Icinga check

We were escaping this too many times, so the check was never being properly
completed, and thus even though backups completed, the check didn't change
state.

Refactored the check to reduce the amount of escaping.
