From a0d0773d1a711fc705c0245dca660bea7c02eafc Mon Sep 17 00:00:00 2001 From: Brian Artschwager Date: Thu, 18 Feb 2016 10:42:44 -0500 Subject: [PATCH] fix variable error NameError: global name 'critical_message' is not defined --- check_http_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_http_json.py b/check_http_json.py index 05a65df..08df991 100755 --- a/check_http_json.py +++ b/check_http_json.py @@ -56,7 +56,7 @@ class NagiosHelper: def append_critical(self, critical_message): self.critical_message += critical_message def append_unknown(self, unknown_message): - self.critical_message += critical_message + self.critical_message += unknown_message def append_metrics(self, (performance_data, warning_message, critical_message)): self.performance_data += performance_data self.append_warning(warning_message)