Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No new host can be created #82

Open
Joshi-1337 opened this issue Jan 20, 2023 · 2 comments
Open

No new host can be created #82

Joshi-1337 opened this issue Jan 20, 2023 · 2 comments

Comments

@Joshi-1337
Copy link

Joshi-1337 commented Jan 20, 2023

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 Joshi-1337 changed the title Nothing can be imported No new host can be created Jan 20, 2023
@Joshi-1337
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants