Ad Widget

Collapse

icmpping broken?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dennisj
    Junior Member
    • Apr 2010
    • 24

    #1

    icmpping broken?

    I tried setting up an icmpping item however that doesn't seem to work. After moving fping to fping.real and creating a script in its place to see what arguments it is called with I see this:

    -q -C3 -S<zabbix-server-ip>

    There are two problems here:
    1. The "-S" doesn't seem to be a valid option for fping.
    2. Why is the IP of the zabbix server put in there and not the IP/Hostname of the host the item is created for? I tried to provide the hostname explicitly by setting the key to "icmpping[<hostname-of-system>]" but strangely enough fping is still called with the zabbix-server-ip.

    Problem 1 can be worked around with an sed substitution in the wrapper script but I'm not sure what to do about problem 2?
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    -S is used if you have specified source ip for zabbix server. that flag is not available in the main fping source, but as a patch.

    if you don't need source ip setting, just remove it from the server config file. otherwise, get a patched fping in place.
    Zabbix 3.0 Network Monitoring book

    Comment

    • dennisj
      Junior Member
      • Apr 2010
      • 24

      #3
      Hm, should have known that -S actually refers to the source and not the destination.

      That however brings up the question how fping is supposed to know which system to ping since there is no target address in the command line?

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        zabbix passes a file to it with all the ip addresses to ping, which is written in the zabbix temporary directory
        Zabbix 3.0 Network Monitoring book

        Comment

        Working...