Ad Widget

Collapse

icmp ping using hostname instead of ip address

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • demigh0d
    Junior Member
    • Sep 2007
    • 3

    #1

    icmp ping using hostname instead of ip address

    Trying to set up pings for some of my devices that don't support snmp or zabbix agent.

    version : 6.4.11

    Template: icmp ping
    Interfaces:
    agent:
    ip address: <ip address>
    dns name:
    connect to: IP
    port: 10050

    The error I get is:
    fping failed: <hostname>: Temporary failure in name resolution

    If I add the host to /etc/hosts it will work but I want it to ping the ip address, not the hostname.

    What have I missed?
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Try using the full syntax of the item key with an explicit ip address (you may use macros)


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

    The host accessibility by ICMP ping.
    Return value: 0 - ICMP ping fails; 1 - ICMP ping successful.

    Parameters:
    • target - the host IP or DNS name;
    • packets - the number of packets;
    • interval - the time between successive packets in milliseconds;
    • size - the packet size in bytes;
    • timeout - the timeout in milliseconds.

    Comment

    Working...