Hello,
i am not verry a Pro But basicly i can Read Documenattion. I Made a Script based on The Templates for Sending Messages to Our Mesaging Server. The Test Button Works but Zabbix It self get a Erro out when it comes to an Event. Can Somebody Help?
The Error is
Error: cannot get URL: URL using bad/illegal format or missing URL.
at [anon] (httprequest.c:245) internal
at [anon] () native strict preventsyield
at [anon] (function:7) preventsyield
My Webhook Script is
var req = new CurlHttpRequest();
var params = JSON.parse(value);
req.AddHeader('Content-Type: application/x-www-form-urlencoded');
req.Get ('http://my.awsome.url/[email protected]&message-type=auto&message='+params.Message,
'payload='+value
);
return "STATUS:200 Success: Message accepted by the HTTP server";
Zabbix.Log(4, 'response code: '+req.Status());
result = {};
return JSON.stringify(result);
i am not verry a Pro But basicly i can Read Documenattion. I Made a Script based on The Templates for Sending Messages to Our Mesaging Server. The Test Button Works but Zabbix It self get a Erro out when it comes to an Event. Can Somebody Help?
The Error is
Error: cannot get URL: URL using bad/illegal format or missing URL.
at [anon] (httprequest.c:245) internal
at [anon] () native strict preventsyield
at [anon] (function:7) preventsyield
My Webhook Script is
var req = new CurlHttpRequest();
var params = JSON.parse(value);
req.AddHeader('Content-Type: application/x-www-form-urlencoded');
req.Get ('http://my.awsome.url/[email protected]&message-type=auto&message='+params.Message,
'payload='+value
);
return "STATUS:200 Success: Message accepted by the HTTP server";
Zabbix.Log(4, 'response code: '+req.Status());
result = {};
return JSON.stringify(result);
Comment