           return
         results = JSON.parse(body)
         output = []
-        for result,value of results
+        for value in results
           if value['flapping']
             flapping = ', flapping'
           else
             flapping = ''
-          output.push value['client']['name'] + ' (' + value['check'] + flapping + ') - ' + value['check']['output']
+          output.push value['client']['name'] + ' (' + value['check']['name'] + flapping + ') - ' + value['check']['output']
         if output.length is 0
           message = 'No events'
           if client != ''

          return
        results = JSON.parse(body)
        output = []
        for result,value of results
          console.log value
          message = value['path'] + ' added on ' + moment.unix(value['content']['timestamp']).format('HH:MM YY/M/D')
          if value['content']['reason']

        if res.statusCode is 200
          results = JSON.parse(body)
          output = []
          for value in results
            output.push value['check'] + ' (last execution: ' + moment.unix(value['last_execution']).format('HH:MM M/D/YY') + ') history: ' + value['history'].join(', ')

          if output.length is 0
