Ad Widget

Collapse

Zabbix Log Monitoring - Duplicate received strings from Log

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clover
    Junior Member
    • Oct 2008
    • 6

    #1

    Zabbix Log Monitoring - Duplicate received strings from Log

    Please help to understand what wrong in configuration Or server, Or Item
    Zabbix version Zabbix 4.0.13. Zabbix is allocated on two servers - Application and database.

    Seems The problem with all the Log monitoring. I try to configure second time the log monitoring, but it doesn't work right.


    For example - I have the txt file and I added strings one by one in it, waiting some time between changes
    ---------------------begin-----------------------------------------------------------------------------------
    License check passed for the following license: "052507483171100-8100454838".
    222
    This is test string
    License check passed for the following license: "052507483171100-8100454838".
    Test License check test NOT passed for the following license: "052507483171100-8100454838".
    ---------------------the end-----------------------------------------------------------------------------------

    Zabbix must to fire when String is not beginning from "License check passed"

    My item and trigger are simple:

    ------------------------------------Item-----------------------------------------------------
    • Name = log "License check passed"
    • Type = Zabbix agent (active)
    • Key = log["C:\1c_lic_check\log.txt"]
    • Type of information = Log
    • Update interval = 30s
    -----------------------------------------------------------------------------------------
    ------------------------------Trigger----------------------------------------
    • Name = log "License check passed"
    • Severity = Average
    • Problem expression
    {ServerName:log["C:\1c_lic_check\log.txt"].str(License check passed)}=0
    • OK event generation = Recovery expression
    • Recovery expression
      {ServerName:log["C:\1c_lic_check\log.txt"].str(License check passed)}=1
    • PROBLEM event generation mode = Single
    -----------------------------------------------------------------------------------------


    What Zabbix received and show in the Last Data:

    He is doubling every string and Doesnt see the last string "Test License check test NOT passed for the following license: "052507483171100-8100454838". "
    When I will add a new string Zabbix then will show string before . two times .
    2019-11-01 15:16:22 License check passed for the following license: "052507483171100-8100454838".
    2019-11-01 15:16:08 License check passed for the following license: "052507483171100-8100454838".
    2019-11-01 15:11:52 This is test string
    2019-11-01 15:11:38 This is test string
    2019-11-01 15:03:22 222
    2019-11-01 15:03:11 222
    2019-11-01 14:55:22 License check passed for the following license: "052507483171100-8100454838".
    2019-11-01 14:55:10 License check passed for the following license: "052507483171100-8100454838".
    Last edited by clover; 05-11-2019, 10:14.
Working...