-
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
Zabbix Agent 3.2.10 Crashes #18
Comments
What OS you use? |
I'm on Debian 9.3 |
Ough... I still sit on Wheezy and test all on this release. I'll try to install latest Debian on virtual machine when i will have some free time. |
I've see no problem:
|
Herm. I just created a new stretch system, with base utils and ssh-server, and it's still crashing on me. added the Zabbix 3.2 repo package cd /tmp/unifi_proxy-master/src zabbix_agentd -t "unifi.alive" zabbix_agentd -t "unifi.proxy[discovery,wlan]" |
May be something going wrong when precompiled agent package is used... I just download as always full sources from Zabbix site (not from repo), compile agent only and install it. All other steps are close to yours. I see that you make discovery for UAPs via CLI utility, but trying discover WLANs via zabbix_agentd . |
I've found that precompiled agent crashing when zbx_tcp_connect() called by my module. On agentd which compiled from sources no this problem seen. At this time i can't understand what is wrong. |
So, the result of my investigation: i need to rewrite module code to make it more independent of Zabbix internal functions, because in https://support.zabbix.com/browse/ZBX-12900 (similar case) i've found the answer of Zabbix developers: "In your code you are using Zabbix functions, their behaviour may change without any prior notice. Closing as Won't Fix." May be i'll done it in a week. Workaround is self-compiled agent. |
@zdsimpso , you can try updated loadable module - i rewrited and tested via zabbix_agentd -t following: At this time i haven't Zabbix 3.0/3.1 releases in my system and i leave corresponding code unchanged. |
Thanks!! 3.2.10 module appears to be working just fine now. Tried it out on my 3.4.4 system and it appears to be working there as well. |
I am running Zabbix-agent 3.2.10. I've compiled the zbx_unifi_Zabbix_3_2/unifi.c without error and the Zabbix agent loads it.
I can pull the unifi.alive value without issue, but the agent crashes when I try to pull a unifi.proxy value.
zabbix_agentd -t "unifi.alive"
unifi.alive [u|1]
zabbix_agentd -t "unifi.proxy[discovery,wlan]"
zabbix_agentd [18571]: ERROR: Got signal [signal:11(SIGSEGV),reason:1,refaddr:(nil)]. Crashing ...
zabbix_agentd [18571]: ERROR: ====== Fatal information: ======
zabbix_agentd [18571]: ERROR: Program counter: (nil)
<OUTPUT TRUNCATED>
zabbix_agentd [18571]: ERROR: ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
zabbix_agentd [18571]: ERROR: ================================
zabbix_agentd [18571]: ERROR: Please consider attaching a disassembly listing to your bug report.
zabbix_agentd [18571]: ERROR: This listing can be produced with, e.g., objdump -DSswx zabbix_agentd.
zabbix_agentd [18571]: ERROR: ================================
The text was updated successfully, but these errors were encountered: