Ad Widget

Collapse

Logrt and zabbix agents 3.4 issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • n3o
    Junior Member
    • Jun 2016
    • 27

    #1

    Logrt and zabbix agents 3.4 issue

    Hello all ,

    I need your help with logrt.

    So I have updated my zabbix agents on 2 of my servers to v3.4 and now my logrt is not working on them. On the rest servers which I have v3.2 its working fine.

    see below my Item and Trigger... Please note that the log files I am monitoring have this format: 20170911.log and every day it changes to the next day 20170912.log ...20170913.log etc etc.

    The error I get is:

    3752:20170911:093116.157 active check "logrt[C:\Program Files (x86)\MetaTrader Data Center Demo1\logs\*.*,,,,skip,]" is not supported: Cannot compile a regular expression describing filename pattern: ? * + invalid at offset 0

    If there is a different way on which I can monitor these kind of files (20170912.log ...20170913.log etc etc.) I will appreciate it if you share it with me.


    This is my ITEM
    Code:
    logrt[C:\Program Files (x86)\MetaTrader Data Center Demo1\logs\*.*,,,,skip,]
    This is my Trigger
    Code:
    Problem Expression: {serv1:logrt[C:\Program Files (x86)\MetaTrader Data Center 
        Demo1\logs\*.*,,,,skip,].str(Datafeed: no connection )}=1
    
        Recovery Expression: {serv1:logrt[C:\Program Files (x86)\MetaTrader Data Center 
        Demo1\logs\*.*,,,,skip,].str(Datafeed: started)}=1

    Thanks
    Last edited by n3o; 11-09-2017, 16:41.
  • n3o
    Junior Member
    • Jun 2016
    • 27

    #2
    The problem is fixed with the below changes in the Item.

    See Item below:

    logrt[C:\\Program Files (x86)\\MetaTrader Data Center\\logs\\.*,,,,skip,]
    Last edited by n3o; 11-09-2017, 21:23.

    Comment

    Working...