Add +x to 'debian/rules'

Commit adds +x to 'debian/rules' as it's required by dpkg-buildpackage command.

Signed-off-by: Zdenek Styblik <zdenek.styblik@icflix.com>
Fix - 'status' in init script doesn't work properly

Init script reports incorrect 'status' of Diamond on Hosts when Host has LXCs
with Diamond running inside. This is caused by not using PIDFILE.
Commit fixes this issue by passing PIDFILE.

Signed-off-by: Zdenek Styblik <zdenek.styblik@icflix.com>
passenger_stats collector - rewrite

This is a slight rewrite of collector of passenger-stats.
Most notablechanges are:
  * ditch unnecessary subprocess() calls - use Python!
  * use compiled RE
  * clean up and re-write code - pretty much all of it
  * fix names of emitted metrics
  * collector no longer ends up as a Zombie process

Signed-off-by: Zdenek Styblik <zdenek.styblik@icflix.com>
Small rewrite of RMQ PubSub handler

Commit is a small rewrite of RMQ PubSub handler and aims it to be more durable
and reliable. It also adds support for multiple RMQ servers in order to achieve
"HA". However, they all have to be configured in exactly the same way(which is
likely anyway).

Signed-off-by: Zdenek Styblik <zdenek.styblik@icflix.com>