Hello
I'd like to use the zabbix API in PHP in order to display the items with a specific tag.
I use Zabbix 6.0 and an authentification by token.
The request, I tried is :
itemRequest = [
The request displays the differents items of thehost, but don't filter anything.
I tried different syntaxes but none is working.
Thank you for your help.
I'd like to use the zabbix API in PHP in order to display the items with a specific tag.
I use Zabbix 6.0 and an authentification by token.
The request, I tried is :
itemRequest = [
'jsonrpc' => '2.0',
'method' => 'item.get',
'params' => [
'method' => 'item.get',
'params' => [
'hostids' => '10633',
'output' => ['itemid', 'name', 'lastvalue'],
'selectTags' => 'extend',
'filter' => [
'output' => ['itemid', 'name', 'lastvalue'],
'selectTags' => 'extend',
'filter' => [
'tags' => [
'tag' => 'filesystem',
'value' => '/'
'tag' => 'filesystem',
'value' => '/'
]
]
],
'auth' => $authToken,
'id' => 1
];'auth' => $authToken,
'id' => 1
The request displays the differents items of thehost, but don't filter anything.
I tried different syntaxes but none is working.
Thank you for your help.
Comment