disc / php-zabbix-sender
zabbix_sender实用工具的PHP实现。与Zabbix 2.0.8、2.1.7+和4.0版本兼容。
1.3.2
2021-09-14 09:19 UTC
Requires
- php: >=5.4
Requires (Dev)
- codeception/aspect-mock: ^2.0
- mockery/mockery: ^0.9.9
- phpunit/phpunit: ~5.7
README
概要
Zabbix Sender客户端的现代PHP实现。
支持PHP 5.4及以上版本。
与Zabbix 2.0.8、2.1.7+兼容,并支持4.0版本。
代码示例
易于使用
$sender = new \Disc\Zabbix\Sender('localhost', 10051);
$sender->addData('hostname', 'some.key.2', 0.567);
$sender->send();
查看sample/sample.php
安装
使用composer进行安装 composer require disc/php-zabbix-sender
测试
运行vendor/bin/phpunit
进行测试
贡献者
Alexandr Hacicheant [a.hacicheant@gmail.com]