Ad Widget

Collapse

Ping IP from agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frater
    Senior Member
    • Oct 2010
    • 340

    #1

    Ping IP from agent

    I needed this today, but is there no zabbix agent functionality to ping an IP from the agent?

    If this is true, could we please have this?

    Maybe the function pingspeed too....
    Zabbix agents on Linux, FreeBSD, Windows, AVM-Fritz!box, DD-WRT and QNAP
  • ghoz
    Senior Member
    • May 2011
    • 204

    #2
    nope... no ping from the agent.

    as a workaround, if you have an open tcp port, you can still use the net.tcp.* checks

    Comment

    • frater
      Senior Member
      • Oct 2010
      • 340

      #3
      Originally posted by ghoz
      nope... no ping from the agent.

      as a workaround, if you have an open tcp port, you can still use the net.tcp.* checks
      Silly that it doesn't exist.
      I can easily write it for my clients, but I want a standardized function.
      Most of the scripts I wrote are for things I don't really expect to be there already.

      Can't we get it for 1.88 / 1.9?
      I'm planning to upgrade to 1.9 when the next alpha/beta arrives.
      Zabbix agents on Linux, FreeBSD, Windows, AVM-Fritz!box, DD-WRT and QNAP

      Comment

      • ghoz
        Senior Member
        • May 2011
        • 204

        #4
        I think the reason it doesnt exist is that right now the server is relying on an external tool (fping) to do the icmp pings and perfs, with a specific pinger process.
        integrating the existing infrastructure qith the agent is not trivial, and would work only on architectures where fping exists.

        so they have to develop their own icmp ping integrated in the agent. not that hard, but not so trivial as they have to support a buch of architectures...

        In any case, you should open a feateure request on the tracker at https://support.zabbix.com. And I'd vote for it as I could certainly find a use for it :-)

        Comment

        • frater
          Senior Member
          • Oct 2010
          • 340

          #5
          I created this one... https://support.zabbix.com/browse/ZBXNEXT-950

          At first I thought my ticket was a duplicate of this one: https://support.zabbix.com/browse/ZBXNEXT-739

          But it doesn't speak about pinging certain IP's (taking a parameter).
          Zabbix agents on Linux, FreeBSD, Windows, AVM-Fritz!box, DD-WRT and QNAP

          Comment

          • frater
            Senior Member
            • Oct 2010
            • 340

            #6
            For the time being I'm using this:
            Code:
            UserParameter=net.ping[*], sudo ping -c1 -W1 $1 2>/dev/null | grep -c 'bytes f'
            In MS-Windows (with coreutils) this would be:

            Code:
            UserParameter=net.ping[*], ping -n 1 -w 1 $1 | grep -c "bytes="
            Zabbix agents on Linux, FreeBSD, Windows, AVM-Fritz!box, DD-WRT and QNAP

            Comment

            • ghoz
              Senior Member
              • May 2011
              • 204

              #7
              just for reference, you can do that on windows with native tools :
              Code:
              ping -n 1 -w 1 "$1" | find  /i "TTL=" /c

              Comment

              • frater
                Senior Member
                • Oct 2010
                • 340

                #8
                Aha...
                Thank YOU

                I never did much shell scripting with Windows.
                They recently rediscovered CLI at Microsoft.... (powershell)
                A CLI is often much more efficient and faster....
                Zabbix agents on Linux, FreeBSD, Windows, AVM-Fritz!box, DD-WRT and QNAP

                Comment

                • jroberson
                  Senior Member
                  • May 2008
                  • 124

                  #9
                  You ought to see what they are planning for Windows Server 8. Can you say Microsoft Linux? ... Yea me neither, but at least we can run headless and all PowerShell based. Check out these links: http://www.networkworld.com/communit...ft-server-fork & http://www.itworld.com/virtualizatio...ming-server-os

                  I'm actually pretty excited. Maybe I'll be able to save some of my resources from having to load a GUI and speed up server reboots (yes, you will most likely still have to do those, but we can hope). Looks like it took MS only 15 years to realize that you don't need to waste resources on a server GUI, among other things.

                  Comment

                  • frater
                    Senior Member
                    • Oct 2010
                    • 340

                    #10
                    But (again) can't we have this as a standard function?
                    Zabbix agents on Linux, FreeBSD, Windows, AVM-Fritz!box, DD-WRT and QNAP

                    Comment

                    Working...