Installing the new Zabbix 2.0.0rc2

By jbayer - Last updated: Tuesday, April 10, 2012 - Save & Share - 24 Comments

I’ve taken my script for an automatic installation of Zabbix and modified it to install the 2.0.0rc2.

It is designed to work with any RHEL5+, CentOS 5+, Scientific Linux 5+ or higher systems.

It is best to start with a minimal install. It will download and install all necessary packages.

I’ve developed a directory structure for my zabbix installs, which this uses:

/etc/zabbix – main config directory
/etc/zabbix/alert.d – Alert files go here
/etc/zabbix/cron.d – Cron files go here
/etc/zabbix/externalscripts – External scripts go here
/etc/zabbix/zabbix_agentd.d – zabbix_agentd.conf includes this directory

I hope this helps someone, and would be interested in hearing about any comments.

install_zabbix-2.0.0rc2.tar

Posted in Open Source, Zabbix • • Top Of Page
1,968 views

24 Responses to “Installing the new Zabbix 2.0.0rc2”

Comment from Zac
Time April 11, 2012 at 11:52 am

Awesome, thanks for this! I was looking at rolling a quick Zabbix machine for a lab and this is super handy! I will let you know if I encounter any issues. Only thing I noticed so far is that it says it is installing 1.8

Comment from Zac
Time April 11, 2012 at 12:01 pm

It also doesn’t startup the mysql database before it starts trying to secure it. so you have to break out, start the database and then come back.

Comment from Zac
Time April 11, 2012 at 12:11 pm

Well it looked to be going well then got this -

test -z “/usr/local/sbin” || /bin/mkdir -p “/usr/local/sbin”
/usr/bin/install -c zabbix_server ‘/usr/local/sbin’
make install-data-hook
make[5]: Entering directory `/usr/src/zabbix-2.0.0rc2/src/zabbix_server’
/bin/mkdir -p “/etc/zabbix/zabbix_server.conf.d”
/bin/mkdir: cannot create directory `/etc/zabbix’: No such file or directory
make[5]: *** [install-data-hook] Error 1
make[5]: Leaving directory `/usr/src/zabbix-2.0.0rc2/src/zabbix_server’
make[4]: *** [install-data-am] Error 2
make[4]: Leaving directory `/usr/src/zabbix-2.0.0rc2/src/zabbix_server’
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/usr/src/zabbix-2.0.0rc2/src/zabbix_server’
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/src/zabbix-2.0.0rc2/src/zabbix_server’
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/src/zabbix-2.0.0rc2/src’
make: *** [install-recursive] Error 1

**** Installation failed. Aborting package creation.

Cleaning up…OK

Bye.

fail: Zabbix RPM build

Comment from jbayer
Time April 11, 2012 at 1:07 pm

Can you verify that you were running this as root?

also, OS version, 32 or 64 bit, etc, would be useful.

Thanks

Comment from jbayer
Time April 11, 2012 at 1:08 pm

It might be related to the earlier problem. I’ll look at it.

The rc is of course, a beta, so is this script. But I do want to get it working properly, so your response would be helpful.

One more question: Was this a virgin system that you installed on?

Thanks

JBB

Comment from Zac
Time April 11, 2012 at 2:09 pm

Sorry was dealing with the kiddos.

It is a vigin CentOS 6.2 x64

Just spun it up and set the IP address, that is all that has been done to it. Running as root as well.

The build seems to work just fine, it is just the creating of the directories it seems to be failing on.

Comment from Zac
Time April 11, 2012 at 2:19 pm

Just made the

/etc/zabbix
/eth/zabbix/zabbix
/etc/zabbix/man

directories and then it kept chugging just fine.

Comment from Zac
Time April 23, 2012 at 8:42 am

You know what else would be really handy? an option to choose to make a Zabbix Proxy. I know it can be configured afterwards, but to actually build as a Proxy would be really handy!

You know in all your free time ;)

Thanks again for making this!

Comment from Mark
Time April 24, 2012 at 1:13 pm

Why not just post a spec file to use to build RPM’s? This seems silly

Comment from jbayer
Time April 24, 2012 at 2:44 pm

