Ad Widget

Collapse

Ping a device

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aardman
    Junior Member
    • Feb 2013
    • 1

    #1

    Ping a device

    Does anyone have some basic instructions how to set up a basic ping for any IP type device without a zabbix agent, and raise an alert if no response (high etc)

    I'm on 2.02 and all instructions I've found rever to older versions or those that use the zabbix agent.

    Thanks.
  • x12Mike
    Junior Member
    • Jul 2012
    • 5

    #2
    Not sure if this helps, but I have a server that does have an agent on it, and I have a customUserParameter on that agent that pings workstations. The workstations don't have agents.

    It's just very basic but works:

    Code:
    UserParameter=workstation.ping[*],ping -c 1 $1 | grep icmp | awk '{print $$7}' | cut -d= -f2
    The * in it would just be an IP from the defined Item in Zabbix.

    Comment

    • heaje
      Senior Member
      Zabbix Certified Specialist
      • Sep 2009
      • 325

      #3
      There is a simple check item called icmpping. You can read about it here: https://www.zabbix.com/documentation.../simple_checks.

      Simple checks can be used against any kind of device.

      Comment

      • Spoonman
        Member
        • Aug 2013
        • 45

        #4
        Originally posted by heaje
        There is a simple check item called icmpping. You can read about it here: https://www.zabbix.com/documentation.../simple_checks.

        Simple checks can be used against any kind of device.
        Can you please give an example of how the expression looks like ?
        Because this expression always gives an alert that my device is down, when in fact is it running fine :

        {Template_PING_agentless:icmpping.last(0)}=0

        Comment

        Working...