1.zabbix_agentd.win文件修改:
LogFile=c:\zabbix\zabbix_agentd.log Server=1.16.2.4 ServerActive=1.16.2.4 Hostname=1.16.3.6 #该值必须和Host里面创建的该host的Host Name一致,不加该句默认为该主机的计算机名称,不加这个会出现“accessible only as active check”错误 HostMetadataItem=system.uname Timeout=30 EnableRemoteCommands=1 ########################################### UserParameter=check_windows[*],powershell c:\zabbix\script\check_windows.ps1 $1
2.新建item(active):
eventlog[Application,,,"MSExchangeTransport",^15004$,,skip] 应用程序日志,来源为MSExchangeTransport,事件ID为15004
3.新建trigger:
{template-uxdata-windows-Mail:eventlog[Application,,,"MSExchangeTransport",^15004$,,skip].nodata(60)}=0
60S内不再出现该日志则自动恢复