sensu/sensu-community-plugins — pull request #921 by ofir-rounds (2014-12-18 12:43:56+00:00)
Title: Check for empty graphite responce

Too easy to mess up and burn some time, by putting a mistake in the metric name.

I just added a simple check before parsing the return value to check for a valid empty result from Graphite '[]'
I guess this can be implemented in many ways in many places in the code.
This seemed the simplest and best position for me.
Manually tested.