Merge branch 'master' of /git/shared/home/git/repositories/kieren.hynd/tcollector
startstop: fix bug for mac: readlink: illegal option -- f

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
(cherry picked from commit 0ff701cfe69b16781f18d3de8de4dbc34becd107)
Permissions change of hadoop_datanode.py and hadoop_namenode.py
to collectors regular 775
(cherry picked from commit 31631acc1708b3c9772402eb15d77e4e864447a6)
Debian package: fix of invalid use of status_of_proc() at init script
(cherry picked from commit 63a176c802f0104cef13cabaf690bc5ee8d47013)
ifstat.py: code cleanup
(cherry picked from commit 3c350e28373435f3e480ba5914f547996e1fb352)
startstop: pass log to tcollector.py with --logfile

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
(cherry picked from commit 41322499cdcfd6997383ecd7bb364fb7e68757fe)
tests.py: collectors access rights test added.
(cherry picked from commit cfd6ebdce1c096c36679a7dbb0e4ebe775a3e2af)
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>
(cherry picked from commit a3c5e49f83ed2d24ab8c52d08757cc05e0d460b3)
Removed err function from individual collectors

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
(cherry picked from commit ed78c4dd5db219af2128435296aad94b6507b1da)
hbase_regionserver.py: fix region metrics splitting

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
(cherry picked from commit 9eb4a525ace6aad58956b5429b42a6f3d155d1c2)
Added nginx tcollector plugin.  It uses the stub_status module to get information.  By default it uses the /status endpoint.
Merge branch '20140721_sync' into 'master'

Sync with upstream

Primarily to include Mike Crews' umask fix (https://github.com/OpenTSDB/tcollector/pull/161)
Plus several changes to files we don't use in our .rpm.
Moved to http://git.tm.tmcs/techops/tcollectors
Don't attempt to send data if we're just about to exit.

This causes a spurious "AttributeError: 'NoneType' object has no
attribute 'sendall'" in send_data().
(cherry picked from commit 1323d05f03b63f0b2ff32d4f3b061963886bce76)
Adding reconnect option to tcollector.

Adding --reconnect-interval option (in seconds) that will rebind the TCP connection to the TSD server.
It's leveraging the verify_conn() function to trigger a TCP reconnection.
This is particularly useful if using a round-robin DNS or any kind of VIP.

Defaults to 0 (no reconnection)

Signed-off-by: Vasiliy Kiryanov <vasiliy.kiryanov@gmail.com>
(cherry picked from commit a71811b07e2848bef006c487aa0d7314c083b2c5)