Comments (5)
I have completed those tests with different versions of FreeBSD in different networks architectures (with/without vlans,vrrp...). Chatting at Freenode #Zabbix channel other user using FreeBSD have reproduced the same issue.
from fping.
Clarification on the procedure to reproduce the problem :
First of all, the goal is to use fping command to check an unreachable host_ip availability (this host must be DOWN) LOCATED ON THE LOCAL NETWORK, same subnet (your FreeBSD has an interface and
an IP in this network).
(ps : Using fping with ip located on external/routed network, fping always
works normally, without any error)
Then you have to launch this command 2 or 3 consecutive times from
your box using the SAME non responsive IP (very important, you have to
make the test with the same IP and as soon command is finished start
again 2 or 3 times):
Fping free_ip_address
Fping free_ip_address (do not change ip)
Fping free_ip_adress (do not change ip)
If you follow this procedure you will get something like:
fping 10.0.5.81 ==> 10.0.5.81 is unreachable
fping 10.0.5.81 ==> 10.0.5.81 error while sending ping: Host is down
10.0.5.81 error while sending ping: Host is down
10.0.5.81 error while sending ping: Host is down
10.0.5.81 error while sending ping: Host is down
10.0.5.81 error while sending ping: Host is down
10.0.5.81 error while sending ping: Host is down
10.0.5.81 error while sending ping: Host is down
10.0.5.81 error while sending ping: Host is down
Then pfing will get stuck and if you ctrl-c, it will stop and you will
get the normal fping output : ^C10.0.5.81 is unreachable
The first try will be ok with a normal result, as soon as you will
make a second try you will see the errors.
from fping.
FreeBSD Fping port maintainer have confirmed this issue.
A suggestion would be a negative caching issue that fping doesn't handle.
from fping.
FreeBSD Problem Report :
http://www.freebsd.org/cgi/query-pr.cgi?pr=176439
from fping.
A patch has been submitted by FreeBSD Fping port maintainer (refer http://www.freebsd.org/cgi/query-pr.cgi?pr=176439):
diff -r 830ac78f8d7f files/patch-fping.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/files/patch-fping.c Tue Mar 05 08:53:29 2013 -0400
@@ -0,0 +1,16 @@
+diff -r c564b3055165 src/fping.c
+--- src/fping.c Tue Mar 05 08:13:11 2013 -0400
++++ src/fping.c Tue Mar 05 08:45:33 2013 -0400
+@@ -1572,7 +1572,11 @@
- n = sendto( s, buffer, ping_pkt_size, 0,
- ( struct sockaddr* )&h->saddr, sizeof( FPING_SOCKADDR ) );
+
+- if( n < 0 || n != ping_pkt_size )
++ if(( n < 0 || n != ping_pkt_size)
++#if defined( EHOSTDOWN )
++ && errno != EHOSTDOWN
++#endif
++ ) - {
- if( verbose_flag || unreachable_flag )
- {
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (FreeBSD)
Can anyone validate and integrate if functional.
Thanks
from fping.
Related Issues (20)
- fping shows packet loss, but tcpdump shows normal HOT 3
- --alive and --count options mutual exclusive HOT 3
- 'setting SO_TIMESTAMPNS option: Protocol not available' error fping 5.1-1 on Ubuntu 22.04 over WSL1 HOT 12
- setting SO_TIMESTAMPNS option: Protocol not available (on debian running in docker container) HOT 17
- -u does not work when -c is used HOT 3
- Duplicate reply packets when pinging multiple targets HOT 6
- -g option not working properly HOT 3
- fping ipv6 address -g not working
- Warning when using autoconf from version 2.62 and 2.70 HOT 2
- Architectures support
- fping -n -g x.x.x.x/24 hangs with systemd-resolved HOT 3
- not enough sequence numbers available! (expire_timeout=10000000000, host_nr=0, ping_count=0, seqmap_next_id=0) HOT 9
- Combinations "-c -a" and "-c -u" give same output as combination "-c -q" instead of just "-c"
- Inconsistent limits for address generation via `-g`, `--generator` using either range or CIDR HOT 4
- No error message when `getprotobyname()` fails HOT 1
- Time of execution when using retry -r increases in a nonlinear growth HOT 2
- errors on fping version 5.1 HOT 4
- -D, --timestamp with custom time string eq: %Y-%m-%d %H:%M:%S HOT 9
- fping6 issue with multiple addresses HOT 1
- fping crashes with __darwin_check_fd_set_overflow. Please help to resolve the issue. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fping.