Ad Widget

Collapse

Change the number of packets send in icmp ping template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RomainS
    Junior Member
    • Apr 2021
    • 13

    #1

    Change the number of packets send in icmp ping template

    Hi, can we change the number of packets who are send by the icmp ping template in zabbix 5 ?
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    read documentation!
    icmpping[<target>,<packets>,<interval>,<size>,<timeout>]
    Host accessibility by ICMP ping. 0 - ICMP ping fails

    1 - ICMP ping successful
    target - host IP or DNSname
    packets - number of packets
    interval - time between successive packets in milliseconds
    size - packet size in bytes
    timeout - timeout in milliseconds
    Example:
    ⇒ icmpping[,4] → if at least one packet of the four is returned, the item will return 1.

    See also: table of default values.
    Last edited by Hamardaban; 04-05-2021, 11:51.

    Comment

    • RomainS
      Junior Member
      • Apr 2021
      • 13

      #3
      I already read this part but that don't answer to my question.

      I just wan't to know if in the template ICMP Ping we can change or even see how much packets are sends.
      Click image for larger version

Name:	Annotation 2021-05-04 114836.png
Views:	2380
Size:	19.5 KB
ID:	424025


      Click image for larger version

Name:	Annotation 2021-05-04 114943.png
Views:	2450
Size:	43.6 KB
ID:	424026

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        It's good that you read it - it's a pity that you didn't understand it.

        pls read again:


        icmpping[<target>,<packets>,<interval>,<size>,<timeout>]

        Comment

        • RomainS
          Junior Member
          • Apr 2021
          • 13

          #5
          I read it and i saw the command: icmpping[<target>,<packets>,<interval>,<size>,<timeout>]
          but i work with icmp ping template like i show you with the two screenshots of my previous message and i don't touch anything in this template i just wan't to know if i can change something like the Key field ?

          Comment

          • RomainS
            Junior Member
            • Apr 2021
            • 13

            #6
            I also saw the default number of packets who are send by zabbix serverClick image for larger version

Name:	Annotation 2021-05-04 120124.png
Views:	2360
Size:	18.7 KB
ID:	424035

            Comment

            • fictitiousexistence
              Junior Member
              • Jan 2026
              • 1

              #7
              In your second picture in the 3rd field down is where you would put that command. Change 'icmpping' to something like 'icmpping[8.8.4.4,1,2000,32,2000]'.
              But it doesn't seem like you can modify that field in the default item for this.

              Instead you can create a new item.
              Click on your host, then on items and then Create item in the top right.
              Give it a name.
              Change type to Simple Check.
              Change Type of information to Numeric(float)
              In the 3rd field down named 'Key', enter the command icmpping[<target>,<packets>,<interval>,<size>,<timeout>,<op tions>]
              but change the fields to the values you want, like icmpping[8.8.4.4,1,2000,32,2000]

              Comment

              • troffasky
                Senior Member
                • Jul 2008
                • 565

                #8
                To modify this at template level [because I think that's what the OPs question was], I would try changing the template key from icmpping to icmpping[,10] and see if that works.

                Comment

                Working...