I installed a build agent on Windows 7 and always have the agent show up as \"disconnected\". The log teamcity-agent.txt shows below information
If this is the
In my case the agent was started but listed as disconnected, after waiting several minutes it was still disconnect. So I went to the bin directory on the build agent like Peter suggested and ran the following two commands
./agent.sh stop
./agent.sh start
essentially just restarting the build agent. That did the trick for me.