iostat.py: add statistic metric await.

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
iostat.py: add statistic metric util.

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
startstop: fix bug for mac: readlink: illegal option -- f

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
Permissions change of hadoop_datanode.py and hadoop_namenode.py
to collectors regular 775
Debian package: fix of invalid use of status_of_proc() at init script
iostat.py: code cleanup
ifstat.py: code cleanup
startstop: pass log to tcollector.py with --logfile

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
tests.py: collectors access rights test added.
rpm: add ability to set extra tags, list of tsd hosts, and other logfile options

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
dfstat.py: ignore the nfs filesystem type.

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
dfstat.py: python2.4 compatibility support
dfstat.py: python2.4 compatibility support
tcollector.py: change umask back to 022 after dup2 and close calls
this prevents root-owned mode 666 .pyc files being created

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
Removed err function from individual collectors

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
Don't log any output while running tests
Introduce mocks and test for udp_bridge.py collector
udp_bridge.py: If we get a line starting with "put ", remove that part

This allows us to use a standard OpenTSDB client to send data to the UDP bridge,
instead of having to make special forks for each client we want to use.
procstats.py: multiply by 1024 to get bytes

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
udp_bridge.py: Support Python 2.4