I'm sending in the following to acknowlege an event....
What I'm seeing in the perl response is that :
I'm not sure what this means and how can I see what ZABBIX is actually returning?
Thanks
R
Code:
my $json = '{"jsonrpc" => "2.0","method" => "event.acknowledge","params" => {"eventids" => "$eventid","message"=> "'.$message.'"},"auth" => "'.$authid.'","id"=> "1"}';
open(FILE, '>> /var/tmp/result.tallinn.out');
print FILE "||||||||||||\\n";
print FILE $json;
my $client = new JSON::RPC::Client;
my $result = $client->call($uri,$json); <<<<<---LINE 71
print FILE Dumper($result);
print FILE 'result';
print FILE $result;
print FILE "||||||||||||\\n";
close(FILE);
Code:
not hashref. at /home/dkfjdk/read_email_robert.pl line 71.
Thanks
R