Handler Extension & severities

Hi all,

I’ve written a Handler Extension (sensu 0.12.6) and would like it to process all events, regardless of severity. For handlers based on sensu-plugin I believe I can add severities list to the sensu handler config, such as:

severities: [ “ok”, “warning”, “critical”, “unknown” ]

How can do the same for a Handler Extension? It looks like the severities aren’t loaded in sensu/lib/extensions.rb? Have I understood this correctly?

Appreciate any suggestions/advice you have.

Thanks,

Mark

1 Like

+1 Wondering if there is a way to handler severities in the extension. There’s no problem coding it using the check status, just curious if there was an another way inside the extension.

Edit: Shit, just noticed the time line. :man_facepalming:

Edit: Never mind. The following in the extension definition will handle it.

:severities => [ “warning” ],