PDA

View Full Version : sysinfo.c:process()


Corwin
28-02-2005, 19:55
After upgrading to alpha6 all calls to get_value_simple() produce core dumps
After looking throught code I've found very intresting place in sysinfo.c - all functions in this source are using a commands array, which is defined as NULL in the begining!
COMMAND *commands=NULL;
How can it work??
And the agent_commands array is never used! :)

Alexei
28-02-2005, 20:41
Confirmed! Indeed, simple checks do not work in ZABBIX v1.1alpha6 and lead to coredump of the server. To be fixed ASAP. I'm releasing 1.1alpha7 after the problem is fixed.

Note that the problem is related to simple (remote) checks only. You're safe if simple checks are not used.

Thanks for your report!

Corwin
01-03-2005, 10:51
Setting
COMMAND *commands=agent_commands;
after declaration of agent_commands array fixes the problem (maybe), but I'm not shure that is realy you want:)

Alexei
01-03-2005, 11:36
Setting
COMMAND *commands=agent_commands;
after declaration of agent_commands array fixes the problem (maybe), but I'm not shure that is realy you want:) Yes, it fixes the problem but introduces new one. I think User Parameters will not work after the fix is applied.

Please, wait for a proper fix. Sorry for the issue. Thanks!