Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: maykelsoft on September 29, 2006, 10:00:41 PM
-
Anyone here successfully installed zabbix?
Please share your experience..
Regards,
Mike
-
Yes
I´ve installed Zabbix 1.1.1 on SME7
I have compiled binaries... and a rought .spec file but no time to create a RPM and test it.
It´s all available on http://www.linuxfacil.net/publico/files/zabbix.spec
and http://www.linuxfacil.net/publico/files/zabbix-1.1.1.tar
Good luck.
Jáder
-
Thanks Jader, can we install it from the tar?
-
Yes, anyone can install from tar.
I have installed on another SME7 in 10 minutes or less.
Let´s try a HowTo DRAFT: (updated!)
1) Create an zabbix user (using LAT or server-manager)
2) download my tar http://www.linuxfacil.net/publico/files/Zabbix-1.1.1.tar or from http://khunjarnet.com/downloads/zabbix/Zabbix-1.1.1.tar (thank Jon)
3) copy files from opt to /opt and etc to /etc
4) create fragments to Apache
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
cat >>/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/80zabbix <<FIM
Alias /zabbix /opt/zabbix
<Directory "/opt/zabbix">
AddType application/x-httpd-php .php .php3 .phtml
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
FIM
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
service httpd-e-smith restart
5) create MySQL database and populate it
mysql < install/create_mysql
mysql zabbix < install/schema.sql
mysql zabbix < install/data.sql
6) edit /etc/zabbix/zabbix_[server/agentd].conf and verify if everything it´s ok
7) start Zabbix_server and agentd
/opt/zabbix/bin/zabbix_server
/opt/zabbix/bin/zabbix_agentd
8) Access web interface and log in as admin with no password
I´ll install again and do a NICE HowTo... someday! ;)
Jáder
-
Cheers mate that is most helpful
-
Jader,
The website appears to be down at present.
Jon
-
Sorry... I had problems with my ADSL this night... it´s back again.
-
Hi Jader, Thanks!
I'll give a try and post the results...
Regards,
Mike
-
I´d like to upload the contrib to contribs or a mirror (my ADSL link is...strange for a couple of days... my site is unavailable for some periods of day)
Just don´t know how to do this. If someone point this to me, tonight I´ll do it.
Thanks
Jáder
-
Jader,
The site appears to be back up but connections are being refused.
Jon
-
Jader,
Can you possibly email the .tar file. Either connections are refused from your site or I can only download 44% then the connection stops.
I can put it up on my site if you like.
jblakely(at)technologysolved.co.nz
Jon
-
Would really like to get my hands on Zabbix, the website link does not work, did anyone else manage to get it?
Paul.
-
JonB
Sent Zabbix-1.1.1.tar by e-mail as requested.
You can put it on your site and add URL here.
I hope my site came back live today...and stay that way!
Sorry by these link problems... I imagine a lot of people wishing to put hands on Zabbix.
Jáder
-
Thanks Jader.
Zabbix-1.1.1.tar is available at
http://khunjarnet.com/downloads/zabbix/Zabbix-1.1.1.tar
Jon
-
Downloaded, went through the mini HowTo but when got to call the server got :
[root@sherootsrv zabbix]# /opt/zabbix/bin/zabbix_server
-bash: /opt/zabbix/bin/zabbix_server: Permission denied
-
Hi
Try to change owner of zabbix_server.
If I remember correctly it should be the new user you created (zabbix).
So do this: "chown zabbix /opt/zabbix/bin/zabbix_*"
I have no access to my test server today... maybe sometime during the week I can help you more.
Jáder
-
Thank you for the reply but it didn't help ...
[root@sherootsrv ~]# chown zabbix /opt/zabbix/bin/zabbix_*
[root@sherootsrv ~]# /opt/zabbix/bin/zabbix_server
bash: /opt/zabbix/bin/zabbix_server: Permission denied
[root@sherootsrv ~]#
-
I have read at Zabbix's site that
ZABBIX server process (zabbix_server) is protected from being run under root account.
so ...
What can be done ?
-
Posted: 09 Oct 2006 17:09 Post subject:
I have read at Zabbix's site that
Quote:
ZABBIX server process (zabbix_server) is protected from being run under root account.
so ...
What can be done ?
That´s why first pass is to create a Zabbix user... and why I guess was a permission issue on binary...
I´ll check my test install when I can do this.
You could try to run it as user zabbix:
sudo zabbix /opt/zabbix/bin/zabbix_server
Good luck
Jáder
-
I did create a user called zabbix.
[root@sherootsrv bin]# sudo -u zabbix /opt/zabbix/bin/zabbix_server
sudo: /opt/zabbix/bin/zabbix_server: command not found
I have checked the location - there is a zabbix_server file 590kb.
Any ideas ?
-
What is on your zabbix.log file (find location on /etc/zabbix/zabbix_server.conf) ?
What's on your zabbix_server.conf?
Have you attempted to run zabbix_agentd ? What's on his log ?
please post a "ls -la" of: /etc/zabbix/ and /opt/zabbix/bin
Thanks
Jáder
EDIT: here are mine:
[root@leopardo ~]# ls -la /etc/zabbix/
total 20
drwxr-xr-x 2 root root 4096 Oct 3 07:42 .
drwxr-xr-x 61 root root 4096 Oct 10 07:02 ..
-rw-r--r-- 1 root root 1142 Sep 28 06:51 zabbix_agent.conf
-rw-r--r-- 1 root root 2378 Sep 28 06:51 zabbix_agentd.conf
-rw-r--r-- 1 root root 2299 Oct 3 07:42 zabbix_server.conf
root@leopardo ~]# ls -la /opt/zabbix/bin/
total 1224
drwxr-xr-x 2 root root 4096 Oct 3 07:23 .
drwxr-xr-x 6 root root 4096 Oct 3 07:26 ..
-rwxr-xr-x 1 root root 199181 Sep 28 06:51 zabbix_agent
-rwxr-xr-x 1 root root 269003 Sep 28 06:51 zabbix_agentd
-rwxr-xr-x 1 root root 20632 Sep 28 06:51 zabbix_get
-rwxr-xr-x 1 root root 30342 Sep 28 06:51 zabbix_sender
-rwxr-xr-x 1 root root 590586 Sep 28 06:51 zabbix_server
-rwxr-xr-x 1 root root 106496 Sep 28 06:51 ZabbixW32.exe
-
Thank you Jader for the help :
[root@sherootsrv zabbix]# ls -la
total 28
drwxr-xr-x 2 root root 4096 Oct 8 22:00 .
drwxr-xr-x 64 root root 12288 Oct 10 04:08 ..
-rw-r--r-- 1 root root 1142 Sep 28 12:51 zabbix_agent.conf
-rw-r--r-- 1 root root 2378 Sep 28 12:51 zabbix_agentd.conf
-rw-r--r-- 1 root root 2299 Oct 3 14:02 zabbix_server.conf
[root@sherootsrv bin]# ls -la
total 1224
drwxr-xr-x 2 root root 4096 Oct 8 22:00 .
drwxr-xr-x 6 root root 4096 Oct 8 22:00 ..
-rw-r--r-- 1 root root 199181 Sep 28 12:51 zabbix_agent
-rw-r--r-- 1 root root 269003 Sep 28 12:51 zabbix_agentd
-rw-r--r-- 1 root root 20632 Sep 28 12:51 zabbix_get
-rw-r--r-- 1 root root 30342 Sep 28 12:51 zabbix_sender
-rw-r--r-- 1 root root 590586 Sep 28 12:51 zabbix_server
-rw-r--r-- 1 root root 106496 Sep 28 12:51 ZabbixW32.exe
There is no log file ...
-
Hi
root@sherootsrv bin]# ls -la
total 1224
drwxr-xr-x 2 root root 4096 Oct 8 22:00 .
drwxr-xr-x 6 root root 4096 Oct 8 22:00 ..
-rw-r--r-- 1 root root 199181 Sep 28 12:51 zabbix_agent
-rw-r--r-- 1 root root 269003 Sep 28 12:51 zabbix_agentd
-rw-r--r-- 1 root root 20632 Sep 28 12:51 zabbix_get
-rw-r--r-- 1 root root 30342 Sep 28 12:51 zabbix_sender
-rw-r--r-- 1 root root 590586 Sep 28 12:51 zabbix_server
-rw-r--r-- 1 root root 106496 Sep 28 12:51 ZabbixW32.exe
Please do
chmod o+x /opt/zabbix/bin/zabbix*"
to allow execution on those files.
Without this you never will run them.
Jáder
-
Amir,
Did you untar the zabbix tar file to your desktop then transfer across to your SME using winscp or similar.
The best way is to put the tar file in the root of the sme file system and from console do
tar -xvf zabbix.tar
This will put all the files in the correct place and keep the permissions.
I have got zabbix up and working and I am impressed. It is a huge learning curve tho.
jon
-
Jon
I´m glad you have Zabbix working.
I also think is a BIG learning curve.
I´m hoping we join efforts to create a monitoring template to SME server.
I discovered Zabbix <1.4 cannot execute external scripts out of box (it´s a external patch for 1.1.1 and not sure if it works for 1.1.2 - latest release). But that´s promised to be included on v1.4.
I´d like to monitor things like SAMBA users logged in with a script like
smbstatus -b|grep ^[0-9]|wc -l
And a lot of other things.
For now I´m with my Zabbix turned off... but will return it online in a few days.
Good luck to everyone.
Jáder
-
Hi Guys
I'm trying to Install Zabbix 1.6. Downloaded the tar file from the Zabbix Site. I created a folder under opt/zabbix and a mysql Database called " zabbix " Untarred the File, What now?
Any Ideas on how to do it? :-?
-
I´ll do the same... just need find some time.
You need to compile it... it´s a hard work... but you can find instructions (about requirements... your worst nightmare) on web.
Or just way a few days so I do all for you :D
Jáder
-
Hi thanks jader that will be Great :-)
Maybe you can Show how you Compiled it so that I can Learn how you do it.
Thanks for the Effort, I really appreaciate it
Long Live SME
-
I would have take notes about dependencies when I created the compiling env on that server.
Now it´s ready... I just remove gcc and his dependencies when finish compiling Zabbix.
I could generate a list of packages (and perl modules) on that server, if someone tell me how to do... and we can use a diff with a normal server to try to discover full dependencies list. I remember spend long time to find all deps before be able to generate binaries.
I´ll try to compile new binaries this weekend... just ask again for them on monday! ;)
Regards
Jáder
-
I´ll try to compile new binaries this weekend... just ask again for them on monday! ;)
Here are the binaries... not tested yet (it´s a production server... will try later tonight/tomorrow).
http://www.abandonemicrosoft.net/publico/Zabbix1.6_binaries.tar.gz contains server, agentd and proxy of v. 1.6 compiled with net-snmp, mysql.
Just for everyone to know, I had this problem (http://www.zabbix.com/forum/showthread.php?t=10301) and as suggested on post #11 changed in src/zabbix_server/poller/checks_snmp.c: session.localname --> session.peername (2 times!) so it compiles.
Jáder