Skip to content

webmasterskaya/php-zabbix-sender

Repository files navigation

PHP Implementation of Zabbix Sender

  • ✅ 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

Install

composer require webmasterskaya/php-zabbix-sender

Quick start

  1. Create trapper item on Zabbix Server (https://www.zabbix.com/documentation/current/en/manual/config/items/itemtypes/trapper)
  2. Init connection
$sender = new \Webmasterskaya\ZabbixSender\ZabbixSender([
  	'server' => '127.0.0.1',
  	'host' => 'testhost',
  ]);
  1. Send data
$sender->send('testtrapper', 'testdata');
  1. Check result
echo $sender->getLastResponseInfo()->getTotal(); #1  

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages