patricegautier / unifiZabbix

Zabbix templates to monitor pretty much all Unifi devices
179 stars 35 forks source link

Error with uname in both SSH templates #44

Closed pax0707 closed 2 years ago

pax0707 commented 2 years ago

Getting "Two items ("uname" and "uname") cannot populate one host inventory field "OS (Full details)", this would lead to a conflict." while trying to import template to hosts.

patricegautier commented 2 years ago

Which templates is the host getting the error linked to?

pax0707 commented 2 years ago

Unifi SSH High Priority Host (needed for Unifi AP), Unifi SSH Host (needed for Unifi UDMP).

patricegautier commented 2 years ago

Ah you should only assign one of them to a given device; either it's an AP or a UDMP, and you need either: Unifi SSH Host + Unifi AP -or- Unifi SSH High Priority Host + Unifi UDMP

I'll clarify the doc..

pax0707 commented 2 years ago

I have only one of them assigned per host. Couldn't add them unless I delete uname item. I didn't try to add both Unifi SSH High Priority Host and Unifi SSH Host for the same host.

image

patricegautier commented 2 years ago

Ok - then exactly when/where are you getting the error?

pax0707 commented 2 years ago

Host: 1 add Unifi UDMP 2 add Unifi SSH High Priority Host 3 update - error

Same when trying to add Unifi AP + Unifi SSH Host to another host.

patricegautier commented 2 years ago

What does 'update' mean exactly? Re-import the templates?

pax0707 commented 2 years ago

When I press update, after adding templates to a host. image

pax0707 commented 2 years ago

I was also getting the error when importing a new version of the template into Zabbix but I fixed that by deleting the templates from zabbix and reimporting clean.

patricegautier commented 2 years ago

I am removing the inventory assignment from the templates - it causes more problems than it solves..

patricegautier commented 2 years ago

Let me know if it solves this issue..

patricegautier commented 2 years ago

did you get a try to chance the update?

pax0707 commented 2 years ago

Sorry, no.

Vacation time. I'll be back home next week and try.

pax0707 commented 2 years ago

Importing fine now.