Ad Widget

Collapse

trigger that triggers if a word appear in file !!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maroctech
    Junior Member
    • Aug 2011
    • 10

    #1

    trigger that triggers if a word appear in file !!

    I want a trigger that triggers when the word "error" appears in my log file ????
    can u help me as to what is the description ,type of data ,key ... of the item I need .
    in other words I want to know how to monitor a log file .
    I found this ,http://kh4z.fr/zabbix-how-to-log-file-monitoring
    it did help me but I still have some issues
    I don't know the encoding type (in his case he's got ascii )
    Last edited by maroctech; 24-08-2011, 12:26.
  • jonathortense
    Junior Member
    • Jun 2012
    • 2

    #2
    The same problem

    Dear maroctech,

    Have you found a solution for this issue?
    I'm having the same problem.

    Please tell me how you solve that.

    Thanks

    Comment

    • harmonica
      Senior Member
      • Jan 2009
      • 251

      #3
      Originally posted by maroctech
      I want a trigger that triggers when the word "error" appears in my log file ????
      can u help me as to what is the description ,type of data ,key ... of the item I need .
      in other words I want to know how to monitor a log file .
      I found this ,http://kh4z.fr/zabbix-how-to-log-file-monitoring
      it did help me but I still have some issues
      I don't know the encoding type (in his case he's got ascii )
      Use of function str().
      http://www.zabbix.com/documentation/...onfig/triggers

      Checks the example 6.
      Last edited by harmonica; 25-06-2012, 14:41.

      Comment

      • jonathortense
        Junior Member
        • Jun 2012
        • 2

        #4
        harmonica. I'll try tomorrow at work.

        Today I spend a lot of time developing shell scripts for that and put than in the UserParameter at agentd.conf.
        Now are everything working fine, but I think its better if I can put this to work with native functions.

        Thanks

        Comment

        Working...