Ad Widget

Collapse

Trigger on Logfile monitor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HEMA1
    Member
    • Jun 2008
    • 33

    #1

    Trigger on Logfile monitor

    Is there any one that knows how to i monitor a string
    Using agent version: 1.4.6

    Say that i need to monitor a string using “Monitoring of log files”

    The logfile is stored in /kalle/logs/olle.out
    The part off the string that I want to monitor is “ERROR - Could not register”

    I have created an item
    Type:ZABBIX agent
    Key: log[/kalle/logs/olle.out, ERROR - Could not register]
    Type of information: Log

    When doing a test on above I resvive
    Last value: Accessible only as active check ?????

    Question number one is this doable?

    Question number two how do I create a trigger on this?

    Question number tree: when you use the expression above does it read the file
    From the last file position or from the beginning, if it reads from the last possession,
    In what state does it read from the beginning?



    TNX in advance :-)
    Last edited by HEMA1; 08-08-2008, 11:07.
  • dminstrel
    Member
    • Apr 2005
    • 72

    #2
    Same question as the parent.

    I thought logfile monitoring worked as boolean parameter where I could have a trigger fire if a particular string or regular expression ever appeared in the monitored file. Anyone have success in that regard?

    Plan B would be to hack something with Fetchlog http://fetchlog.sourceforge.net/.

    Comment

    Working...