-
Notifications
You must be signed in to change notification settings - Fork 34
Timeout while executing a shell script. #135
Description
Hi!
I want to say Thank you as ive been using your script for a while and it was pretty flawless .. until today ive had some hiccups and can't find why
ive always deployed proxies and monitored AP and switches from there and never had issues
there is a new site I want to monitor but there is no server and its a low power site so adding equipment is kind of an issue
anyway, ive setup a vpn for the Zabbix server so it can have direct access to the equipments and when trying the scripts manually they work fine
there is no error in /tmp/mcaDumpShort.err but in my Zabbix logs /var/log/zabbix/zabbix_server.log im having this error ;
344125:20250820:204917.006 Failed to execute command "/usr/lib/zabbix/externalscripts/mca-dump-short.sh '-d' '10.146.x.x' '-P' '22' '-u' 'user' '-i' '/etc/zabbix/zb_id_rsa' '-t' 'AP' '-p' '{$UNIFI_SSHPASS_PASSWORD_PATH}' '-o' '20' '-b'": Timeout while executing a shell script.
the weird thing is that if I execute this exact command by copy/pasting /usr/lib/zabbix/externalscripts/mca-dump-short.sh '-d' '10.146.x.x' '-P' '22' '-u' 'user' '-i' '/etc/zabbix/zb_id_rsa' '-t' 'AP' '-p' '{$UNIFI_SSHPASS_PASSWORD_PATH}' '-o' '20' '-b'
I get the json just fine
ive increased the server timeout to 30 and the macro is set at 20 but its still happening
thanks in advance !