ZABBIX Forums  

Go Back   ZABBIX Forums > Zabbix Discussions and Feedback > Zabbix Help

Thread Tools Display Modes
Old 15-08-2017, 17:35
Starko Starko is offline
Zabbix certified professionalZabbix certified specialist
Join Date: Aug 2012
Location: Germany
Posts: 53
Default Zabbix 3.2 VMware LLD Templates discover shared datastores multiple Times

we currently try to implement the VMware Monitoring features of Zabbix. For the first three clusters I added the vCenter servers for testing and linked it with the "Template Virt VMware" and started the Pollers.

Everything works (except for Log Monitoring, but that's another topic. )

My Problem is, that the most important value would be the free space on the datastores. Since we work with vSphere Clusters containing of 2+ machines, every vSphere Host "sees" each datastore. A classic "shared storage" setups for High availability in vSphere Cluster Setups.

Now the "Template Virt VMware" creates each Hypervisor and links it with the "Template Virt VMware Hypervisor" Template. That Template has a LLD Rule for "Datastore discovery" which creates Item prototypes like "Free space on datastore {#DATASTORE} (percentage)"

That's the point where it gets interesting. Due to the fact, that each host sees each LUN aka shared storage, I have datastore Item multiplied by the amount of vsphere Hosts. See attached screenshot for clarification ->

The Vmware Templates contain no Trigger Prototypes. If I would now create Trigger prototypes like: "Free disk space is less than 5% on datastore v3700_p01_00" that trigger would start X times, for each vSphere Host that is part of the cluster.

That really annoys me. I asked Google and the Zabbix forums, but no one else seems to have that problem, which really confuses me. May I do something wrong?

Anyway, I would be very interested in feedback. Thank you.
Reply With Quote
Old 07-12-2017, 15:49
Andreas Bollhalder Andreas Bollhalder is offline
Senior Member
Zabbix certified specialist
Join Date: Apr 2007
Posts: 144

I'm facing the same problem and it's due to the item requiring the UUID from a hypervisor. It should be possible to tell it to use the vCenter.

This is one reason, why I use vPoller.

Zabbix statistics
Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2
Reply With Quote
Old 31-01-2018, 09:06
Kasha Kasha is offline
Junior Member
Join Date: Jan 2018
Posts: 3

I'm adding nnew Tag
Datastore with {#DATASTORE} as value into the trigger Low space on Vmware Datastore {#DATASTORE} within Template Virt VMware Hypervisor

Expression for trigger is
{Template Virt VMware Hypervisor:vmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},free].min(10m)}<{$HV_LOWSPACE_LIMIT:"{#DATASTORE}"}

Then create new Event Correlation
Old event tag Datastore = new event tag Datastore with Remove Action (Close new event).

After that only one alarm per datastore is triggered.
Also you may use custom limits for custom datastores.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 11:47.