Koozali.org: home of the SME Server

Zabbix

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
Zabbix
« on: September 29, 2006, 10:00:41 PM »
Anyone here successfully installed zabbix?

Please share your experience..


Regards,

Mike

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Zabbix
« Reply #1 on: October 03, 2006, 01:25:53 PM »
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
...

Offline jameswilson

  • *
  • 792
  • +0/-0
    • Security Warehouse, trade security equipment
Zabbix
« Reply #2 on: October 05, 2006, 12:06:10 AM »
Thanks Jader, can we install it from the tar?

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Zabbix
« Reply #3 on: October 05, 2006, 01:20:44 AM »
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
Code: [Select]

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
...

Offline jameswilson

  • *
  • 792
  • +0/-0
    • Security Warehouse, trade security equipment
Zabbix
« Reply #4 on: October 05, 2006, 10:08:36 AM »
Cheers mate that is most helpful

Offline JonB

  • *
  • 351
  • +0/-0
Zabbix
« Reply #5 on: October 05, 2006, 11:40:34 AM »
Jader,

The website appears to be down at present.

Jon
...

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Zabbix
« Reply #6 on: October 05, 2006, 12:59:55 PM »
Sorry... I had problems with my ADSL this night... it´s back again.
...

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
Zabbix
« Reply #7 on: October 05, 2006, 05:43:38 PM »
Hi Jader, Thanks!

I'll give a try and post the results...


Regards,

Mike

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Zabbix
« Reply #8 on: October 05, 2006, 07:51:36 PM »
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
...

Offline JonB

  • *
  • 351
  • +0/-0
Zabbix
« Reply #9 on: October 05, 2006, 11:33:35 PM »
Jader,

The site appears to be back up but connections are being refused.

Jon
...

Offline JonB

  • *
  • 351
  • +0/-0
Zabbix
« Reply #10 on: October 06, 2006, 05:37:47 AM »
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
...

Offline Drifting

  • *****
  • 431
  • +0/-0
Who has the file?
« Reply #11 on: October 06, 2006, 10:21:23 AM »
Would really like to get my hands on Zabbix, the website link does not work, did anyone else manage to get it?

Paul.
Infamy, Infamy, they all have it in for me!

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Zabbix
« Reply #12 on: October 06, 2006, 12:27:52 PM »
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
...

Offline JonB

  • *
  • 351
  • +0/-0
Zabbix
« Reply #13 on: October 07, 2006, 01:01:26 PM »
Thanks Jader.

Zabbix-1.1.1.tar is available at

http://khunjarnet.com/downloads/zabbix/Zabbix-1.1.1.tar

Jon
...

Offline Amir Inbar

  • *
  • 113
  • +0/-0
    • http://www.sheroot.net
Zabbix
« Reply #14 on: October 08, 2006, 10:57:35 PM »
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
......

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Zabbix
« Reply #15 on: October 09, 2006, 11:53:33 AM »
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
...

Offline Amir Inbar

  • *
  • 113
  • +0/-0
    • http://www.sheroot.net
Zabbix
« Reply #16 on: October 09, 2006, 05:02:34 PM »
Thank you for the reply but it didn't help ...

Quote

[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 ~]#

......

Offline Amir Inbar

  • *
  • 113
  • +0/-0
    • http://www.sheroot.net
Zabbix
« Reply #17 on: October 09, 2006, 10:09:10 PM »
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 ?
......

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Zabbix
« Reply #18 on: October 09, 2006, 10:58:25 PM »
Quote
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:
Code: [Select]

sudo zabbix /opt/zabbix/bin/zabbix_server


Good luck

Jáder
...

Offline Amir Inbar

  • *
  • 113
  • +0/-0
    • http://www.sheroot.net
Zabbix
« Reply #19 on: October 09, 2006, 11:19:19 PM »
I did create a user called zabbix.

Quote
[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 ?
......

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Zabbix
« Reply #20 on: October 10, 2006, 12:31:19 PM »
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
...

Offline Amir Inbar

  • *
  • 113
  • +0/-0
    • http://www.sheroot.net
Zabbix
« Reply #21 on: October 10, 2006, 10:38:49 PM »
Thank you Jader for the help :

Quote

[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


Quote

[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 ...
......

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Zabbix
« Reply #22 on: October 10, 2006, 11:38:52 PM »
Hi


Quote

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  
Code: [Select]
chmod o+x /opt/zabbix/bin/zabbix*"

to allow execution on those files.
Without this you never will run them.


Jáder
...

Offline JonB

  • *
  • 351
  • +0/-0
Zabbix
« Reply #23 on: October 11, 2006, 12:47:42 AM »
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
...

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Zabbix
« Reply #24 on: October 11, 2006, 11:41:42 AM »
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
Code: [Select]
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
...

Offline Bud

  • *
  • 487
  • +0/-0
Re: Zabbix
« Reply #25 on: September 26, 2008, 12:51:02 PM »
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?  :-?


Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Zabbix
« Reply #26 on: September 26, 2008, 05:53:07 PM »
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
...

Offline Bud

  • *
  • 487
  • +0/-0
Re: Zabbix
« Reply #27 on: September 26, 2008, 06:52:08 PM »
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

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Zabbix
« Reply #28 on: September 26, 2008, 07:20:55 PM »
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
...

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Zabbix
« Reply #29 on: September 30, 2008, 02:30:10 PM »
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



...