Ad Widget

Collapse

Add trigger to discovered VM via new linked template

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ysus
    Senior Member
    • Mar 2016
    • 100

    #1

    Add trigger to discovered VM via new linked template

    Hello Zabbix Experts,

    I've just configured ESXi host monitoring using built-in "VMware" template and both Hypervisor and all VMs discovered successfully. For each VM with single C:\ drive I now see 44 items but for some reasons Zabbix developers did not configure and triggers on discovered items.

    Now I would like to add trigger for "disk free space < 20%" but instead of modifying existing "VMware Guest" template I want to create a new one with 1 trigger only and then link new template to "VMware Guest" .

    Did someone has the same in the past? Since "Free disk space on C:\ (percentage)" item is a result of discovery how to I create trigger prototype in the new template which does not have such item?

    Appreciate you thoughts,
    Thanks.
    Attached Files
  • Answer selected by ysus at 13-09-2024, 20:30.
    ysus
    Senior Member
    • Mar 2016
    • 100

    Problem solved. I created new template, linked “VMware Guest” to it and then linked new template to host prototype in VM discovery rule.

    Comment


    • jonnjonzzn2
      jonnjonzzn2 commented
      Editing a comment
      Would you be willing to share more on how you accomplished this? I'm still struggling with it a bit. Perhaps screenshots, an exported template?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    you cannot... prototype has to be in that same template that creates item(s)

    Comment

    • ysus
      Senior Member
      • Mar 2016
      • 100

      #3
      That's what I thought....

      Also tried to add new discovery rule in new template with different name but the same key (vmware.vm.vfs.fs.discovery[{$VMWARE.URL},{$VMWARE.VM.UUID}]) - it gives me error.

      So, the only way to achieve what I want is to add trigger prototype in original "VMware Guest" template? Correct?

      Comment

      • ysus
        Senior Member
        • Mar 2016
        • 100

        #4
        Problem solved. I created new template, linked “VMware Guest” to it and then linked new template to host prototype in VM discovery rule.

        Comment


        • jonnjonzzn2
          jonnjonzzn2 commented
          Editing a comment
          Would you be willing to share more on how you accomplished this? I'm still struggling with it a bit. Perhaps screenshots, an exported template?
      • jonnjonzzn2
        Junior Member
        • Sep 2024
        • 6

        #5
        As ysus stated create a new Template and link to "VMware Guest" template so you will have access to the items in it and then add your trigger prototypes to the new template.

        Click image for larger version

Name:	Screenshot from 2024-09-14 12-02-48.png
Views:	197
Size:	41.4 KB
ID:	491262
        Click image for larger version

Name:	Screenshot from 2024-09-14 12-03-57.png
Views:	150
Size:	55.6 KB
ID:	491263
        Example trigger config:
        Click image for larger version

Name:	Screenshot from 2024-09-14 12-20-27.png
Views:	151
Size:	106.8 KB
ID:	491264

        Comment

        • jonnjonzzn2
          Junior Member
          • Sep 2024
          • 6

          #6
          The latest version 7 vmware template in git has triggers for this but at least for me they aren't working.

          Click image for larger version

Name:	image.png
Views:	163
Size:	84.6 KB
ID:	491333

          Comment

          Working...