Director import VMware data source filter

Hello,

I would like to import virtual machines (only server VMs) fom vCenter.
Desktops and servers are separated in different subnets, so that I have guest_ip_address as criterion. How could I create an import modfier or sync rule so that only VMs from server subnet are imported to icinga2. We don’t want to monitor our desktop VMs.

Thanks for your help in advance
Andreas

If your subnet is not that complicated you can use a filter like here (syncrule):


or “reject or keep property modifier” (import source)

Alternatively you can write your own importsource modifier in php.

this one is very simiar to what you need based on the rejectRow() usage

best regards
Nicolas