External Script Zabbix

Use external script to trigger checking from endpoint instead of from zabbix.

Host :

  • Set passwordless SSH using psi-admin
  • Create the external script at /usr/lib/zabbix/externalscripts
  • Add the host configuration

Creating External Script : probe_latency.sh


latency=$(ssh $1 ping -c 3 google.com | tail -1 | awk ‘{print $4}’ | cut -d ‘/’ -f 2)

echo $latency

Leave a Reply

Your email address will not be published. Required fields are marked *