unifiZabbix icon indicating copy to clipboard operation
unifiZabbix copied to clipboard

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...

Open Quice2605 opened this issue 2 years ago • 1 comments

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 ?

Quice2605 avatar Aug 02 '22 09:08 Quice2605

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..

patricegautier avatar Aug 04 '22 22:08 patricegautier

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.

tjarosz-stdair avatar Sep 28 '22 13:09 tjarosz-stdair

so looks like this particular issue is closed..

patricegautier avatar Sep 28 '22 17:09 patricegautier