Ad Widget

Collapse

fping not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • radamand
    Member
    • Aug 2008
    • 89

    #1

    fping not working

    Yesterday our Zabbix server started reporting every single monitored server as "Ping Failed", this is NOT a trigger problem, the latest data for every host shows the ping returns a "0".
    I turned on debuglogging level 4 and found this in the log:

    Code:
    /usr/sbin/fping -q -C3 -S68.87.80.43 2>&1 </tmp/zabbix_server_17725.pinger
    so, pasting that onto the command line i get this:

    Code:
    /usr/sbin/fping -q -C3 -S68.87.80.43 2>&1 </tmp/zabbix_server_17725.pinger
    /usr/sbin/fping: invalid option -- S
    
    Usage: /usr/sbin/fping [options] [targets...]
       -a         show targets that are alive
       -A         show targets by address
       -b n       amount of ping data to send, in bytes (default 68)
       -B f       set exponential backoff factor to f
       -c n       count of pings to send to each target (default 3)
       -C n       same as -c, report results in verbose format
       -e         show elapsed time on return packets
       -f file    read list of targets from a file ( - means stdin) (only if no -g specified)
       -g         generate target list (only if no -f specified)
                    (specify the start and end IP in the target list, or supply a IP netmask)
                    (ex. /usr/sbin/fping -g 192.168.1.0 192.168.1.255 or /usr/sbin/fping -g 192.168.1.0/24)
       -i n       interval between sending ping packets (in millisec) (default 25)
       -l         loop sending pings forever
       -m         ping multiple interfaces on target host
       -n         show targets by name (-d is equivalent)
       -p n       interval between ping packets to one target (in millisec)
                    (in looping and counting modes, default 1000)
       -q         quiet (don't show per-target/per-ping results)
       -Q n       same as -q, but show summary every n seconds
       -r n       number of retries (default 3)
       -s         print final stats
       -t n       individual target initial timeout (in millisec) (default 500)
       -u         show targets that are unreachable
       -v         show version
       targets    list of targets to check (if no -f specified)
    For some reason it suddenly does not like the "-S" option??

    Help!
  • radamand
    Member
    • Aug 2008
    • 89

    #2
    Found the answer in another thread;



    The other day I had updated a couple of entries in the server config, including the "SourceIP=", which previously was blank. Apparently the version of fping that we have does not support the "-S" (source IP) switch, and started throwing errors.

    Lesson learned: If it worked before you touched it, always look at the last thing you touched!

    Comment

    Working...