\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
- $apiHostURL
—
string
Zabbix host URL/IP - $authLogin
—
string
Zabbix login - $authPasswd
—
string
Zabbix password - $authToken
—
Zabbix connection token for communication after successful auth - $ubConfig
—
null
Placeholder for $this->ubConfig object
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