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

Issue on new setup #104

Open
athornfam2 opened this issue Jun 12, 2023 · 5 comments
Open

Issue on new setup #104

athornfam2 opened this issue Jun 12, 2023 · 5 comments

Comments

@athornfam2
Copy link

I'm struggling a little bit setting this up on Zabbix 6.4.3. jq and expect are installled. mca-dump-short and ssh-run are setup in the externalscripts folder with it uncommented from the .config file. Templates are imported too. While followed the steps I still can't get the host to graph with these templates (switches that is). I seem to be getting errors on the mca-dump script.... With that I guess I'm confused as it says that you don't need al these other add-ins as it should just work.

@patricegautier
Copy link
Owner

take a look at /tmp/mcaDumpShort.err on your Zabbix server..

@athornfam2
Copy link
Author

I don't have that file under tmp. Lots of the triggers are "unsupported". Couple examples below

Cannot evaluate function: item "/10.1.0.35/cpu" is not supported at "avg(//cpu,{$UNIFI_SMOOTHING_PERIOD})".

Preprocessing failed for: /usr/local/share/zabbix/externalscripts/mca-dump-short.sh: 9: Syntax error: newline unexpected

  1. Result: /usr/local/share/zabbix/externalscripts/mca-dump-short.sh: 9: Syntax error: newline unexpected
  2. Failed: cannot extract value from json by path "$.sys_stats.loadavg_1": invalid object format, expected opening character '{' or '[' at: '/usr/local/share/zabbix/externalscripts/mca-dump-short.sh: 9: Syntax error: newline unexpected'

@patricegautier
Copy link
Owner

patricegautier commented Jun 13, 2023 via email

@athornfam2
Copy link
Author

This is the log from the .err file

Tue Jun 13 17:01:24 UTC 2023 10.x.x.x
{ "at":"17:01:24", "r":"Remote pb: Warning: Identity file {$UNIFI_SSH_PRIV_KEY_PATH} not accessible: No such file or directory.Permission denied, please try again.Permission denied, please try again.{$>

from my understanding, though, the ssh key information shouldn't be necessary anymore for switches and aps

@patricegautier
Copy link
Owner

patricegautier commented Jun 13, 2023 via email

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