Based on sensu community plugins. Forked and modified to obtain extra functionality