Commit 77d2d32d authored by jithu.tagore's avatar jithu.tagore

Update infra_as_service_monitor.py

parent b3da919f
......@@ -409,14 +409,19 @@ def mail_send():
f"<b>{env} {config['user_info']['subject']}</b>\nLast Restarted at : {restart_time}({count_of_restart})\nIP:{ip_address}\nEnvironment:{env}\n\n<b>Ram Usage</b>\n<pre>{tabular_table}</pre>")
html = html_top_section + service_section + html_end
elif len(container_restart) > 0 and len(disk_table) > 0 and len(ram_table) > 0:
print("container_restart,ram_table and disk_table")
html = html_top_section + docker_container + disk_section + ram_section + html_end
elif len(container_restart) > 0 and len(disk_table) > 0:
print("container_restart and disk_table")
html = html_top_section + docker_container + disk_section + html_end
elif len(container_restart) > 0 and len(ram_table) > 0:
print("container_restart and ram_table")
html = html_top_section + docker_container + ram_section + html_end
elif len(container_restart) > 0:
print("container_restart")
html = html_top_section + docker_container + html_end
elif len(disk_table) > 0:
print("disk html")
if mqtt == "True":
client1.publish(mqtt_topic, "{}")
if telegram == "True":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment