Ad Widget

Collapse

How to configure log monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stepassia
    Junior Member
    • Feb 2018
    • 27

    #1

    How to configure log monitoring

    Hi to all, I've set a log monitoring item with active check. I need to fine any NEW line with SOMESTRING.
    In the Item key I've set: log[/path/to/log.log,"SOMESTRING",,skip]
    but with the skip mode I get a ZBX Unsopportted

    With log[/path/to/log.log,"SOMESTRING"] it's ok but the item collect all line (I suppose), not only the new line whit the SOMESTRING string.
    I don't know how to configure a trigger to get an alert only when a new line with SOMESTRING appear in the log file...

    What's wrong?
    Thanks a lot
    Last edited by stepassia; 20-04-2018, 16:37.
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    As always DebugLevel=4 in agent settings -> restart agent -> observe agent logs around using log[] key.
    I'm guessing that it is the matter of permission for zabbix user to the log file and you already have in agent logs notifications about permission denied.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • stepassia
      Junior Member
      • Feb 2018
      • 27

      #3
      Hi kloczek, the agent collect the log so, any permission denied error. The problem is that: for any new occurrence in log, the item collect any previous occurrences...
      Thanks
      Stefano

      Comment

      Working...