the below works ok but I'm looking how to get the hostnames/realnames back from the API and not just a serviceID.
If that is not possible any ideas on how to achieve this are appreciated.
If that is not possible any ideas on how to achieve this are appreciated.
Code:
$content4 = '{
"jsonrpc":"2.0",
"method":"service.getsla",
"params":{
"output":["host"],
"intervals":
[
{"from": "'.$fromtime.'","to":"'.$now.'"}
]
},
"auth":"2ec8d1a216a4b2e2beed891650b5b966",
"id":"2"
}';