I
I
idibis2019-01-17 15:45:09
Zabbix
idibis, 2019-01-17 15:45:09

Ping with zabbix-agent to remote host?

The question is
: You need to send a ping from a Windows machine through zabbix-agent to a remote host, send the result to the Zabbix server (Centos6).
On the server there is a system behind which users sit, the backlog of users needs to be monitored.
I'm trying to implement through user parameters:

UserParameter=ping[*],echo $1

Data element in the interface:
5c407898f0776834780644.jpeg
Trigger in the interface:
5c4078afa6388414109624.jpeg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2019-01-17
@q2digger

Set the type: Simple check
Edited:
Key: icmpping or icmppingsec (I prefer the second one - sometimes there are pings, but their value goes off scale - this is also bad)

I
idibis, 2019-01-18
@idibis

It was configured without changes in UserParameter . "Simple checks" in the form of icmpping[] helped.
The count(120,0) function counts the number of null values ​​for an item in 120 seconds.
Accordingly, if in 120 seconds all 4 checks returned 1, then the trigger fires.
It seems to work. Perhaps I made a mistake somewhere.

N
Nem427, 2019-07-17
@Nem427

A simple icmpping check is still a simple check, ie. check from zabbix server. If you can get away with not pinging, but knocking on the port, before zabbix itself recommends
net.tcp.service.perf[service,,<port>]
Checking the performance of the TCP service.
Response
0 - service unavailable
seconds - the number of seconds spent connecting to the service
is supported by Zabbix since version 2.0
source https://www.zabbix.com/documentation/current/ru/ma...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question