Ad Widget

Collapse

looking for a suggestion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hwtzbh
    Junior Member
    • Jul 2016
    • 7

    #1

    looking for a suggestion

    Lets say that I have 3 machines:

    Machine A (Zabbix Server v2.x) - IP 192.168.1.100
    Machine B (Running some apps and Zabbix Agent) - IP 192.168.1.101
    Machine C (not connected to Zabbix and cannot reach Zabbix) - IP 192.168.1.102

    The issue is as follows:

    I want to measure latency between machine B and machine C (machine B will run a small BASH script to perform the latency between B and C) and Zabbix should have the result, grabbing it from machine B (using the agent).

    If the latency between machine B and C is more then 100ms, then it should send an alarm.

    My question: how can I feed the agent of machine B with the results of the script and how could I activate such a trigger?

    Thanks
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    Two ways come to mind; first is to create a UserParameter with your script. It has to respond within the Timeout value of the agent. It will be tested at the frequency defined in the item calling that key. This is something similar https://stackoverflow.com/questions/...m-zabbix-agent

    Another way is to use zabbix_sender. That runs independently from you zabbix agent, usually from cron. You define a Zabbix Trapper item then zabbix_sender sends the value to the zabbix server/proxy.

    Comment

    Working...