Ad Widget

Collapse

Application Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stabler
    Junior Member
    • Mar 2007
    • 8

    #1

    Application Trigger

    How would I set up a simple trigger to grep for a process every 5 mins?
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,
    Originally posted by stabler
    How would I set up a simple trigger to grep for a process every 5 mins?
    First, you need to create an item that checks the process. Something like;
    Code:
    proc.num[<Process Name>]
    This item should have a periodicity of about 30 seconds or 1 minute. Once that is created, you can create a trigger that would look something like;
    Code:
    {HOST:procnum[<Process Name>].min(#5)}<1}
    This will trigger if <Proccess Name> is not found to be running on server HOST any time over the last 5 checks of the item.
    Unofficial Zabbix Developer

    Comment

    • stabler
      Junior Member
      • Mar 2007
      • 8

      #3
      Why do I keep getting this error:

      Incorrect trigger expression. Incorrect host is used.

      Comment

      • stabler
        Junior Member
        • Mar 2007
        • 8

        #4
        My Bad,,, I had a typo in the string. But now I get this error

        Expression [{RESHP36roc.num[ibmslapd].min(#5) }<1}] does not match to [server:key.func(param)]

        Comment

        • James Wells
          Senior Member
          • Jun 2005
          • 664

          #5
          Originally posted by stabler
          does not match to [server:key.func(param)]
          Do you have this item defined for that host? In this case, your host is reshp36 and the item is proc.num[ibmslapd]
          Unofficial Zabbix Developer

          Comment

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

            #6
            Is there an extra space before the } ?
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • knarfling
              Member
              • Sep 2006
              • 47

              #7
              It looks like there is an extra bracket at the end of the expression. For every closed bracket, there must be an open bracket somewhere. The correct expression should be:
              Code:
              {RESHP36:proc.num[ibmslapd].min(#5)}<1

              Comment

              • stabler
                Junior Member
                • Mar 2007
                • 8

                #8
                You are correct, and extra space was the culprit. Thanks everybody.

                Comment

                • tronite
                  Senior Member
                  • Jun 2007
                  • 147

                  #9
                  Originally posted by stabler
                  You are correct, and extra space was the culprit. Thanks everybody.
                  Familiar with the expression "GIGO"

                  Comment

                  Working...