Add used_perecent and free_precent metric to filesystem check.
Add missing variable declaration.
Merge pull request #222 from racker/add_derives_metrics_to_filesystem_check

Add used_perecent and free_precent metric to filesystem check.
lib: virgo_paths: fix compile warnings

missing two global headers that define strncpy and free
using a char where the function sig calls for const char
Merge pull request #223 from racker/fixup-warnings-in-virgo-paths

lib: virgo_paths: fix compile warnings
save the scheduler.state to the stateDirectory
fix multiple agent connections from being spawned

* Add an ID to each connection
rename to reconnecting
minor cleanup
monitoring: client: remove reconnecting flags

The reconnecting flags aren't really needed. Essentially we need to bail
on restart logic and heartbeat logic if this agent has been destroyed.
Reconnecting was just a subset of destroyed.
Merge pull request #226 from racker/fixes/exponential_agent_connections

fix multiple agent connections from being spawned
monitoring: connection_messages: whitespace cleanup

simple whitespace cleanup.
monitoring: client: connection_stream: use client:log

instead of coding up a new format string here just use client:log
monitoring: client: lookup ip of endpoint and use it in logs

lookup the ip of the endpoint and use it in the logs and when doing
tls.connect. That was we know the exact IP of the host we are hitting.
Merge pull request #227 from racker/add-ip-to-agent-connection-log

Add ip to agent connection log
s/B/b due to older version of git on buildbot
monitoring: fix monitoring init to catch version

virgo_init now takes care of the --help and --version check. Move the
logic to check for those flags after that call.
Merge pull request #229 from racker/fix-version-after-init-refactor

monitoring: fix monitoring init to catch version
lib: virgo_exec: fix arg copying for upgrade

argv[0] of the new agent was getting set to argv[1] of the old agent.
This meant we lost the first flag given to the agent and also set the
agent binary name to something unrealistic. Fix this by starting the
indexing at 1 and putting exe_name into args[0].
Merge pull request #230 from racker/fix-args-for-upgrade

lib: virgo_exec: fix arg copying for upgrade