Ad Widget

Collapse

Log monitoring doesn't work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gastonace1
    Junior Member
    • Jun 2018
    • 6

    #1

    Log monitoring doesn't work

    Hello everyone,
    I'm working with Zabbix 3.2, and I need to monitor some logs when they have an "error" string on them, but I cannot make it work.
    Here's what I'm doing:

    First I've made an item in the workstation, called "Log monitor",
    Type: Zabbix agent(active),
    Key: logrt["C:\zabbix\zabbix_agentd.log"],
    Type of Information: Text,
    Update interval: 30 sec.

    Then I've made a trigger named "log monitor testing", with this values:
    severity: info,
    Expression: {DT0163658:logrt["C:\zabbix\zabbix_agentd.log"].str("started",120)}=0
    (i've made this using the "Add" button, "find string V in last most recent value", and the string is "started" just for testing)

    But I cannot make it work. Can someone help me do this? I've read the documentation but seems like I'm missing something.

  • gastonace1
    Junior Member
    • Jun 2018
    • 6

    #2
    I solved it.
    My configuration file was missing 2 thigs:
    1- Hostname in zabbix_agentd.conf must be equal to Zabbix front end (Configuration -> Hosts -> modify the hostname variable in the host)
    2- ServerActive= 1.1.1.1 (where 1.1.1.1 is your Zabbix server)

    Now my problem is that the Log is always writing, so the alarm appear and disappear too quick so I can't track the problem.
    Do anyone know how can I make it to be a only manual close to a trigger alarm in the Dashboard?

    Comment

    • ElProfesor
      Junior Member
      • Jul 2018
      • 6

      #3
      Hi,

      For close manual a trigger. In trigger configuration, enable the Allow manual close option (In the templates or others).

      Thanks

      Comment

      Working...