Ad Widget

Collapse

agent.ping - Value won't change from 1 if server / agent is down

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shlomia
    Member
    • Jul 2020
    • 38

    #1

    agent.ping - Value won't change from 1 if server / agent is down

    Hi, So I'm pretty new to Zabbix and what I'm trying to accomplish is to monitor a server using agent.ping key.
    The values for that key are:
    Returns nothing - unavailable; 1 - available
    So when the server is up, The value is 1 and it's good.
    But when the agent is down or the server is down, I'm getting PROBLEM on my trigger:
    {Server:agent.ping.nodata(2m)}=1
    which is good, But the value is still "1".
    I expect the value to change to something another and show "Down" or "Unavailable", You get me?
    This is the notification I get when a problem occures:

    Problem started at 17:37:23 on 2020.07.13
    Problem name: Ping Status
    Host: Git
    Severity: High
    Value: Up (1)
    Event ID: 174
    As you can see, The value is Up (1) but the trigger reports problem! ( The value should be Down ).

    Thanks!!
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    That may be more of a problem with the notification than with the trigger. What version of Zabbix are you running, and is this a new install or have you been using Zabbix for a while?

    First, don't get confused by the "1" in the trigger itself. That's not the return from agent.ping, it's the "true" comparison value for the nodata() function (with an argument of 2m, for 2 minutes). You can read it as "agent.ping has returned no data for 2 minutes == true"

    Regarding the message you're getting: find the Action that is matching / handling this event, and go to the Operations tab for the Action and show us the contents of the "Default message". If the default message is using "{ITEM.LASTVALUE}", read up on that macro.
    Last edited by tim.mooney; 13-07-2020, 21:25. Reason: fix typo

    Comment

    Working...