circonus-labs/circonus-cookbook — pull request #20 by jsime (2014-02-26 20:30:33+00:00)
Title: Resmon/NAD/JSON target exception handling

Instead of terminating the Chef run with unhandled fatal exceptions, rescue ETIMEDOUT and ECONNREFUSED by emitting warnings to the Chef log and returning empty metric lists. These checks will fail frequently on an initial provision, because the target services will not yet be configured. But if the Chef run is terminating, the services can't be provisioned for a subsequent run either.