Hello, everyone, for help, and the topic is quite, please.
I would like to monitor the internet speed in zabbix, I have a script that connects to the server and finally creates the speedtest-zabbix.tmp file. get values from a file into zabbix. How to make?
I'd like the script on one of the ubuntu machines in system cron.
Speedtest-zabbix.tmp result
Edit:
I found another script, the data is downloaded in json, the download and upload values would like to download to zabbix
I would like to monitor the internet speed in zabbix, I have a script that connects to the server and finally creates the speedtest-zabbix.tmp file. get values from a file into zabbix. How to make?
I'd like the script on one of the ubuntu machines in system cron.
Speedtest-zabbix.tmp result
Code:
root@win:/etc/zabbix/script# cat speedtest-zabbix.tmp - speedtest.download 40673092.37615933 - speedtest.upload 47363871.16292844 - speedtest.wan.ip xxx.xxx.xxx.xxx - speedtest.ping 90.132 - speedtest.srv.name RFC Ogólnopolski dostawca Internetu i Telewizji - speedtest.srv.city Bydgoszcz - speedtest.srv.km 228.2
I found another script, the data is downloaded in json, the download and upload values would like to download to zabbix
Code:
{"type":"result","timestamp":"2021-11-24T09:34:54Z","ping":{"jitter":1.367,"latency":9.0 700000000000003},"download":{"bandwidth":5104332," bytes":74175048,"elapsed":15000},"upload":{"bandwi dth":5537088,"bytes":76930542,"elapsed":15015},"pa cketLoss":1.0101010101010102,"isp":"TK Telekom sp. z o.o.","interface":{"internalIp":"172.18.0.2","name ":"eth0","macAddr":"02:42:AC:12:00:02","isVpn":fal se,"externalIp":"xxx.xxx.xxx.xxx"},"server":{"id":1 4781,"name":"Powszechna Agencja Informacyjna S.A.","location":"Warszawa","country":"Poland","ho st":"speedtest.pagi.pl","port":8080,"ip":"212.69.6 4.212"},"result":{"id":"da3fe3ea-d3d3-4f65-bc1c-da78e1ad9848","url":"https://www.speedtest.net/result/c/da3fe3ea-d3d3-4f65-bc1c-da78e1ad9848"}}
Comment