     monitor.save()
     monitor.run (err) ->
       if err
-        if monitor.data.status == "missing"
+        if monitor.data.status is "missing"
           msg.send "#{monitor.url} へアクセスできません。監視を解除します"
           monitor.delete()
+          return
         else
           msg.send "#{monitor.url} でエラーが起きています" +
             "（ステータス：#{monitor.data.statusCode}）"
       else
         msg.send "#{monitor.url} は正常に動作しています。"
+
+      #register cron job
+      Monitor.addSchedule monitor.url
 
   robot.respond /.*稼働状況.*/i, (msg) ->
     #getMonitor

      statusCode: null
      downedAt: null
      checkedAt: null
    }

    @adjustUrl: (url) ->

          callback? true

    toString: () ->
      buffer = "#{@url} : *#{@data.status}* (";
      buffer += "status code: #{@data.statusCode}, " if @data.statusCode
      buffer += "updated at: #{@data.checkedAt}"
      buffer += ", downed at: #{@data.downedAt} " if @data.downedAt
      buffer += ")"

  for url, monitor of robot.brain.data.monitors
    Monitor.addSchedule url

  robot.respond /(.+)を監視/i, (msg) ->
    url = Monitor.adjustUrl msg.match[1]
