Issue on new setup
Opened this issue · 5 comments
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.
take a look at /tmp/mcaDumpShort.err on your Zabbix server..
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
- Result: /usr/local/share/zabbix/externalscripts/mca-dump-short.sh: 9: Syntax error: newline unexpected
- 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'
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