Koozali.org: home of the SME Server

Zabbix

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



...