Ad Widget

Collapse

ICMP Response time in zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mansourh12120
    Junior Member
    • Jun 2021
    • 10

    #1

    ICMP Response time in zabbix

    Hi every one
    i'm trying to undrestand how macro {ICMP_RESPONSE_TIME_WARN} in zabbix is working and what is means
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Probably the macro set in the template. Try opening the settings for the appropriate template and clicking the Macros tab. I think the value of that macro is set.

    ex. Template Module ICMP Ping

    Comment

    • mansourh12120
      Junior Member
      • Jun 2021
      • 10

      #3
      Thanks dear!

      Comment

      • mansourh12120
        Junior Member
        • Jun 2021
        • 10

        #4
        hello every body!
        i created a file in externalscript and wrote below script in it

        #!/bin/bash
        packetloss= 'ping -q -i0.30 -n -s 50 -c5 ${1} | grep "packet loss" | cut -d " " -f6 | cut -d "%" -f1
        [ -z "$ {packetloss}" ] && packetloss=100
        echo "${packetloss}"

        now i create an item with key packetloss(script file name) but i get this error" value of type "string" is not suitable for value type(float)".value "connect:invalid argument
        thanks

        Comment

        • derli1988
          Member
          • Apr 2021
          • 60

          #5
          Just create an item on the host you want to monitor, the item should be exactly like the one on the screenshot

          Change the x.x.x.x with the IP you want to to get response times.
          Attached Files

          Comment

          Working...