##SENSU ###How to use one script for 'metric' and 'standard' check.
I want to use one script for metric and standard 'OK/CRITICAL' check. check.rb prints metric and additional 'OK/CRITICAL' info. Metric handler before sending data to graphite remove all "o:.*" lines, and notification handler remove all 'metric' lines from check output.
Check of course have to be 'type':'metric'.
And for escalation notification i'm using:https://github.com/faja/sensu-community-plugins/tree/master/handlers/escalation