View Full Version : Make Zabbix easier to intall and configure
gen2linuxdude
10-11-2008, 06:38
I work for financial company and we currently use Solarwinds to monitor
Windows, solaris and Linux servers. I heard great review about Zabbix so
I decided to give it a try.
I installed a fresh Fedora Core 7 server in the lab and tried to install
Zabbix version 1.6.1 on it. After spending 48 hours on it, I gave up.
The instruction is terrible, I couldn't get ./configure to work properly.
It tells me that "mysqlclient" is missing among other things.
Why can Zabbix build a bootable CD with Zabbix pre-compile and ready
to go so that I can install it on any Intel Server. Checkpoint firewalls
does that for Secureplatform (Firewall running on top of Linux) but
everything is compiled into an ISO image. Zabbix would get a lot of
customer like myself to use this product.
I am suprised that Alexi did not think about this approach.
Search for a VMWare Image with Linux&Zabbix preinstalled, that should be good enough to test it.
Regarding the issue you are experiencing, did you search the forums for solutions? I found these threads which both point to the correct solution:
http://www.zabbix.com/forum/showthread.php?t=6490
http://www.zabbix.com/forum/showthread.php?t=9689
I would also think that it's normal procedure when compiling software to have the development packages installed.
davidtranusa
10-11-2008, 15:34
Search for a VMWare Image with Linux&Zabbix preinstalled, that should be good enough to test it.
Can you tell me where to find these VMware image? I don't think the vmware
image running the latest 1.6.1 version of zabbix? Is that right?
I don't think the vmware image running the latest 1.6.1 version of zabbix? Is that right?
That is probably correct since version 1.6.1 was released less than a week ago.
davidtranusa
10-11-2008, 15:42
Regarding the issue you are experiencing, did you search the forums for solutions? I found these threads which both point to the correct solution:
http://www.zabbix.com/forum/showthread.php?t=6490
http://www.zabbix.com/forum/showthread.php?t=9689
I would also think that it's normal procedure when compiling software to have the development packages installed.
Thank you I am going to give it a try.
I still standby what I said earlier. Zabbix is a great tool but it is very complicate
to install if you are not extremely good with Linux. I think Zabbix should follow
the lead of http://www.caligare.com/ or Checkpoint SPLAT where the ISO
includes everything (OS and the application itself). The installation takes less
than 10 minutes to complete. At this point, customers just need to worry
about how to use the product.
The way Zabbix is today, I dont' think it will be given a positive review
by customers in the enterprise environment.
I do think that Zabbix has a steep learning curve, but I can only urge you to keep working with it. If you encounter errors then try searching here on the forums, I think that at least 90% of all errors already has been posted here on the forums.
Also, since you are using Fedora you can maybe use the packages found here: http://koji.fedoraproject.org/koji/packageinfo?packageID=4278
Since I don't use Fedora myself, I don't know if they are of any use to you.
davidtranusa
10-11-2008, 18:07
I do think that Zabbix has a steep learning curve, but I can only urge you to keep working with it. If you encounter errors then try searching here on the forums, I think that at least 90% of all errors already has been posted here on the forums.
Also, since you are using Fedora you can maybe use the packages found here: http://koji.fedoraproject.org/koji/packageinfo?packageID=4278
Since I don't use Fedora myself, I don't know if they are of any use to you.
Thank you for the link. I download the rpm and install it on my system:
[root@fedora10 tmp]# rpm -Uvh zabbix-1.6-1.1.fc10.i386.rpm
Preparing... ########################################### [100%]
1:zabbix ########################################### [100%]
[root@fedora10 tmp]#
Now can you tell me how to go ahead and get started. when I try
https://localhost/zabbix I got nothing. https://localhost works so my apache
is up and running.
What do you think would be the best option - VMWare image or a live CD? Please all tell me what you think.
davidtranusa
10-11-2008, 20:40
What do you think would be the best option - VMWare image or a live CD? Please all tell me what you think.
Hi Alexei,
I am more of a network person, not a server person and there are a lot of
people in the networking world who also share the same frustration as I am.
Zabbix is an excellent tool. The more I read about it, the more I am impressed
with it. But installing it is a pain. I am almost 72 hours into this project and
I am getting no-where.
here is my suggestion:
1- LiveCD. Good Approach. The down-side is that for some environments,
the lab is NOT connected to the Internet. Therefore, you may have some
issues with this.
2- FullCD. Excellent approach. You can install the whole thing without
Internet access. Gentoo linux uses both method #1 and #2.
3- VMware. I am ok with it;
I would prefer method #2. Then if you need to update, you just send out
a patch and people cann just install it.
Checkpoint, Caligare and lot of serious vendors use method #2. Zabbix should
do the same thing.
Thank you.
[root@fedora10 tmp]# rpm -Uvh zabbix-1.6-1.1.fc10.i386.rpm
Preparing... ########################################### [100%]
1:zabbix ########################################### [100%]
[root@fedora10 tmp]#
Now can you tell me how to go ahead and get started. when I try
https://localhost/zabbix I got nothing. https://localhost works so my apache is up and running.
Did you only install the "zabbix" rpm? In that case you are missing both one of the "zabbix-server-*" and "zabbix-web-*" packages.
A tip: Click the "info" link next to the package names in order to see a list of which files are included in the package.
What do you think would be the best option - VMWare image or a live CD? Please all tell me what you think.
Well, a VMware image has the downside of having limited performance due to be running virtually, but I guess that isn't much of a concern if it's just meant as a "trial package" in order for people to see what it's all about.
However, people could use for small installations where they don't have a dedicated Zabbix server.
A live CD will have the downside of being much more hardware specific, depending on what platform it runs on. Besides, what's to do with the database? All changes are lost when rebooting, which is a major downside compared to the performance loss of VMware. However, you are also able of running live CDs in VMware.
I think a VMware image would be the easiest way to go, since you don't have to think about hardware support, and people are able to stop and start the VM in order to build a little more on the setup when people have time.
1- LiveCD. Good Approach. The down-side is that for some environments, the lab is NOT connected to the Internet. Therefore, you may have some issues with this.
I think he means a live CD that doesn't install anything on the server, but runs with a ramdisk as HDD, like Knoppix, DSL, etc. It doesn't have anything to do with an internet connection or not.
davidtranusa
11-11-2008, 15:45
Did you only install the "zabbix" rpm? In that case you are missing both one of the "zabbix-server-*" and "zabbix-web-*" packages.
A tip: Click the "info" link next to the package names in order to see a list of which files are included in the package.
Well, a VMware image has the downside of having limited performance due to be running virtually, but I guess that isn't much of a concern if it's just meant as a "trial package" in order for people to see what it's all about.
However, people could use for small installations where they don't have a dedicated Zabbix server.
A live CD will have the downside of being much more hardware specific, depending on what platform it runs on. Besides, what's to do with the database? All changes are lost when rebooting, which is a major downside compared to the performance loss of VMware. However, you are also able of running live CDs in VMware.
I think a VMware image would be the easiest way to go, since you don't have to think about hardware support, and people are able to stop and start the VM in order to build a little more on the setup when people have time.
I think he means a live CD that doesn't install anything on the server, but runs with a ramdisk as HDD, like Knoppix, DSL, etc. It doesn't have anything to do with an internet connection or not.
Thank you very much. I finally get Zabbix version 1.4.6 up and running with
CentOS 5.2 with the instructions: http://www.muck.net/?p=16
many thanks to folks in this forum.
I also agree on this. I had a very hard time to install it on CentOS.
Now that I bought a dedicated hardware just for Zabbix I dont want to even start with install because im remember the trouble it gave. I just wish there was not only a VMware but also a XenServer iso image we could just deploy with OS and Zabbix running already.
You could go for another distribution which has Zabbix in it's repositories ;)
http://packages.ubuntu.com/search?keywords=zabbix
http://packages.debian.org/search?keywords=zabbix
https://admin.fedoraproject.org/pkgdb/packages/name/zabbix
http://software.opensuse.org/search?q=zabbix
You could go for another distribution which has Zabbix in it's repositories ;)
http://packages.ubuntu.com/search?keywords=zabbix
http://packages.debian.org/search?keywords=zabbix
https://admin.fedoraproject.org/pkgdb/packages/name/zabbix
http://software.opensuse.org/search?q=zabbix
So I heard and I was recommended to use debian for easy install. But how in the world there is not a good guide for CentOS i will never understand. Most enterprises use CentOS or Red Hat. We have a policy to only use CentOS so I cant use Zabbix on Ubuntu or Fedora or anything else. It has to be CentOS or Red Hat because of management. CentOS is probably the most popular Linux distribution after Ubuntu. And Ubuntu is mainly for home users and desktops so for business i could say CentOS is the 1 Linux distribution.
A good install guide or instruction should be made. I also used the link that someone posted before, but that is very old and its not updated, it leaves you with broken init files and you have to do some customization. I would like to see official instructions from Zabbix for a correct CentOS installation.
Just search this forum or Google it and you will see how much people have tried Zabbix and just gave up. You will always find the same questions and is about CentOs and Zabbix.
... But how in the world there is not a good guide for CentOS i will never understand ... Most enterprises use CentOS or Red Hat ... CentOS is probably the most popular Linux distribution after Ubuntu. And Ubuntu is mainly for home users and desktops so for business i could say CentOS is the 1 Linux distribution.
Wow, you throw out some assertions there, and I have to say that I disagree - But let's just leave it there.
The lack of a guide specifically for CentOS may be because the lack of Zabbix users running CentOS? However, since you are running CentOS, you are in a position where you can change this, by spending a little extra time while getting your setup running, by writing a guide at the same time in order to help other people in the same situation. After all, that's how the open source community works.
Most of frustrated people in here seem to forget that this software is open source, and that often means that you should lower the expectations to documentation and support. It could be due to Zabbix widely being used in enterprise environments, and the people in those environments are used to paying tons of money on service and equipment. This rises their expectations generally, which then may not fit to what Zabbix can deliver.
A good install guide or instruction should be made ... I would like to see official instructions from Zabbix for a correct CentOS installation.
There are already as good general Linux instructions as you can get in the documentation (apart from any remaining typos). As almost every distro has their own package management system, you can't really make a guide to each distro around.
Finally, I will like to end of with the conclusion from the review of Zabbix at Linux.com (http://www.linux.com/feature/60644):
Implementing Zabbix may take quite some time, especially if you have a large number of hosts. Configuring the Zabbix server exactly as you want it takes even longer. But once Zabbix is set up and the agents are in place, monitoring your network becomes a lot easier. Zabbix frees you from spending time discovering network and resource problems on your hosts and network.
davidtranusa
12-11-2008, 13:57
Wow, you throw out some assertions there, and I have to say that I disagree - But let's just leave it there.
The lack of a guide specifically for CentOS may be because the lack of Zabbix users running CentOS? However, since you are running CentOS, you are in a position where you can change this, by spending a little extra time while getting your setup running, by writing a guide at the same time in order to help other people in the same situation. After all, that's how the open source community works.
Most of frustrated people in here seem to forget that this software is open source, and that often means that you should lower the expectations to documentation and support. It could be due to Zabbix widely being used in enterprise environments, and the people in those environments are used to paying tons of money on service and equipment. This rises their expectations generally, which then may not fit to what Zabbix can deliver.
There are already as good general Linux instructions as you can get in the documentation (apart from any remaining typos). As almost every distro has their own package management system, you can't really make a guide to each distro around.
Finally, I will like to end of with the conclusion from the review of Zabbix at Linux.com (http://www.linux.com/feature/60644):
OK. I AM NOT A LINUX EXPERT. I HAVE BEEN USING LINUX FOR THE PAST
FIVE YEARS BUT I AM JUST A NOVICE USER.
I have successfully installed Zabbix version 1.4.6 on CentOS version 5.2.
I wrote this instruction so everyone can install it. Just follow the instructions
step-by-step and everything will work. I gave the instruction to my
brother who has never used Linux before and it works for him. Many
thanks for users in this forum. Here we go:
Before we begin:
1- assume that your host name is CentOS-5
2- assume that the password for mysql is test1234
Begin:
a- install CentOS 5.2
b- yum -y install ntp php php-bcmath php-gd php-mysql httpd mysql gcc mysql-server mysql-devel net-snmp net-snmp-utils net-snmp-devel net-snmp-libs curl-devel make
c- /etc/init.d/ntpd start
d- wget http://dag.wieers.com/rpm/packages/fping/fping-2.4-1.b2.2.el5.rf.i386.rpm
e- rpm -Uvh fping-2.4-1.b2.2.el5.rf.i386.rpm
f- chmod 7555 /usr/sbin/fping
g- useradd zabbix
h- tar -xzvf zabbix-1.4.6.tar.gz
cd zabbix-1.4.6
i- /etc/init.d/mysqld start
j- /usr/bin/mysqladmin -u root password test1234
k- mysql -u root -p
mysql> CREATE DATABASE zabbix;
mysql> GRANT DROP,INDEX,CREATE,SELECT,INSERT,UPDATE,ALTER,DELET E ON zabbix.* TO zabbix@localhost IDENTIFIED BY ‘test1234’;
mysql> quit;
o- cd zabbix-1.4.6
p- cat create/schema/mysql.sql | mysql -u zabbix -ptest1234 zabbix
q- cat create/data/data.sql | mysql -u zabbix -ptest1234 zabbix
r- cat create/data/images_mysql.sql | mysql -u zabbix -ptest1234 zabbix
s- ./configure –enable-server –prefix=/usr/local/zabbix –with-mysql –with-net-snmp –with-libcurl
t- make install
u- make clean
v- ./configure –enable-agent –prefix=/usr/local/zabbix –enable-static
w- make install
x- Add the zabbix server and agent ports to your /etc/services file:
echo ‘zabbix_agent 10050/tcp’ >> /etc/services
echo ‘zabbix_trap 10051/tcp’ >> /etc/services
y- mkdir /etc/zabbix
cp misc/conf/zabbix_agentd.conf /etc/zabbix
cp misc/conf/zabbix_server.conf /etc/zabbix
z- in /etc/zabbix/zabbix_server.conf, modify:
DBUser=zabbix
BPassword=test1234
DBSocket=/var/lib/mysql/mysql.sock
FpingLocation=/usr/sbin/fping
a- in /etc/zabbix/zabbix_agentd.conf, modify:
Server=127.0.0.1,Your.Zabbix.Server.IP
Hostname=CentOS-5
cp misc/init.d/redhat/zabbix_agentd_ctl /etc/init.d/zabbix_agentd
cp misc/init.d/redhat/zabbix_server_ctl /etc/init.d/zabbix_server
b- modify /etc/init.d/zabbix_agentd AND /etc/init.d/zabbix_server:
BASEDIR=/usr/local/zabbix
c- modify /etc/init.d/zabbix_agentd:
ZABBIX_AGENTD=$BASEDIR/sbin/zabbix_agentd
d- adding the following lines into /etc/init.d/zabbix_agentd, add near the top, just below #!/bin/sh:
# chkconfig: 345 95 95
# description: Zabbix Agentd
e- adding the following lines into /etc/init.d/zabbix_server, add near the top, just below #!/bin/sh:
# chkconfig: 345 95 95
# description: Zabbix Server
f- chkconfig --level 345 zabbix_server on
chkconfig --level 345 zabbix_agentd on
chkconfig --level 345 httpd on
chkconfig --level 345 mysqld on
chkconfig --level 0123456 iptables off
/etc/init.d/iptables stop
/etc/init.d/ip6tables stop
g- cd zabbix-1.4.6
cp -r frontends/php /var/www/html/zabbix
h- modify /etc/php.ini:
max_execution_time = 300
date.timezone = America/New_York
i- /etc/init.d/httpd restart
j- chmod 777 /var/www/html/zabbix/conf
k- http://your-zabbix-server/zabbix
!!!!!Enjoy!!!!!
That install is copied from another website and is full of errors. It applies to and old version of Zabbix and not the latest CentOS 5.2. Yes, the install is actually similar but using that will not work, it leaves you with broken init files and probably some will have an error with curl missing when they try to make install.
It should be updated to the latest Zabbix version, and it also has some errors in the commands, nothing serious but for sure someone not knowing what he does will not gave up once the first error appears.
My suggestion would be to make a bash .sh file that executes all the correct commands in order. You just run the .sh file and thats it. I have seing some other softwares that are installed this way and you just see how it keeps running commands in your screen. All it takes is 1 hit to install and configure all.
bbrendon
13-11-2008, 09:02
I was just reading this thread a second time and realized what the problem is!
RedHat RPMs, they aren't designed to be easy. Its not Zabbix's fault, its the install system of Red Hat.
You run CentOS, you get RPM's. That's what happens when you sleep with the enemy :)
Run Debian/Ubuntu and you can redeem yourself!
Okay, this posting might be slightly bias... but hey, I don't see anyone with Debian having install problems!
I do feel for the noobs though. I know how painful it can be. Try compiling on Solaris or cygwin. That sounds like REAL fun. If I find myself having to run Zabbix_server on Redhat 5.2, I'll make sure and document it nicely.
P.S. -- To those complaining about the complexity of the product, try BMC Patrol, Micromuse, SMARTS, or some other Enterprise monitoring system and you'll be back here in a jiffy. Guaranteed.
davidtranusa
13-11-2008, 15:59
I was just reading this thread a second time and realized what the problem is!
RedHat RPMs, they aren't designed to be easy. Its not Zabbix's fault, its the install system of Red Hat.
You run CentOS, you get RPM's. That's what happens when you sleep with the enemy :)
Run Debian/Ubuntu and you can redeem yourself!
Okay, this posting might be slightly bias... but hey, I don't see anyone with Debian having install problems!
I do feel for the noobs though. I know how painful it can be. Try compiling on Solaris or cygwin. That sounds like REAL fun. If I find myself having to run Zabbix_server on Redhat 5.2, I'll make sure and document it nicely.
P.S. -- To those complaining about the complexity of the product, try BMC Patrol, Micromuse, SMARTS, or some other Enterprise monitoring system and you'll be back here in a jiffy. Guaranteed.
I don't know what others people are complaining about. The instructions
I posted are widely used by others. I gave the instructioins to 3 other people
who are quite new to Linux and they were able to install Zabbix with the
instructions I provided in less than one hour. Working right of the gate first
time around.
Zabbix really rocks.
I don't know what others people are complaining about. The instructions
I posted are widely used by others. I gave the instructioins to 3 other people
who are quite new to Linux and they were able to install Zabbix with the
instructions I provided in less than one hour. Working right of the gate first
time around.
Zabbix really rocks.
Let me try your install on a new CentOS 5.2 x64 with just the new OS fresh installed.
I will get back and see if i find errors.
davidtranusa
13-11-2008, 17:56
Let me try your install on a new CentOS 5.2 x64 with just the new OS fresh installed.
I will get back and see if i find errors.
ATTENTION!!!!!
My instructions are for CentOS 5.2 32-bits. My CentOS 5.2 runs on VMware
ESX 3.5i
ATTENTION!!!!!
My instructions are for CentOS 5.2 32-bits. My CentOS 5.2 runs on VMware
ESX 3.5i
In your instruction you use an outdated Zabbix version, i think the paths where different, with the init files. I say this because i used similar instructions on a 32 bits CentOS and i had to fix some things, not sure if there where the same instructions you published but they look similar and they where also for that Zabbix version 1.4.6. Did you tried those instructions with the latest Zabbix?
I dont think there will much difference with a 64 version. It should be almost the same.
We're a RedHat shop, and I just finished compiling 1.6.1 for my server, which is 64-bit. I didn't take the time for a guide, but I'll write something up. The install was a bit more difficult, but this was RedHat's fault, as yum likes to install 32-bit packages to solve dependencies.
We're a RedHat shop, and I just finished compiling 1.6.1 for my server, which is 64-bit. I didn't take the time for a guide, but I'll write something up. The install was a bit more difficult, but this was RedHat's fault, as yum likes to install 32-bit packages to solve dependencies.
Well, im sure it will help allof of people. I pay for your guide if you want but im sure it will be more then welcome so be published in Zabbix for other people.
No need to pay for some help, that's the community at work. See if this information will help out a bit. This is purely a supplement to the Zabbix documentation, but it is what I needed to do for a compile on RHEL 5 64bit.
1. Verify packages needed by RHEL5 – To do this I prefer to use yum list <package>, it seems to differentiate between 32 and 64 bit packages better than rpm.
a. curl-devel.x86_64
b. libstdc++-devel.x86_64
c. net-snmp-devel.x86_64
d. libgssapi-devel.x86_64
e. zlib-devel.x86_64
f. openssl-devel.x86_64
g. krb5-devel.x86_64
h. e2fsprogs-devel.x86_64
i. libidn-devel.x86_64
2. Get source packages from http://www.zabbix.com/download.php
3. # tar xvfz zabbix-1.6.1.tar.gz
4. # cd zabbix-1.6.1
5. # ./configure –enable-server –with-mysql –with-net-snmp –with-libcurl
6. # make install
7. The files will be compiled into /usr/local/sbin by default.
That's a quick hack, I'll write something more start to finish when I've got time . Let me know if that works for you, if not I'm curious the problems.
No need to pay for some help, that's the community at work. See if this information will help out a bit. This is purely a supplement to the Zabbix documentation, but it is what I needed to do for a compile on RHEL 5 64bit.
1. Verify packages needed by RHEL5 – To do this I prefer to use yum list <package>, it seems to differentiate between 32 and 64 bit packages better than rpm.
a. curl-devel.x86_64
b. libstdc++-devel.x86_64
c. net-snmp-devel.x86_64
d. libgssapi-devel.x86_64
e. zlib-devel.x86_64
f. openssl-devel.x86_64
g. krb5-devel.x86_64
h. e2fsprogs-devel.x86_64
i. libidn-devel.x86_64
2. Get source packages from http://www.zabbix.com/download.php
3. # tar xvfz zabbix-1.6.1.tar.gz
4. # cd zabbix-1.6.1
5. # ./configure –enable-server –with-mysql –with-net-snmp –with-libcurl
6. # make install
7. The files will be compiled into /usr/local/sbin by default.
That's a quick hack, I'll write something more start to finish when I've got time . Let me know if that works for you, if not I'm curious the problems.
When I install a new VM server for testing I do with without any options at all. I do a clean install CentOS 5.2 x64 in server mode only text mode. This way I can test what is needed from scratch so it will work. I suppose I have to install everything so I was hoping more a detailed how to for new fresh OS.
When I get a chance with a minimal fresh install I'll post more. Maybe a weekend project depending on the kids being sick or not.
When I get a chance with a minimal fresh install I'll post more. Maybe a weekend project depending on the kids being sick or not.
Sorry did not knew you had sick kids.
I will try making the install with the list of RPM.
Thanks
No worries, one of the joys of parenthood. If you have success, pass along the information. I'd love to see a more robust installer instead of pages upon pages of a document.
OK installation was easy actually. But like i said it needed some changes. Here is what I did. I followed the guide posted before but:
First, for x64 you will need to look manually with yum -list for the x64 packages.
After that you just follow everything normally. On the web installer you will see errors like:
Undefined index: TYPE[/var/www/html/zabbix/include/db.inc.php:606]
Im not sure why, but I did not got those on the x32 version. I just ignored those and followed the install, so i suppose maybe its harmless and its just the web interface errors.
After all that, you will be able to start the agent but not the server. The fix is to edit /etc/init.d/zabbix_server
And fix the field:
ZABBIX_SUCKERD=$BASEDIR/bin/zabbix_server
For the correct path:
ZABBIX_SUCKERD=$BASEDIR/sbin/zabbix_server
Then I just started it normally. I dont detect anything wrong so far just that on the server there are multiple instances of server and agent running but someone told that is normal.
Updated:
When you log into Zabbix it says:
ZABBIX server is running Value No
I think that is no good. I think on my other install it showed yes. But on the server it seems the server is running. I see it at least.
The only think that i did on the web installer was to use the actually hostname server instead of localhost. Not sure if that or the errors on the web installer is the one that caused that its not connecting to the server.
I will try to see why the web interface shows the server as off.
When you log into Zabbix it says:
ZABBIX server is running Value No
That feature simply depends on the webinterface running "ps" in the background, to check if any zabbix_server processes are running. That means that if the webinterface is running on another server than the server with zabbix_server running, it will always state that the Zabbix server isn't running, since it can't check which processes are running on another system.
bbrendon
14-11-2008, 11:20
Magic Zabbix Install Script for CentOS 5 and Red Hat 5.
http://blog.brendon.com/wp-content/uploads/2008/11/install_zabbix.sh
Just run and done.
:)
That feature simply depends on the webinterface running "ps" in the background, to check if any zabbix_server processes are running. That means that if the webinterface is running on another server than the server with zabbix_server running, it will always state that the Zabbix server isn't running, since it can't check which processes are running on another system.
OK but in this case the webinterface runs on the same machines as zabbix. Still I dont see any problems, except ping tools for example dont work. And some other minor stuff.
The check is made on line 728 of include/config.inc.php:
if( (exec('ps -ef|grep zabbix_server|grep -v grep|wc -l')>0) || (exec('ps -ax|grep zabbix_server|grep -v grep|wc -l')>0) ){
$status["zabbix_server"] = S_YES;
}
else{
$status["zabbix_server"] = S_NO;
}
You could try to execute those commands manually on the server, in order to see which output you get. It could also relate to a PHP configuration issue, which may prohibit the use of the exec() function.
[root@zabbix ~]# ps -ef|grep zabbix_server|grep -v grep|wc -l
24
[root@zabbix ~]# ps -ax|grep zabbix_server|grep -v grep|wc -l
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
24
[root@zabbix ~]#
Thats the output from those commands.
Strangely Zabbix does seem to run. Im monitoring the same server and its shows output. It seems ratter complicated to set up all, but I heard Zabbix is highly customizable and once it works it doest a very good job. Just wonder whats the biggest zabbix installation.
davidtranusa
15-11-2008, 21:31
Magic Zabbix Install Script for CentOS 5 and Red Hat 5.
http://blog.brendon.com/wp-content/uploads/2008/11/install_zabbix.sh
Just run and done.
:)
I tried your script on a 'clean" CentOS 5.2 and it works well. I would recommend
adding the following command to your script because mysqld is not start
by default in most CentOS or Redhat Linux:
/etc/rc.d/init.d/mysqld restart
Other than that, the script is working like a charm. Thank you very much for
that script.
bbrendon
17-11-2008, 03:03
Other than that, the script is working like a charm. Thank you very much for
that script.
Thanks for the feedback. Sounds like a good added feature. I tried to make it clear that mysql installation was not part of the script, but it is very easy to manually do a yum install mysql-server, but I think you're right that mysql is not started.
Wish I had that before...
But Im sure it wil help allot of other people..
Nice community work.
velosprinter
07-12-2008, 05:37
I know this thread took a turn to CentOS but the install or should I say upgrade from 1.4 to 1.6 on Ubuntu was no walk in the park.
Maybe I should have started from scratch.
I know this thread took a turn to CentOS but the install or should I say upgrade from 1.4 to 1.6 on Ubuntu was no walk in the park.
Maybe I should have started from scratch.
Hi, I'm a newcomer here, but for a last weeks i'm working on a Zabbix's LiveCD based on DebianLive. Before I'll continue on this, maybe is't a good time to reopen this topic and:
- Select a base distro
- Select setup procedure
- LiveCD can install on a HDD or go live for ever ?
- etc..
Regards.
Raimundo
velosprinter
08-04-2009, 16:15
I like Ubuntu Server version but that is just me. I think one thing that would help is distro specific install instructions. That is not really up to Zabbix to do but maybe they could include the top 5 paths to installed files such as configs. They do seem to show up in different places.
Live would be fine if your hosts never change. Live USB w/ persistence would be even better. I have not looked into that but it does interest me so if I do I will certainly write a how to.
bbrendon
08-04-2009, 20:47
I think there are distro specific install instructions. Check the forums and the wiki. I know Red hat and Debian/Ubuntu are documented, which is 99% of linux right there.
I installed a fresh Fedora Core 7 server in the lab and tried to install
Zabbix version 1.6.1 on it. After spending 48 hours on it, I gave up.
The instruction is terrible, I couldn't get ./configure to work properly.
It tells me that "mysqlclient" is missing among other things.
.
Actually, it's not the problem of Zabbix, but of the OS you selected. forget the Fedora Core..use the Ubuntu or Debian.. you will find just one easy command to install the missing thing like "mysqliclient"...