anchor.diff:  trap nagios_passive EXIT
   
   export MIRRORER_SITE_ROOT=https://www.gov.uk
  -START=$(($(date +%s%N)/1000000))
  +START_CRAWL=$(($(date +%s%N)/1000000))
   
   logger -p user.info -t mirrorer Starting to mirror GOV.UK
   /usr/local/bin/govuk_update_mirror
  
positive.code:   NAGIOS_MESSAGE="WARNING: Mirrorer upload failed."
  fi
  
  logger -p user.info -t mirrorer Starting to upload GOV.UK to mirror targets
  /usr/local/bin/govuk_upload_mirror
  EXIT_CODE=$?
  logger -p user.crit -t mirrorer Exit code from govuk_upload_mirror was $EXIT_CODE
  logger -p user.info -t mirrorer Finished uploading GOV.UK to mirror targets
  
  # As both scripts have succeeded then set the
  # nagios code and message ot successful
  
negative.code: logger -p user.crit -t mirrorer Exit code from govuk_update_mirror was $EXIT_CODE
  logger -p user.info -t mirrorer Finished the mirror of GOV.UK
  
  STOP_CRAWL=$(($(date +%s%N)/1000000))
  DURATION_CRAWL=$(expr $STOP_CRAWL - $START_CRAWL)
  echo "govuk.app.mirrorer.crawl_duration:$DURATION_CRAWL|ms" | nc -w 1 -u localhost 8125
  
  # If we successfully ran govuk_update_mirror we need to update
  # the assumed failure message to indicate it would be an
  