nagios-http-json icon indicating copy to clipboard operation
nagios-http-json copied to clipboard

Please add an optional parameter to mitigate unknown to critical

Open K0nne opened this issue 1 year ago • 2 comments

Hello,

we have a few cases where the check cant get results, because of unreachability. In this the check returns unknown. We whould like have an option mitigate this to critical.

K0nne avatar Mar 14 '24 10:03 K0nne

Hi, yes it should be possible to provide a flag to override the exit code.

martialblog avatar Mar 14 '24 13:03 martialblog

Implemented this feature here: https://github.com/drewkerrigan/nagios-http-json/pull/86

martialblog avatar Apr 09 '24 12:04 martialblog

It works perfect.

K0nne avatar May 14 '24 08:05 K0nne