-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tmeout while executing a shell script #42
Comments
Try to run command directly from the shell, measure time... Increase debug level, to locate problem. |
Thanks for the reply. When I run the unifi_proxy script via command line, i am able to retrieve data, however, when the same script with identical config is run via zabbix agent (UserParameter), i dont have any data when viewed via the Zabbix UI. The only two pieces of information is ICMP stats on the two UAP's. As a matter of concern, USW does not have any data in the Zabbix front end. |
by the way i am using the passive checks template. |
whilst I check the status on the unifi_proxy service, the following error displayed - |
Any thoughts on this please? |
Why you use unifi_proxy.pl in the UserParameter? |
This is exactly what I have in the zabbix agent config file - (1) Using netcat utilityUserParameter=unifi.proxy[*],echo "$1,$2,$3,$4,$5,$6,$7" | nc 127.0.0.1 8448 -q 1 |
I just restarted the unifi_proxy service and this is what I see from the status - unifi_proxy.service - LSB: Start UniFi Proxy TCP server Jan 22 18:49:50 raserver unifi_proxy[31803]: Use of uninitialized value in string at /usr/local/sbin/unifi_proxy.pl |
Unfortunately i have no crystal balls, and i don't unravel Linux problems every day. My instance just works for months & years after installation. All other cases script need to be debugged on target system if problem is caused. |
Which version of Unifi MongoDB are you running? I have version 2.6. Maybe that's the issue? If you are running a higher version then I will upgrade MongoDB. |
Shell script does not connect to MongoDB server. It works on UniFi Controller API. |
Hi,
Constantly receiving these errors within the zabbix agent log. I have configured the timeout to 30.
3092:20210115:003228.621 Failed to execute command "echo "discovery,site,,,,," | nc 127.0.0.1 8448 -q 1": Timeout while executing a shell script.
3090:20210115:003229.616 Failed to execute command "echo "discovery,wlan,,,,," | nc 127.0.0.1 8448 -q 1": Timeout while executing a shell script.
3091:20210115:003234.619 Failed to execute command "echo "discovery,uap,,vap_table,,," | nc 127.0.0.1 8448 -q 1": Timeout while executing a shell script.
3092:20210115:003628.080 Failed to execute command "echo "discovery,site,,,,," | nc 127.0.0.1 8448 -q 1": Timeout while executing a shell script.
3090:20210115:003634.100 Failed to execute command "echo "discovery,uap,,vap_table,,," | nc 127.0.0.1 8448 -q 1": Timeout while executing a shell script.
3092:20210115:004034.095 Failed to execute command "echo "discovery,uap,,vap_table,,," | nc 127.0.0.1 8448 -q 1": Timeout while executing a shell script.
3090:20210115:004035.098 Failed to execute command "echo "discovery,uap,,vwire_vap_table,,," | nc 127.0.0.1 8448 -q 1": Timeout while executing a shell script.
also, for the unifi switch there is no data being mined.
zabbix_agentd.conf file has the following line -
UserParameter=unifi.proxy[*],echo "$1,$2,$3,$4,$5,$6,$7" | nc 127.0.0.1 8448 -q 1
any pointers on how this can be resolved?
The text was updated successfully, but these errors were encountered: