AmanDjenner / Zabbix-Monitor-log

Monitor Windows logs advanced

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zabbix - Monitor log

Zabbix_agentd.conf

  Timeout=30
  EnableRemoteCommands=1

Zabbix Iten

  Name: Event Log
  Type: zabbix-agent
  Key: system.run[powershell.exe -command c:\EventLog.ps1]
  Host interface: 192.168.0.47: 10050
  Type of information: Text
  Update(in sec): 60

Zabbix Trigger

  Name: Novo Evento 1053 encontrado no {HOST.NAME}
  Expression: {iakim:system.run[powershell.exe -command c:\EventLog.ps1].last()}>0

Other Files:

New.txt

Content:
                                                                      Index
                                                                      -----
                                                                     310250

Old.txt

Content:
  Iakim
  -----
  Isaac
  Moraes

Note: All files are in C:, to change, change in the $new and $old variable and also in the zabbix-agent item.

About

Monitor Windows logs advanced


Languages

Language:PowerShell 100.0%