       console.error 'Negative service count!'
 
 koding.connect ->
+  nsca.sendStatus 'Services presence', 0, 'Service started'
   koding.monitorPresence
     join: (serviceKey) ->
       incService serviceKey, 1

    return hostname
  ).filter Boolean

  if query.all?
    res.send services.map (hostname) -> "#{ protocol }//#{ hostname }"
  else
    i = genericServices.seq++ % services.length
    res.set "Content-Type", "text/json"
    res.send "\"#{ protocol }//#{ services[i] }\""

{ argv } = require 'optimist'

koding = require './bongo'

nsca = require 'koding-nsca-wrapper'

parseServiceKey = require 'koding-service-key-parser'

