\ZabbixAPI
Class ZabbixAPI
Zabbix 3.xx API implementation
Synopsis
class ZabbixAPI
{
- // members
- protected $ubConfig = NULL;
- protected string $apiHostURL = '';
- protected string $authLogin = '';
- protected string $authPasswd = '';
- protected string $authToken = '';
- // methods
- public void __construct()
- public string getConnectionToken()
- public string runQuery()
- public string getAuthToken()
Members
protected
Methods
public
- __construct()
- getAuthToken() — Auth token getter
- getConnectionToken() — Connects to Zabbix host and returns a token string if successful
- runQuery() — Runs a data query to Zabbix host and returns result as a JSON string