PDA

View Full Version : 1.6 broken icmp.ping?


manowar
19-09-2008, 09:51
firstly, congrats to everyone on 1.6. Nice.

To the point though, it seems that all my icmp.ping items are now always returning failure even though the hosts are answering to fping fine. Anything amiss?

manowar
22-09-2008, 11:17
Yeah, there is definitely something screwy with this. Even setting up new hosts with icmp.ping wont get any data entered into the DB, I even get this on a fresh install as opposed to an upgrade.

Checking the debug logs, fping is returning all the right data (ie host alove, ping time x.xx ms. etc) but its not making it into the database. No obvious error.

This only seems to apply to icmpping and icmppingtime, everything else looks fine.

Can anyone else verify this?

ADMIN: I put this inteh wrong thread, could someone move it to troubleshooting?

cjwallace
22-09-2008, 13:10
I think i am seeing the same thing.

I have done a ICMP discovery but nothing is returned

teferi
22-09-2008, 16:43
I think i am seeing the same thing.

I have done a ICMP discovery but nothing is returned

I don't have this. icmpping works pretty correctly.

radamand
22-09-2008, 16:48
same issue, all icmp ping simple checks fail.

manowar
22-09-2008, 17:12
I saw this in the 1.6 manual:

ZABBIX uses external utility fping for processing of ICMP pings. The utility is not
part of ZABBIX distribution and has to be additionally installed. If the utility is
missing, has wrong permissions or its location does not match FpingLocation
defined in configuration file, ICPM pings (icmpping and icmppingsec) will not be
processed.

and noticed my fping permissions were slightly out (6755) so corrected them and restart zabbix_server hoping that would be the issue but same problem. Zabbix just doesnt seem to want to know about the results of these checks..

radamand
22-09-2008, 18:19
nope, my bad.

I fixed permissions on /usr/bin/fping
the config file was pointing at /usr/sbin/fping

undead
30-09-2008, 14:37
I just got this issue too, but with zabbix_proxy.
Decision is:
1) comment #SourceIP=10.99.3.3
2) or find a 'fping' which understands the '-S' option
(mine don't understands it - so no discovery, and no icmpping )


----
If we look into icmpping.c we should see such code:
if (NULL != CONFIG_SOURCE_IP)
zbx_snprintf(source_ip, sizeof(source_ip), "-S%s ", CONFIG_SOURCE_IP);
else
*source_ip = '\0';
So, actually zabbix calls fping lile that:
/usr/sbin/fping -S10.99.3.3 -c3 2>/dev/null </tmp/zabbix_server_27359.pinger

I download fping from here http://fping.sourceforge.net/download/fping.tar.gz
and build It.
And it have no -S option.

Is it a bug?

CeeEss
30-09-2008, 15:29
I've got the same issues with 1.6. Which build of fping supports -S? Just downloaded 2.4b2 (because i thought the RPM version might have been compiled with certain flags not set) but this doesn't have -S either.

I just got this issue too, but with zabbix_proxy.
Decision is:
1) comment #SourceIP=10.99.3.3
2) or find a 'fping' which understands the '-S' option
(mine don't understands it - so no discovery, and no icmpping )


----
If we look into icmpping.c we should see such code:
if (NULL != CONFIG_SOURCE_IP)
zbx_snprintf(source_ip, sizeof(source_ip), "-S%s ", CONFIG_SOURCE_IP);
else
*source_ip = '\0';
So, actually zabbix calls fping lile that:
/usr/sbin/fping -S10.99.3.3 -c3 2>/dev/null </tmp/zabbix_server_27359.pinger

I download fping from here http://fping.sourceforge.net/download/fping.tar.gz
and build It.
And it have no -S option.

Is it a bug?

CeeEss
30-09-2008, 15:33
Also strange: fping2.2 for DOS defines -S as:

-S : size sweep. Ping with size1, size1 + 1, ..., size 2 datalength

undead
30-09-2008, 15:44
I have found two patches of fping.

http://wiki.version6.net/Patches

Maybe they help.


This thread is about it:
http://osdir.com/ml/network.smokeping.user/2007-04/msg00001.html

CeeEss
02-10-2008, 12:03
Argh. simple fix. fping had the wrong permissions.