Ad Widget

Collapse

icmpping without specifying IP address

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nmail_uk
    Member
    • May 2009
    • 65

    #1

    icmpping without specifying IP address

    How can I use the icmpping simple check without specifying the IP address in the first parameter? I would like it to take the IP address of the host the check is defined against.

    I've tried specifying the macro {IPADDRESS} and {IPADDRESS1} but to no avail - it always comes back "unsupported."

    Has this changed? I'm sure I used to be able to just add the icmpping check without having to give anything for the IP address field pre-1.8, but it's a couple of months since I used Zabbix and I'm a bit rusty.

    Thanks in advance.
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    I haven't tried icmpping in 1.8 yet but Zabbix agent parameter syntax is that any parameter between <> is optional.

    icmpping syntax is defined in manual as:
    icmpping[<target><,packets><,interval><,size><,timeout>]

    So I would use:
    icmpping[] : all parameters with default values
    icmpping[,5] : all parameters with default values except interval defined as 5 ms (note comma before 5).

    Regards,
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • nmail_uk
      Member
      • May 2009
      • 65

      #3
      Hi Alixen,

      Thanks for the reply - that's what I thought. I'd tried leaving the IP address parameter blank but it was still not accepting it.

      I did later find an issue where one of the zabbix_server processes was constantly updating these two items so the state changes in these items were being wiped out - which might have been why it didn't seem to be working.

      I fixed that rogue server process last thing last night, and just now changed the command to use all default parameters and it's now working.

      Thanks,
      Andy

      Comment

      • nmail_uk
        Member
        • May 2009
        • 65

        #4
        I found the error - I had defined my command as "icmpping[,4,,8,2000]" - i.e. I wanted 4 packets of 8 bytes to be sent with a timeout of 2 seconds.

        I didn't care about the time between sends so I left it blank thinking Zabbix would use a default value or none at all.

        That caused the item to fail with "unsupported parameters" so I stuck 250ms in there and it's working again.

        Comment

        • drumspirit
          Junior Member
          • Mar 2014
          • 13

          #5
          Hence 300000ms = 600s oh yea !

          Originally posted by nmail_uk
          I found the error - I had defined my command as "icmpping[,4,,8,2000]" - i.e. I wanted 4 packets of 8 bytes to be sent with a timeout of 2 seconds.
          icmping[bla,bla,bla,bla] never worked on any of my hosts. it seems like 300000ms is not equal to 300s ... ping are polled every 600s while defining interval to 300000... weird

          so, after a brief calculation of how it could work, I noticed, by recuding the interval to 100000ms that it was equal to 200s...

          defining the icmping[,,150000,] like this, exactly like this, make my Zabbix poll every f***** 5 minutes.

          is the documentation a peace of crap or what ?

          as usual, I relieved my pain in th a$$ all by myself.

          Cheers.

          Comment

          Working...