Answer the question
In order to leave comments, you need to log in
What is wrong in the request to zabbix?
I make a request through the zabbix api:
{
"jsonrpc": "2.0",
"auth": "8208fce965ec4a1ce2570d0027a5db77",
"method": "httptest.create",
"params": {
"name": "Homepage check",
"hostid": "10084",
" steps": [
{
"name": "Homepage",
"url": " mycompany.com ",
"status_codes": 200,
"no": 1
},
{
"name": "Homepage / About",
"url": " mycompany.com/about ",
"status_codes": 200,
"no": 2
}
]
},
}
{
"jsonrpc": "2.0",
"error": {
"code": -32600,
"message": "Invalid Request.",
"data": "JSON-rpc version is not specified."
},
"id": null
}
Answer the question
In order to leave comments, you need to log in
do you specify content type?
POST -H 'Content-Type: application/json-rpc'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question