Skip to content

Timeout while executing a shell script. #135

@dp466

Description

@dp466

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions