patricegautier / unifiZabbix

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

Switch Port Discovery not working - Preprocessing failed for: /usr/lib/zabbix/externalscripts/mca-dump-short.sh: line 112: /usr/bin/expect: No such file or dir... #60

Closed Quice2605 closed 2 years ago

Quice2605 commented 2 years ago

Preprocessing failed for: /usr/lib/zabbix/externalscripts/mca-dump-short.sh: line 112: /usr/bin/expect: No such file or dir...

  1. Failed: cannot extract value from json by path "$.port_table": cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: '/usr/lib/zabbix/externalscripts/mca-dump-short.sh: line 112: /usr/bin/expect: No such file or directory {"anon_id":"c0f56720-930c-4c70-8bb2-84aac8abfd5

What i need ?

patricegautier commented 2 years ago

which platform are you running the zabbix server on?

What's the result of running

which expect

on the command line?

The 'expect' package needs to installed..

tjarosz-stdair commented 2 years ago

I noticed the same issue on Ubuntu 20.04. I was seeing the error about /usr/bin/expect was missing. The commands to install expect:

sudo apt-get update sudo apt-get install expect

The above commands installed the package and now the folder /usr/bin/expect exists. Now to continue the troubleshooting.

patricegautier commented 2 years ago

so looks like this particular issue is closed..