Ad Widget

Collapse

Log file monitor and trigger: How?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bob.burgess
    Junior Member
    • Feb 2007
    • 2

    #1

    Log file monitor and trigger: How?

    I would like to monitor an Oracle alert log file and trigger an event when a certain string appears. I'd also like to put lines from the log in the alert message.
    I found steps in the docs to add an item to watch the log file, which I did, but nothing shows up in its History. I started to create a trigger on this item, but I'm not sure what to use for the expression.

    Has anyone done this? I'm starting out with Zabbix, and I'd really appreciate any guidance anyone can offer.

    (My apologies if this information appears elsewhere.)

    Thanks,
    --Bob
    Last edited by bob.burgess; 03-04-2007, 17:16.
  • flashg0rd0n
    Junior Member
    • Feb 2007
    • 1

    #2
    Hi Bob,

    Did you make any progress with this? I am quite new to zabbix and am faced with a similar dilemma.

    I would like to have the contents of the Oracle Alert.log file emailed to me if it contains any ORA-* error messages.

    Any tips on expressions needed to set up triggers for this to be done would be much appreciated if you could pass them on.

    Comment

    • bob.burgess
      Junior Member
      • Feb 2007
      • 2

      #3
      Log File Monitor

      I actually never got much of anything working properly in Zabbix. We abandoned it and went with one of the smaller commercial monitoring systems. I wrote a script which runs periodically through cron to watch for errors in the alert log, compile them into a single line, and write them (and other info) to a key/value text file. If this would help you, let me know and I can send it to you.

      Bob

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        ZABBIX Agents support filtering of log messages on agent side:

        log[log_file,filter]

        log_file - full path to a file
        filter - posix-style regular expression

        For example, log["/var/log/application/warnings.log","ERROR"]
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • dagof
          Junior Member
          • Nov 2006
          • 14

          #5
          Hi Alexei,

          Once the item is getting data from the log, how do i set up a trigger based upon this? The only thing I see is the last matched line.

          Thanks in advance.

          Comment

          Working...