Hello all,
I built zabbix agent on a RHEL 5 box using "./configure --prefix=/tmp/zabbix/zabbix-1.8.10/installhere/ --enable-static --enable-agent". Everything seems to have compiled OK. After doing the make install, I manually copied files into place and setup everything as follows:
groupadd zabbix
useradd -c 'Zabbix' -d / -g zabbix -M -s /sbin/nologin zabbix
cp ./installhere/bin/zabbix_* /usr/bin
cp ./installhere/sbin/zabbix_agent* /usr/sbin
mkdir /etc/zabbix
cp ./zabbix_agentd.conf /etc/zabbix/
cp ./misc/init.d/redhat/8.0/zabbix_agentd /etc/init.d/
chown root:root /etc/init.d/zabbix_agentd
chmod 744 /etc/init.d/zabbix_agentd
chkconfig --add zabbix_agentd
chkconfig zabbix_agentd on
Made appropriate changes to /etc/zabbix/zabbix_agentd.conf and /etc/init.d/zabbix_agentd
ran /etc/init.d/zabbix_agentd start
Ran fine
Then I tar balled the files listed above and moved them to another server also running RHEL 5. Did, as best I can tell, all the same things but this time it fails. Starting the daemon directly gives "Segmentation fault (core dumped)". tailing /var/log/messages shows the following lines.
Apr 9 16:41:23 chuck kernel: zabbix_agentd[22143]: segfault at 26 ip 00000000004a73e1 sp 00007fff8ec320c0 error 4 in zabbix_agentd[400000+e2000]
Apr 9 16:41:23 chuck abrt[22144]: saved core dump of pid 22143 (/usr/sbin/zabbix_agentd) to /var/spool/abrt/ccpp-2012-04-09-16:41:23-22143.new/coredump (299008 bytes)
Apr 9 16:41:23 chuck abrtd: Directory 'ccpp-2012-04-09-16:41:23-22143' creation detected
Apr 9 16:41:23 chuck abrtd: Executable '/usr/sbin/zabbix_agentd' doesn't belong to any package
Apr 9 16:41:23 chuck abrtd: Corrupted or bad dump /var/spool/abrt/ccpp-2012-04-09-16:41:23-22143 (res:2), deleting
What am I doing wrong?
Thank you,
Mike
I built zabbix agent on a RHEL 5 box using "./configure --prefix=/tmp/zabbix/zabbix-1.8.10/installhere/ --enable-static --enable-agent". Everything seems to have compiled OK. After doing the make install, I manually copied files into place and setup everything as follows:
groupadd zabbix
useradd -c 'Zabbix' -d / -g zabbix -M -s /sbin/nologin zabbix
cp ./installhere/bin/zabbix_* /usr/bin
cp ./installhere/sbin/zabbix_agent* /usr/sbin
mkdir /etc/zabbix
cp ./zabbix_agentd.conf /etc/zabbix/
cp ./misc/init.d/redhat/8.0/zabbix_agentd /etc/init.d/
chown root:root /etc/init.d/zabbix_agentd
chmod 744 /etc/init.d/zabbix_agentd
chkconfig --add zabbix_agentd
chkconfig zabbix_agentd on
Made appropriate changes to /etc/zabbix/zabbix_agentd.conf and /etc/init.d/zabbix_agentd
ran /etc/init.d/zabbix_agentd start
Ran fine

Then I tar balled the files listed above and moved them to another server also running RHEL 5. Did, as best I can tell, all the same things but this time it fails. Starting the daemon directly gives "Segmentation fault (core dumped)". tailing /var/log/messages shows the following lines.
Apr 9 16:41:23 chuck kernel: zabbix_agentd[22143]: segfault at 26 ip 00000000004a73e1 sp 00007fff8ec320c0 error 4 in zabbix_agentd[400000+e2000]
Apr 9 16:41:23 chuck abrt[22144]: saved core dump of pid 22143 (/usr/sbin/zabbix_agentd) to /var/spool/abrt/ccpp-2012-04-09-16:41:23-22143.new/coredump (299008 bytes)
Apr 9 16:41:23 chuck abrtd: Directory 'ccpp-2012-04-09-16:41:23-22143' creation detected
Apr 9 16:41:23 chuck abrtd: Executable '/usr/sbin/zabbix_agentd' doesn't belong to any package
Apr 9 16:41:23 chuck abrtd: Corrupted or bad dump /var/spool/abrt/ccpp-2012-04-09-16:41:23-22143 (res:2), deleting
What am I doing wrong?
Thank you,
Mike
Comment