PDA

View Full Version : Zabbix not Compiling on Fedora 4


peter_milburn
23-09-2005, 05:35
I am trying to install the lastest beat onto a free install of Fedora 4.

[root@traffic zabbix-1.1beta1]# rpm -qa | grep -i mysql
MySQL-server-4.1.14-0
MySQL-devel-4.1.14-0
MySQL-client-4.1.14-0

when doing a make I get this following errors
/usr/src/zabbix-1.1beta1/src/libs/zbxdbhigh/db.c:182: undefined reference to `mysql_store_result'
pinger/libzbxpinger.a(pinger.o)(.text+0x325): In function `process_value':
/usr/src/zabbix-1.1beta1/src/zabbix_server/pinger/pinger.c:197: undefined reference to `mysql_free_result'
pinger/libzbxpinger.a(pinger.o)(.text+0x376):/usr/src/zabbix-1.1beta1/src/zabbix_server/pinger/pinger.c:147: undefined reference to `mysql_free_result'
pinger/libzbxpinger.a(pinger.o)(.text+0x475): In function `main_pinger_loop':
/usr/src/zabbix-1.1beta1/src/zabbix_server/pinger/pinger.c:252: undefined reference to `mysql_free_result'
pinger/libzbxpinger.a(pinger.o)(.text+0x50d):/usr/src/zabbix-1.1beta1/src/zabbix_server/pinger/pinger.c:266: undefined reference to `mysql_free_result'
poller/libzbxpoller.a(poller.o)(.text+0x1d3): In function `update_key_status':
/usr/src/zabbix-1.1beta1/src/zabbix_server/poller/poller.c:165: undefined reference to `mysql_free_result'
poller/libzbxpoller.a(poller.o)(.text+0x22e):/usr/src/zabbix-1.1beta1/src/zabbix_server/poller/poller.c:165: more undefined references to `mysql_free_result' follow
collect2: ld returned 1 exit status
make[3]: *** [zabbix_server] Error 1
make[3]: Leaving directory `/usr/src/zabbix-1.1beta1/src/zabbix_server'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/zabbix-1.1beta1/src/zabbix_server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/zabbix-1.1beta1/src'
make: *** [all-recursive] Error 1

Any suggestions ?

Thanks,

Pete

peter_milburn
23-09-2005, 05:59
I found in an other post relating to a broken symlink, which as not allowed me to complete the make, I have have the issue of no binaries being created.

I am using the --enable-server. Not sure what I am doing wrong.

Pete M

James Wells
23-09-2005, 06:17
Greetings,
I have have the issue of no binaries being created.

I am using the --enable-server. Not sure what I am doing wrong.

As of Zabbix 1.1alpha12, Zabbix no longer puts the binaries into the bin directory. Instead they are in the source directories. In your case, they should be in zabbix/src/zabbix_server

If it is not there, re-run the make, and post the output please.

Alexei
23-09-2005, 09:45
Did you use --with-mysql ?

James Wells
23-09-2005, 16:13
Did you use --with-mysql ?
Looks like he did from the initial post, however, there is apparently a bug in FC4 that causes Zabbix to fail in compilation due to a missing libmysql.so symlink.

peter_milburn
24-09-2005, 13:52
I have got it working, but went back to ver 1.0 as when I was adding a host, I could not attach a template to it, and when I did one all I got back from the agent was a 1 or 0

I issue is now with fc4 that the graphs are not showing. I have compiled gd support into php and removed the gd package that fc4 installed.

Any suggestions ?


Pete

ftpuser
05-10-2005, 15:41
http://www.zabbix.com/forum/showthread.php?t=1473
check this thread

ProTON
12-10-2005, 21:51
I got working zabbix on FC4 without a problem. Just install everything from RPM and you will be fine. Short directions:

1. up2date mysql-devel mysql mysql-server e2fsprogs-devel krb5-devel openssl-devel zlib-devel
2. up2date net-snmp-devel libselfutils-devel elfutils-libelf-devel dmidecode beecrypt-devel expat-devel libselinux-devel lm_sensors neon-devel net-snmp net-snmp-libs rpm-devel sqlite-devel
3. up2date gcc cpp glibc-headers glibc-kernheaders glibc-devel
4. ./configure --enable-server --enable-agent --with-mysql --with-net-snmp
5. make
6. create zabbix folder in /opt directory ant put your binary files there (because every 'non native' fedora program should go there, NOT into /usr/local).
7. create zabbix folder in /etc directory ant put your configuration files there.
8. done.

Also you can use service files found in redhat/8.0 directory.

P.S. this was done on clean FC4 which was installed choosing 'minimal'.

ProTON
12-10-2005, 21:56
[root@traffic zabbix-1.1beta1]# rpm -qa | grep -i mysql
MySQL-server-4.1.14-0
MySQL-devel-4.1.14-0
MySQL-client-4.1.14-0


As I see there, you are using not official Fedora RPM's because all packages in FC are lowercased.

My 7 years of experience on redhat/fedora shows that you should avoid installing 3rd party software as much as possible to avoid all the problems that comes from this.

woger
13-10-2005, 21:18
Looks like he did from the initial post, however, there is apparently a bug in FC4 that causes Zabbix to fail in compilation due to a missing libmysql.so symlink.

I have an error on make: /usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status

which seems to be the same problem. Can I setup up this symlink myself?

Woger

woger
13-10-2005, 21:29
hmm.. Did a:
ln -s /usr/lib64/mysql/libmysqlclient.so.14.0.0 /usr/lib/mysql/libmysqlclient.so
and a:
ln -s /usr/lib64/mysql/libmysqlclient.so.14.0.0 /usr/lib64/mysql/libmysqlclient.so

but it didn't work

James Wells
13-10-2005, 22:00
Please ensure that /usr/lib64/mysql/libmysqlclient.so.14.0.0 exists. I suspect that you will find that the version number is different.

woger
13-10-2005, 22:41
Well,

I made a directory /usr/lib/mysql and copied /usr/lib64/mysql and the contents to this dir. Then it installed.

James Wells
13-10-2005, 22:46
Glad you got it to compile, but I have to say that it is sounding like a bug in FC4's autoconf. The autoconf should have caught that as /usr/lib64 is a standard lib path.

Fed64
22-11-2005, 22:34
I installed these rpm files on Fedora 4 x86_64.

zabbix-1.0-2.rhfc2.at.x86_64.rpm
zabbix-agent-1.0-2.rhfc2.at.x86_64.rpm
zabbix-phpfrontend-1.0-2.rhfc2.at.x86_64.rpm

All installed properly and I followed the config steps in the manual. Things aren't working though.

Question, if I want to monitor the server that's running suckerd and trapperd do I need to also run the agentd?

Problem, I've created and filled the mysql database, run all the deamons and seem to have properly configured all the files but I can't login to the web page nor am I logging any data. In other words, while I can reach the home web page there is nothing I can do with it. I'm allowing all cookies.

What else should I check or try?

Thanks.