- ✅ Unencrypted connection to Zabbix Server
- ✅ TLS PSK connection to Zabbix Server
- ❌ TLS RSA connection to Zabbix Server (in progress)
All sender options in zabbix docs https://www.zabbix.com/documentation/current/en/manpages/zabbix_sender
composer require webmasterskaya/php-zabbix-sender
- Create trapper item on Zabbix Server (https://www.zabbix.com/documentation/current/en/manual/config/items/itemtypes/trapper)
- Init connection
$sender = new \Webmasterskaya\ZabbixSender\ZabbixSender([
'server' => '127.0.0.1',
'host' => 'testhost',
]);
- Send data
$sender->send('testtrapper', 'testdata');
- Check result
echo $sender->getLastResponseInfo()->getTotal(); #1