Ad Widget

Collapse

logrt[] not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nicolasg
    Member
    • Apr 2011
    • 50

    #1

    logrt[] not working

    Hi All,

    I'm running Zabbix 1.8.14 (agent & server) and can't make the logrt[] to work..

    I want to catch the string "Could not connect to any master nodes" but the log file name is not a standard name and for this reason I'm trying to use logrt with a regex patter to catch the string in log files that will be like :

    /var/log/123kjvdkfj34kj34.log
    /var/log/dfkj34kjfdksflj.log


    Here is the Item in Zabbix I have created:
    Code:
    Type: Zabbix Agent (active)
    
    Key: logrt["/var/log/^.*\.log$","Could not connect to any master nodes",,]
    
    Type of information : Log
    I can't see any error messages in the Agent logs and the item is not visible when I go to the dashboard -> latest data...

    Any ideas what's wrong ?

    Regards,
    Nicolas.
  • nicolasg
    Member
    • Apr 2011
    • 50

    #2
    I have change the key to :
    Code:
     Key: logrt["/var/log/*log$","Could not connect to any master nodes",,]
    Now I an see the item the in latest data but the last vaule is always :

    "Accessible only as active check!"


    Also in the Zabbix Agent logs I found :
    Code:
    28075:20120816:134355.224 there are no files matching [*log$] in [/var/log/]
    28075:20120816:134355.225 Active check [logrt["/var/log/*log$","Could not connect to any master nodes",,]] is not supported. Disabled.
    Regards,
    Nicolas.

    Comment

    Working...