#!/usr/bin/env ruby require 'yajl' require 'city_watch' require 'city_watch/agent' Commands.test if CityWatch.debug? dat = { :hostname => ::Socket.gethostname, # :commands => Commands.data, :watchmen => Watchmen.data } if CityWatch.config[:watch_collector] Collector.send!(CityWatch.config[:watch_collector],dat) else puts Yajl::Encoder.encode(dat) end