Sidebar

api:graph:exists

Table of Contents

exists()

Available since version: 1.8.3
This function allows you to check whether graph with given graph data exists.

Parameters

ParameterTypeOptionalDescriptionDetails
nodeidsarrayyes List of node IDs where to search for given graph
namestringNo Graph name
hostidstringyes Host ID
hoststringyes Host name

Returns

ParameterDescription
resultOperation successful. Result will contain boolean variable.
errorIn case of any errors

Example

Check if graph with name “CPU Loads” exists for host “ZABBIX-Server”

{
"jsonrpc":"2.0",
"method":"graph.exists",
"params":{
	"host": "ZABBIX-Server",
	"name": "CPU Loads"
},
"auth":"3a57200802b24cda67c4e4010b50c065",
"id":2
}

Graph exists:

{
"jsonrpc":"2.0",
"result": true,
"id":2
}