Hello,
I am trying to monitor a kubernetes cluster via the API url.
I finally managed to make a curl request work:
Unfortunately, I keep receiving this error in log:
As it is a self-signed certificate, I am suspecting that "response = request.get(url);" tries to validate it.
Do you know if it possible to avoid that validation in a Javascript item? Or maybe to import the certificate into any keystore that Zabbix is using.
Regards,
Olivier
I am trying to monitor a kubernetes cluster via the API url.
I finally managed to make a curl request work:
Code:
curl -vk https://192.168.1.30:32774/api/v1/nodes --header "Authorization: Bearer $TOKEN" |head
...
{
"kind": "NodeList",
"apiVersion": "v1",
"metadata": {
"resourceVersion": "5199"
},
"items": [
{
...
Code:
[ Kubernetes ] ERROR: Error: cannot get URL: Couldn't connect to server.
Do you know if it possible to avoid that validation in a Javascript item? Or maybe to import the certificate into any keystore that Zabbix is using.
Regards,
Olivier
Comment