I don’t know how to write a spec file, nor do I want to spend my time learning how. Checkinstall is a great program which does exactly what I want and need.

This script also configures the entire system and gets it ready for production.

Comment from phong
Time May 23, 2012 at 4:57 am

it’s status error

for file in locale/checkinstall-*.po ; do \
case ${file} in \
locale/checkinstall-template.po) ;; \
*) \
out=`echo $file | sed -s ‘s/po/mo/’` ; \
msgfmt -o ${out} ${file} ; \
if [ $? != 0 ] ; then \
exit 1 ; \
fi ; \
;; \
esac ; \
done
/bin/sh: line 5: msgfmt: command not found
make: *** [all] Error 1
for file in locale/checkinstall-*.po ; do \
case ${file} in \
locale/checkinstall-template.po) ;; \
*) \
out=`echo $file | sed -s ‘s/po/mo/’` ; \
msgfmt -o ${out} ${file} ; \
if [ $? != 0 ] ; then \
exit 1 ; \
fi ; \
;; \
esac ; \
done
/bin/sh: line 5: msgfmt: command not found
make: *** [all] Error 1
./install_zabbix-2.0.0rc2.sh: line 652: checkinstall: command not found
fail: Checkinstall build

Can you help me?

Thanks

Comment from Alan
Time May 23, 2012 at 9:27 am

Hey jbayer,
Thank you for the script. I’m about to start going through this for work, but have a quick question about changing the script from rc2 to the 2.0 release. Towards the bottom of the script, there’s an option for the 2.0 stable that’s commented out, do I just need to uncomment that and then comment the RC out and then run the script to install 2.0 stable?

Again, great script! Thank you for your hard work.

Comment from Alan
Time May 23, 2012 at 1:16 pm

So installing 2.0 stable with your script works, another thing I had to edit was to tack off the rc2 from “ZBX_VER=’2.0.0′” line. (The one I quoted is how it should look) I am confirming that uncommenting the entry on line 1295, commenting the line on 1297 and making Line 151 say ZBX_VER=’2.0.0′ works well.

I’m not a script expert and am not at the level you are, so I bow to your script skills, so if I missed anything, please call me out!

Comment from jbayer
Time May 23, 2012 at 3:43 pm

Not sure. I need a little more info.

What OS?

You might want to wait a day or so, I’m testing the next version of the script for the full 2.0 release

Comment from jbayer
Time May 23, 2012 at 3:44 pm

Thank you.

I’m currently testing the script, and will post an update in a day or so.

Comment from Alan
Time May 24, 2012 at 9:06 am

jbayer,
Quick question, how would I go about just installing the agent on a Cent/RH 6 box? Can this be done with this script? I thought I had it yesterday, but it tried configuring MySQL, which doesn’t seem correct to me.

Comment from jbayer
Time May 24, 2012 at 9:36 am

The script should not install mysql if you are only doing the agent.

I’m working on it today, watch for an update.

Comment from jbayer
Time May 24, 2012 at 9:42 am

Did you have to update the EPEL repo version?

Comment from Alan
Time May 24, 2012 at 11:48 am

Yes. I used this: http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/epel-release-6-5.noarch.rpm

Comment from wilfred
Time June 7, 2012 at 11:29 am

I ran the script but could not access the web page.
it displays this error
Forbidden

You don’t have permission to access /zabbix/ on this server.
Apache/2.2.15 (CentOS) Server at 41.76.153.3 Port 80

Comment from jbayer
Time June 7, 2012 at 1:01 pm

The latest version has the ability to make a proxy:

http://linuxnotes.us/archives/575

Comment from jbayer
Time June 7, 2012 at 1:04 pm

update (later today) will have the version fixed, as well as an updated libxml library, along with anything else I find.

Comment from rugwiza
Time February 8, 2013 at 2:43 am

Hello, I realllllly need this automatic installer as I ve spent more than 10 hours trying to install zabbix. Unfortunately, when I try to open the file u sent: nstall_zabbix-2.0.0rc2.tar it fails.
Can I get your help please?

Comment from jbayer
Time February 8, 2013 at 9:40 am

Go to this link to get the latest version:

http://linuxnotes.us/archives/613

You got an old one

JBB

Write a comment

asd