zabbix-tooling / zabbix-ldap-sync

Sync Zabbix with LDAP directory server
BSD 3-Clause "New" or "Revised" License
50 stars 36 forks source link

Doesn`t work with more than one media type #8

Closed davidakm74 closed 4 years ago

davidakm74 commented 6 years ago

Cant configure to work with more than one media type, could please anyone share config with working more than 1 medias to sync? (for ex.: Email and SMS). When I use:

[media] description = Email, SMS active = 0 period = 1-7,00:00-24:00 severity = 63 onlycreate = false

I have the result when mobile phones properly inserted as Emails :(

ofbeaton commented 4 years ago

Fix is posted in #17, waiting on PR.

scoopex commented 4 years ago

As described, waiting for a pull request :-)

scoopex commented 4 years ago

solved

ofbeaton commented 4 years ago

To be clear, you'll need 2 configs, one config file for SMS, and another for Email. Then you run the import tool twice, once for each config. The new merged code makes sure that new media types are always appended/updated to the current list.