change "localhost" to "127.0.0.1". now collectd can connect graphite