def zabbix_host(request): """ zabbix主机详情页 """ uuid = request.GET.get('uuid') host = get_object_or_404(Host, uuid=uuid) eth1 = host.eth1 graphs = zabbix_get_graph(eth1) items = zabbix_get_item(eth1) triggers = zabbix_get_trigger(eth1) alerts = zabbix_get_alert(eth1) return my_render('assets/zabbix_host.html', locals(), request)