diff --git a/local/lib/python3/cmk/base/plugins/agent_based/mailcow_domains.py b/local/lib/python3/cmk/base/plugins/agent_based/mailcow_domains.py index dba2fa6..c6bee92 100644 --- a/local/lib/python3/cmk/base/plugins/agent_based/mailcow_domains.py +++ b/local/lib/python3/cmk/base/plugins/agent_based/mailcow_domains.py @@ -95,18 +95,20 @@ def parse_mailcow_domains_section(string_table): if create_time_value == "None": create_time_data = "Not available" else: - create_time = int(create_time_value) - curr_time = int(time.time()) - diff_time = curr_time - create_time - create_time_data = render.timespan(diff_time) + create_time_data = create_time_value + #create_time = int(create_time_value) + #curr_time = int(time.time()) + #diff_time = curr_time - create_time + #create_time_data = render.timespan(diff_time) modify_time_value = line[3] if modify_time_value == "None": modify_time_data = "Never" else: - modify_time = int(modify_time_value) - curr_time = int(time.time()) - diff_time = curr_time - modify_time - modify_time_data = render.timespan(diff_time) + modify_time_data = modify_time_value + #modify_time = int(modify_time_value) + #curr_time = int(time.time()) + #diff_time = curr_time - modify_time + #modify_time_data = render.timespan(diff_time) # calculate percentage of used mailboxes max_number_of_mailboxes = int(line[4]) number_of_mailboxes = int(line[5]) diff --git a/mkp/Mailcow-0.2.1.mkp b/mkp/Mailcow-0.2.1.mkp new file mode 100755 index 0000000..c1d3248 Binary files /dev/null and b/mkp/Mailcow-0.2.1.mkp differ