atc0005 / go-nagios

Shared Golang package for Nagios plugins
MIT License
8 stars 3 forks source link

Explicitly catch panics, override ExitState fields #53

Closed atc0005 closed 3 years ago

atc0005 commented 3 years ago

Handle panics within ReturnCheckResults() instead of leaving this entirely up to client code to handle. As part of this, override the ExitState fields in order to prominently display panic details in place of LongServiceOutput details normally shown if set by the plugin client code.

fixes GH-49