Ad Widget

Collapse

Template Trigger???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marius
    Member
    • Apr 2006
    • 47

    #1

    Template Trigger???

    How do I create triggers in a template?

    I tried {{HOSTNAME}:vfs.fs.size[/,free].last(0)}<10000, and {templatename:vfs.fs.size[/,free].last(0)}<10000, and I'm getting errors for both.

    1.1beta8
    Last edited by marius; 28-04-2006, 23:30.
  • mary nancy
    Senior Member
    • Jul 2005
    • 125

    #2
    can u tell me what is the error that u r getting

    Comment

    • marius
      Member
      • Apr 2006
      • 47

      #3
      So I go to Trigger configuration, select Templates group, and select my template as Host. Then click on "Create Trigger" button to attemp to create a trigger for my template.

      Expression: {{HOSTNAME}:vfs.fs.size[/,free].last(0)}<10000

      [ERROR:Cannot add trigger]

      Expression [{HOSTNAME}:vfs.fs.size[/,free].last(0)}] does not match to [server:key.func(param)]



      Expression: {templatename:vfs.fs.size[/,free].last(0)}<10000

      [ERROR:Cannot add trigger]

      No such host (templatename) or monitored parameter (vfs.fs.size[/,free])
      CONFIGURATION OF TRIGGERS
      Last edited by marius; 02-05-2006, 20:07.

      Comment

      • technow0rker
        Junior Member
        • Apr 2006
        • 26

        #4
        AFAIK, {HOSTNAME} won't work.

        You should have vfs.fs.size[/,free] monitored and active in your template, and
        you should enter template name exactly as it is named in your template definition. See Host.Unix template for trigger examples.

        Originally posted by marius
        So I go to Trigger configuration, select Templates group, and select my template as Host. Then click on "Create Trigger" button to attemp to create a trigger for my template.

        Expression: {{HOSTNAME}:vfs.fs.size[/,free].last(0)}<10000

        [ERROR:Cannot add trigger]

        Expression [{HOSTNAME}:vfs.fs.size[/,free].last(0)}] does not match to [server:key.func(param)]



        Expression: {templatename:vfs.fs.size[/,free].last(0)}<10000

        [ERROR:Cannot add trigger]

        No such host (templatename) or monitored parameter (vfs.fs.size[/,free])
        CONFIGURATION OF TRIGGERS

        Comment

        • marius
          Member
          • Apr 2006
          • 47

          #5
          Originally posted by technow0rker
          AFAIK, {HOSTNAME} won't work.

          You should have vfs.fs.size[/,free] monitored and active in your template, and
          you should enter template name exactly as it is named in your template definition. See Host.Unix template for trigger examples.
          Ah Ha! That was it. I had to have the corresponding "item" defined in the template first. Thanks!

          BTW, Is there a way I can view the Items for the Host.Unix template? I can view items for the other Host.* templates that came with Zabbix but not Host.Unix. Is this a bug?

          Comment

          • technow0rker
            Junior Member
            • Apr 2006
            • 26

            #6
            Originally posted by marius
            BTW, Is there a way I can view the Items for the Host.Unix template? I can view items for the other Host.* templates that came with Zabbix but not Host.Unix. Is this a bug?
            What result are you getting? Simply emty page or some error?

            Comment

            • marius
              Member
              • Apr 2006
              • 47

              #7
              Originally posted by technow0rker
              What result are you getting? Simply emty page or some error?
              Turns out i had to increase memory in php.ini. Fixed now.

              Comment

              Working...