The problem is: for PROBLEM (operation) and OK (recovery problem), the ITEM.LASVALUE is equal: Up (1). For PROBLEM, should be Down(1), and Recovery Up (0).
Default message:
{EVENT.NAME}: {STATUS}
{ITEM.LASTVALUE}
{EVENT.TIME}
{HOSTNAME}
Item:
Name: Ping to the server (TCP)
Key: agent.ping
Update interval: 30s
Trigger:
{HOSTNAME:agent.ping.nodata(1m)}=1
Default message:
{EVENT.NAME}: {STATUS}
{ITEM.LASTVALUE}
{EVENT.TIME}
{HOSTNAME}
Item:
Name: Ping to the server (TCP)
Key: agent.ping
Update interval: 30s
Trigger:
{HOSTNAME:agent.ping.nodata(1m)}=1