I'm creating a script to acknowledge a trigger and send a message to Zabbix's API. Below is my section that handles the data:
PHP Code:
$data = json_encode([
'jsonrpc' => '2.0',
'method' => 'event.acknowledge',
'params' => [
"eventids" => $trigger_id, // ID of the event you want to acknowledge
"action" => 6,
"message" => $message // Custom message for acknowledgment
],
'auth' => $auth_token,
'id' => 1
]);
PHP Code:
{"code":-32500,"message":"Application error.","data":"No permissions to referred object or it does not exist!"}
Comment