PHP >= 7.1.3 with CURL
sendmail_path = "/usr/sbin/sendmail -t -i -f no-reply@your-domain.com"
$ cd /opt/
$ git clone https://github.com/heximcz/kresd-stats-zabbix
$ cd /opt/kresd-stats-zabbix/
$ composer install --no-dev --optimize-autoloader
$ cp ./config.default.yml ./config.yml
php ./kresd-stats.php
php ./kresd-stats.php stats:prepare -h
php ./kresd-stats.php stats:get -h
php ./kresd-stats.php stats:prepare -i <ip address> -p <port>
php ./kresd-stats.php stats:get <param> -i <ip address> -p <port>
add this lines to your /etc/crontab:
* * * * * root /usr/local/sbin/php /opt/kresd-stats-zabbix/kresd-stats.php stats:prepare
* * * * * root sleep 30 && /usr/local/sbin/php /opt/kresd-stats-zabbix/kresd-stats.php stats:prepare
...
Zabbix template and UserParams
MIT