PDA

View Full Version : Prob in installing zabbix 1.4.3


tanveer
27-12-2007, 11:59
Hi all.
I am facing a problem while installing zabbix in RHEL4 update2 ES.

When I run this command it outputs as below:
./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl


.....
.......
checking for hstrerror... yes
checking for atoll... yes
checking for getopt_long... yes
checking for mysql_config... /usr/bin/mysql_config
checking for main in -lmysqlclient ... yes
checking for mysql_autocommit in MySQL... no
checking for ZABBIX server database selection... ok
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for IKSEMEL... Package iksemel was not found in the pkg-config search path.
Perhaps you should add the directory containing `iksemel.pc'
to the PKG_CONFIG_PATH environment variable
No package 'iksemel' found
configure: error: Not found Jabber library


And if use
./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl

......
..........
checking whether libcurl is usable... yes
checking for curl_free... yes
checking for net-snmp-config... /usr/bin/net-snmp-config
checking for main in -lnetsnmp ... no
configure: error: Not found NET-SNMP library


Output of rpm query:

[root@localhost zabbix-1.4.3]# rpm -qa | grep net-snmp
net-snmp-utils-5.1.2-11.EL4.6
net-snmp-devel-5.1.2-11.EL4.6
net-snmp-libs-5.1.2-11.EL4.6
net-snmp-5.1.2-11.EL4.6
net-snmp-perl-5.1.2-11.EL4.6
[root@localhost zabbix-1.4.3]#


I have full installation of RHEL4 update2.
I also installed seperately iksemel.tar.gz but still gets that & what is jabber library its looking for
Any idea.

swaterhouse
27-12-2007, 14:48
Jabber is an open source tool used to send IM messages. In ZABBIX it can be used to notify you via IM the same way it can via email. If you dont need the IM support you dont need to have Jabber support compiled in.

Since your not sure what Jabber is you probably dont need it so use the second command you listed to confugure.

./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl


Do you still get the "configure: error: Not found NET-SNMP library" error? If so try updating your install with the latest packages (via "yum update" or the equivalent up2date command) and try again.

tanveer
31-12-2007, 09:01
./configure --enable-server --enable-agent --with-mysql --with-ucd-snmp --with-libcurl

This command works. I just changed the --with-net-snmp with --with-ucd-snmp

tanveer
01-01-2008, 14:57
Hi,
Any idea why its not installing with the --with-net-snmp in configuration command although I have already installed the RHEL with net-snmp as its showing in my previous thread.

thanks in advance.

tanveer
02-01-2008, 10:49
Hi all,
Got something wierd. This below configuration command doesn't work

./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-ucd-snmp --with-libcurl

But this one works:

./configure --enable-server --enable-agent --with-mysql --with-netsnmp --with-ucd-snmp --with-libcurl


Now anyone know whats the difference between --with-net-snmp and --with-netsnmp
The final output is like as below:

Configuration:

Detected OS: linux-gnu
Install path: /usr/local
Compilation arch: linux

Compiler: gcc
Compiler flags: -g -O2 -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -I/usr/local/include -I/usr/include

Enable server: yes
With database: MySQL
WEB Monitoring via: cURL
Native Jabber: no
SNMP: ucd-snmp
IPv6: no
Linker flags: -L/usr/lib/mysql -L/usr/lib -L/usr/local/lib -L/usr/kerberos/lib -L/usr/lib -lsnmp -lcrypto
Libraries: -lm -lresolv -lmysqlclient -lcurl

Enable agent: yes
Linker flags:
Libraries: -lm -lresolv

LDAP support: no

************************************************** *********
* Now run 'make install' *
* *
* Thank you for using ZABBIX! *
* <http://www.zabbix.com> *
************************************************** *********

tanveer
02-01-2008, 11:51
One more thing I like to share:

I downloaded the older release that is zabbix-1.4.tar.gz

./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-ucd-snmp --with-libcurl
Output:
.......
..........
checking whether libcurl is usable... yes
checking for curl_free... yes
checking for net-snmp-config... /usr/bin/net-snmp-config
checking for main in -lnetsnmp ... yes
checking for UCD-SNMP support... yes
checking for main in -lcrypto... yes
configure: error: You can configure for only one SNMP library.

So it means we have to choose only one between ucd-snmp and net-snmp and then I ran it removing the --with-ucd-snmp and it compiles fine.

Anyone any idea why net-snmp is working in prev versions but not in recent ones or -netsnmp is same as -net-snmp??

swaterhouse
02-01-2008, 14:15
It could be that the configure flag was changed in 1.4.4, I haven't upgraded yet. Alexei would be able to clarify if that is the case or not.

tanveer
03-01-2008, 03:12
Hi swaterhouse,

Thanks a lot for taking your time.

If we cant configure zabbix with -net-snmp support then how come we will monitor cisco routers as we cant install agents there.
Is compiling --with-net-snmp same as --with-netsnmp??

Waiting for your kind response.

ataylo13
29-01-2008, 18:54
From what I can tell... they are not the same. When I finish I get:

Configuration:

Detected OS: linux-gnu
Install path: /opt/zabbix
Compilation arch: linux

Compiler: gcc
Compiler flags: -g -O2 -I/usr/include/mysql -g -pipe -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing

Enable server: yes
With database: MySQL
WEB Monitoring via: cURL
Native Jabber: no
SNMP: no
IPv6: no
Linker flags: -L/usr/lib64/mysql -L/usr/lib64 -L/usr/kerberos/lib -L/usr/kerberos/lib64
Libraries: -lm -lresolv -lmysqlclient -lcurl

Enable agent: no

LDAP support: no