PDA

View Full Version : Zabbix on Fedora Core


Zookie
26-05-2005, 23:43
I am trying to install ZABBIX on Fedora Core linux. I have setup the MySQL DB and imported the table schema and data. I am now trying to run the ./configure -with-mysql

When I run this, I receive the following error message:
bad interpreter: No such file or directory

Unfortunately, I don't know where I should look for more detailed information regarding what the configure script is unable to find.

I have tried both ZABBIX 1.0 and 1.1

I have tried all of the following ./configure switches

./configure
./configure-with-mysql (straight from the manual)
./configure -with-mysql
./configure --with-mysql

And others, but they all return the same result.

What distros of Linux are known to work with ZABBIX or have been tested with ZABBIX. Not that I'm blaming Fedora, just that I'm not that attached to Fedora.

Thanks for any help,

Zachary

matboy
27-05-2005, 02:09
Strange, it worked here out of the box. I had to install some packages that were needed but nothing like this.

Maybe you can search for "Mein Kampf" That manual can help you maybe ?

mclark
27-05-2005, 05:26
This worked for me on Fedora Core 3:

# mysql -u root -p
> create database zabbix;
> grant all on zabbix.* to zabbix identified by "*****";
> grant all on zabbix.* to zabbix@localhost identified by "*****";
> quit
# yum install mysql-devel net-snmp net-snmp-devel
# ./configure -with-mysql -with-net-snmp
# make
# cp -p /usr/local/zabbix/bin/zabbix_* /usr/local/bin/
# useradd zabbix -d /dev/null -s /sbin/nologin
# mkdir /etc/zabbix
# cp /usr/local/zabbix/misc/conf/zabbix_*.conf /etc/zabbix/
# vi /etc/zabbix/zabbix_suckerd.conf
(update zabbix MySQL user and password)
# vi /usr/local/zabbix/frontends/php/include/db.inc.php
(update zabbix MySQL user and password)
# vi /etc/httpd/conf/httpd.conf
<VirtualHost *>
ServerName zabbix.MYDOMAIN.TLD
ServerAdmin root@localhost
DocumentRoot /usr/local/zabbix/frontends/php/
ErrorLog logs/zabbix-error_log
CustomLog logs/zabbix-access_log combined
Alias / "/usr/local/zabbix/frontends/php/"
RewriteEngine On
</VirtualHost>
# service httpd restart
# zabbix_suckerd ; zabbix_trapperd ; zabbix_agentd
I also moved the port #'s from 10000/10001 to 10050/10051 because it interfered with Webmin. Finally I set the daemons to start at boot time.

However I had other issues with reporting ethernet and disk usage (see http://www.zabbix.com/forum/showthread.php?t=811).

Matthew Clark

Alexei
27-05-2005, 12:40
I am trying to install ZABBIX on Fedora Core linux. I have setup the MySQL DB and imported the table schema and data. I am now trying to run the ./configure -with-mysql

When I run this, I receive the following error message:
bad interpreter: No such file or directoryI believe the configure script relies on /bin/sh. Check if you have this file (or a symbolic link). If not, change first line of the script to /bin/bash, /bin/ksh, whatever.

Zookie
31-05-2005, 21:11
I have tried all of your suggestions, but to no avail. Matthew, thank you for the exact steps. I was able to yum the packages successfully, but when I execute the ./configure, I receive the same error message as I originally did.

Alexei, I verified that /bin/sh is present and I also tried changing this to /bin/bash with the same result.

I could reload Fedora if that sounds like a good idea because this is a brand new installation.

Alexei, what distro of linux are you using with ZABBIX?


You all have any other ideas for me to try? Thanks!

Zachary

Alexei
31-05-2005, 21:16
Alexei, what distro of linux are you using with ZABBIX?Currently I do development on Ubuntu box. I also use Debian, RedHat, and SuSE.

Zookie
31-05-2005, 21:23
Thank you for the fast response.

Here is what I have found and I believe is the cause.

I downloaded the compressed files from zabbix.com/sourceforge on my windows box. I uncompressed these files on my windows box. I FTPed these files to my Fedora box and tried to run the ./configure script as stated in my first post.

Apparently the use of Windows and uncompressing or something caused misc line breaks or something. I never modified the files using Windows, just extracted and FTPed, but that seems to be the problem.

I used Lynx and downloaded the tar.gz from the Fedora box itself, uncompressed, and the ./configure script works perfectly.

I look forward to using this product and thank everyone for their assistance.


Zachary

Zookie
31-05-2005, 21:34
Ok, new problem. -=O)

When I run make, it starts to run through the make process. Then, I receive the following:

../../include/snprintf.c:169: warning: 'dopr' defined but not used
make[1]: Leaving directory '/root/zabbix-1.1alpha10/src/zabbix_server'

It does not create the /usr/local/zabbix directory

Thoughts?

Thanks,

Zachary

Alexei
31-05-2005, 21:37
I do not see any problem here. Check your zabbix-1.1alpha10/bin directory for fresh binaries. Copy them to any location. Read the manual :)