Okay, I have configured 15+ hosts for monitoring, and I am trying to learn the API. I've tried several commands and literally cut-and-paste the JSON from the examples. Why do I always get an empty result set???
Sent this:
{
"jsonrpc": "2.0",
"method": "hostgroup.get",
"params": {
"output": "extend",
"sortfield": "name"
},
"id": 1,
"auth": "7a5cf735d66a8c20b0f9b6d25fc3d200"
}
I always get this back no matter what command I send across:
{"jsonrpc":"2.0","result":[],"id":1}
Sent this:
{
"jsonrpc": "2.0",
"method": "hostgroup.get",
"params": {
"output": "extend",
"sortfield": "name"
},
"id": 1,
"auth": "7a5cf735d66a8c20b0f9b6d25fc3d200"
}
I always get this back no matter what command I send across:
{"jsonrpc":"2.0","result":[],"id":1}
Comment