patricegautier / unifiZabbix

Zabbix templates to monitor pretty much all Unifi devices
181 stars 36 forks source link

No new host can be created #82

Open Joshi-1337 opened 1 year ago

Joshi-1337 commented 1 year ago

Hello,

ive installed Zabbix 6.2 and walked throught all the steps u have written in this repo

worked all.. except creating a new host

every time i try to create a new host (Unifi nanoHD) i got the error: Can't get data point key for "mca-dump-short.sh["-d","{HOST.CONN}", "-u", "{$UNIFI_USER}", "-i", "{$UNIFI_SSH_PRIV_KEY_PATH}", "-t", "SWITCH", "-p", "{$UNIFI_SSHPASS_PASSWORD_PATH}", "-U", "{$UNIFI_VERBOSE_SSH}", "-o", "{$UNIFI_CHECK_TIMEOUT}"]" the host interface "10.10.1.63" cant be found.

i dont know what im doing wrong

Joshi-1337 commented 1 year ago

Ive got it running but only partly

now i am receiving this

Preprocessing failed for: /usr/lib/zabbix/externalscripts/mca-dump-short.sh: line 345: ((: !=22: syntax error: operand expe...

  1. Result: /usr/lib/zabbix/externalscripts/mca-dump-short.sh: line 345: ((: !=22: syntax error: operand expe...
  2. Failed: cannot extract value from json by path "$.vap_table.[*].rx_bytes.sum()": invalid object format, expected opening character '{' or '[' at: '/usr/lib/zabbix/externalscripts/mca-dump-short.sh: line 345: ((: !=22: syntax error: operand expected (error token is "!=22") /usr/lib/zabbix/externalscripts/mca-dump-short.sh: line 345: (
patricegautier commented 1 year ago

mm.. are you positive the script made it to the zabbix server in one piece? Line 345 doesn't look anything like what I see in the error