Ad Widget

Collapse

monitoring Logs Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Esdras
    Junior Member
    • Dec 2010
    • 5

    #1

    monitoring Logs Trigger

    Guys,

    I've been trying to monitor a log inside a Linux server and it's been a painful stuff, I'm new to zabbix, i used BigBrother and Nagios before and this task was quite simple in that tools.

    I've created the item Fetchmail LOG, selected the Zabbix client Active and the key is this: log["/var/log/fetchmail","error",100]

    I can see in the debug log of the client that the agent is finding the patern, but i believe my problem is the trigger, I really don't undestand how I should create this trigger, it don't accept numeric values.

    Can someone help me to create this trigger? I need to receive an e-mail all the time that there is error in this log, should be very simple.

    Thanks!
    Esdras
  • Esdras
    Junior Member
    • Dec 2010
    • 5

    #2
    Someone can help me to identify what I'm doing wrong?

    {server:log[/var/log/fetchmail].str(error)}=1

    It does not allow me to save, shows these errors:

    Not allowed symbols or sequence of symbols in expression element detected: Check expression part starting from ' #0) '
    Not allowed symbols or sequence of symbols in expression element detected: Check expression part starting from ' })#0) '
    Trigger [FetchMail Support LOG Trigger ]: cannot update

    Even then in the documentation it shows a example with str and number in the trigger.

    http://www.zabbix.com/documentation/...onfig/triggers
    Last edited by Esdras; 16-12-2010, 13:39.

    Comment

    • trikke
      Senior Member
      • Aug 2007
      • 140

      #3
      Hi Esdras,

      if this is your item: log["/var/log/fetchmail","error",100],

      then this should be your trigger:

      {server:log["/var/log/fetchmail","error",100].str(error)}=1

      greets
      Patrick

      P.S. to be shure delete the old trigger and make a new one

      Comment

      • Esdras
        Junior Member
        • Dec 2010
        • 5

        #4
        Hi Patrick,

        Thanks very much for your answer, I deleted my previous trigger and put this one, how long it takes to run this new trigger? the icon is still red "trigger just added".

        Is there a way to use regexp to do that?

        like:

        {server:log["/var/log/fetchmail","error",100].regexp('error')}=1

        I tried that but it's not working...

        Thanks again!
        Esdras

        Comment

        • Esdras
          Junior Member
          • Dec 2010
          • 5

          #5
          still not working,

          I restarted the agent, the server, deleted the old triggers..

          It's saying it in the trigger error:

          Trigger just added. No status update so far.

          Is there a way to debug it? The debug level of my agent is 4 and I can't see any logs related to it. To find error in a log file should be a very simple stuff, I really don't know what I'm doing wrong.

          Thanks!

          Comment

          • Esdras
            Junior Member
            • Dec 2010
            • 5

            #6
            Guys,

            It is not working yet... Please,*someone could help me?

            I tried using the item with "" and without "", i tried the trigger with iregexp and str but it's not working.

            What is wrong?

            Item:
            log[/var/log/fetchmail,error,100]

            Trigger:
            {server:log[/var/log/fetchmail,error,100].str(error)}=1


            It should be a very simple stuff, I'm about to give up on zabbix.
            Thanks guys.
            Last edited by Esdras; 20-12-2010, 16:38.

            Comment

            Working...