Open ghost opened 9 years ago
Same problem here... Any workaround or solution available ?
Thanks in advance
Here is a fix that works for omd/check_mk 1.2.8.p20, just remove nagios_state_names[status]
:
Example : /omd/sites/$SITE/local/share/check_mk/checks/informix_dbspaces
#return (status, nagios_state_names[status] + infotext, perfdata)
return (status, infotext, perfdata)
Check output: check failed - please submit a crash report! Check_MK Version: 1.2.7i1p3 Date: 2015-24-09 16:35:41 Host: fiddb030.fidor.intern Service: IDS black2_ids status Check type: informix_status Item: 'black2_ids' Parameters: None Traceback (most recent call last): File "/omd/sites/fidor/share/check_mk/modules/check_mk_base.py", line 1397, in do_all_checks_on_host result = convert_check_result(check_function(item, params, info), check_uses_snmp(checkname)) File "/omd/sites/fidor/local/share/check_mk/checks/informix_status", line 81, in check_informix_status NameError: global name 'nagios_state_names' is not defined
This variable/array is used in the code but define nowhere. What are it's values?