PDA

View Full Version : icmpping & icmppingsec not working...


sauron
20-01-2005, 12:11
Hello.

I'm installed zabbix on gentoo linux (version 2004.3, kernel gentoo-dev 2.6.10-r4, php 4.3.10, apache 1.3.33 ). All working fine, exept icmp :eek:. In queue i'm found very intresting items.... :confused:

Next time to check | Host | Description
01.01.1970 05:00:00 | my.host | ICMP response time | key icmpping
01.01.1970 05:00:00 | my2.host | ICMP reply (server online) | key icmppingsec
01.01.1970 05:00:00 | my3.host | ICMP response time
01.01.1970 05:00:00 | my4.host | ICMP reply (server online)

hm.... back to future ? :D

Alexei
20-01-2005, 13:32
It was discussed several times already :)

Anyway:

1. Install fping
2. Make sure user zabbix can execute it. Set SUID flag if necessary
3. Configure location of the fping in zabbix_suckerd.conf

The time means that all these items have to be checked immediately provided you system time is not 1961 or something.

sauron
20-01-2005, 14:31
1. Already installed :D
2. Not set. I'm setting SUID.
3. Default value fine

Now working. Thanks.

PS You added this in documentation ?

eucoders
03-02-2005, 09:35
I can't make it.
I installed fping, also configured zabbix_server.conf with the location of fping but still not working...

I can't believe that this software is taking so much informations from a client side, but is not capable to do just a simple ping, without installing something else also. :(

Alexei
03-02-2005, 10:00
Please, check if fping can be started by user zabbix. It requires +s flag set.

bennethos
04-02-2005, 00:50
i had same problem and it was like Alexei said, the suid bit on fping...

go into root


root#su zabbix --shell=/bin/bash

zabbix#/usr/sbin/fping

and see what it gives

good luck !

carneeki
15-02-2005, 03:40
I have a FreeBSD 4.9 system which is running Zabbix fine all except for the fping, which experiences (probably) the same date issue as what sauron experienced.

Here are the steps I've taken to try to make it work:

1. Installed fping.

2. host# chmod +s /usr/local/sbin/fping

3. host# pwd
/usr/local/sbin

4. host# ls -l fping
-r-sr-sr-x 1 root wheel 21224 Feb 14 16:57 fping

5. Edit /etc/zabbix/zabbix_suckerd.conf:
FpingLocation=/usr/local/sbin/fping

I then stopped and started all the Zabbix daemons, and this hadn't helped either, so I confirmed the SUID bit:

6. host# su zabbix
% /usr/local/sbin/fping cisco.com
cisco.com is alive
% exit
host#

I believe I have followed all the instructions correctly, but I would really appreciate it if someone could point out anything I might have done incorrectly, or any further places I could check.


Thanks in advance,

Adam

Alexei
15-02-2005, 09:29
Is there anything interesting in zabbix_suckerd's LogFile?

carneeki
15-02-2005, 13:06
There's nothing interesting in the zabbix_suckerd logfile - the last entries were hours old that I believe were an incorrectly configured trigger which I have since removed:

055495:20050214:182840 Evaluation of expression [{11320}>150000] failed
055495:20050214:182840 Expression [{11320}>150000] cannot be evaluated.
055495:20050214:182840 Evaluation of expression [{11321}>150000] failed
055495:20050214:182840 Expression [{11321}>150000] cannot be evaluated.
055495:20050214:182840 Evaluation of expression [{11322}>150000] failed
055495:20050214:182840 Expression [{11322}>150000] cannot be evaluated.

Should I increase the log level output of either the agentd or suckerd daemons?

SparHawk
23-02-2005, 21:52
Edit /etc/zabbix/zabbix_suckerd.conf:

### default fping location:
FpingLocation=/usr/local/sbin/fping

### change to this (worked for me)
fpingLocation=/usr/local/sbin/fping

###changed the case of "F"

skrill
10-03-2005, 14:03
Hope this helps someone.

I had the same problem. Then for some reason I tried changing my host settings by checking the "Use IP address" checkbox and supplying the correct IP instead of just putting the hostname in as the host. All of a sudden it worked!

eska
22-07-2005, 14:48
did everything I read here but still no success. does anyone have another hint? I'm running zabbix on suse linux 9.3.

- fping is installed and executable by User zabbix
- changed the path for fping in zabbix_suckerd.conf

I would be very grateful to be pushed into the right direction :) Thank you!

eska
25-07-2005, 11:13
still no succes.

ls -l shows: -rwsrwxr-x 1 root root 22864 2005-03-19 20:16 fping

is there anything wrong about it?

User "zabbix" can execute fping

I'm getting frustrated. Everything works fine but simple icmpping does not. I'd really like to use Zabbix but without this simple check it's not worth setting it up.