2017 © Pedro Peláez
 

library phpzabbix

PHP Zabbix API Client

image

ikke/phpzabbix

PHP Zabbix API Client

  • Thursday, December 7, 2017
  • by Ikke
  • Repository
  • 1 Watchers
  • 2 Stars
  • 629 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 18 % Grown

The README.md

PHPZabbix

Zabbix PHP API library based on [pyzabbix]0., (*1)

Example

$api = phpzabbix\PHPZabbix::withDefaultClient('http://example.com/zabbix/api_jsonrpc.php');
$api->login('username', 'password');

$hosts = $api->host->get(['output' => ['hostid', 'name']]);

Error handling

The following exceptions can be thrown:, (*2)

  • phpzabbix\Exception\NotAuthorized when trying to make an API call with an invalid or expired auth hash., (*3)

  • phpzabbix\Exception\InvalidCredentials when trying to login with invalid credentials., (*4)

  • phpzabbix\JSONRPC\ErrorException on other errors, such as invalid API calls, (*5)

Documentation

The PHPZabbix class does not know every API call, but just translates $api->obj->method() to 'obj.method'. The method call takes an array which is passed as params., (*6)

Refer to the Zabbix API for more information about the Zabbix API itself., (*7)

Compattibility

This library should work with Zabbix 3.0 and higher. Older versions should also work, but that has not been verified., (*8)

License

This code is distributed under the GPLv3 license., (*9)

The Versions

07/12 2017

dev-master

9999999-dev

PHP Zabbix API Client

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Kevin Daudt

07/12 2017

v0.3

0.3.0.0

PHP Zabbix API Client

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Kevin Daudt

11/04 2017

v0.2.1

0.2.1.0

PHP Zabbix API Client

  Sources   Download

GPL-3.0

The Requires

 

by Kevin Daudt

04/02 2017

0.1

0.1.0.0

PHP Zabbix API Client

  Sources   Download

GPL3

The Requires

 

by Kevin Daudt