mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2024-11-26 04:13:50 +01:00
fix variable error
NameError: global name 'critical_message' is not defined
This commit is contained in:
parent
6f9048fc75
commit
a0d0773d1a
@ -56,7 +56,7 @@ class NagiosHelper:
|
|||||||
def append_critical(self, critical_message):
|
def append_critical(self, critical_message):
|
||||||
self.critical_message += critical_message
|
self.critical_message += critical_message
|
||||||
def append_unknown(self, unknown_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)):
|
def append_metrics(self, (performance_data, warning_message, critical_message)):
|
||||||
self.performance_data += performance_data
|
self.performance_data += performance_data
|
||||||
self.append_warning(warning_message)
|
self.append_warning(warning_message)
|
||||||
|
Loading…
Reference in New Issue
Block a user