Hello,
I have migrated an old Zabbix 3.2.4 to 6.4.
In order to monitor only certain services, I have a discovery rule that uses a Powershell script to determine the services to be monitored on a server and create the corresponding items using an item prototype. I have adapted the script to the new notation.
In the list of discovery rules for a given host, I get the following message: "Invalid discovery rule value: cannot close top level object"
Unfortunately, I cannot find an explanation of what this message refers to. Is the error to be found in the return array of the script or in the configuration?
Return array:
My LLD configuration

What is incorrectly configured or missing in my configuration?
I have migrated an old Zabbix 3.2.4 to 6.4.
In order to monitor only certain services, I have a discovery rule that uses a Powershell script to determine the services to be monitored on a server and create the corresponding items using an item prototype. I have adapted the script to the new notation.
In the list of discovery rules for a given host, I get the following message: "Invalid discovery rule value: cannot close top level object"
Unfortunately, I cannot find an explanation of what this message refers to. Is the error to be found in the return array of the script or in the configuration?
Return array:
Code:
[
{
"{#SERVICESTATE}": "Running",
"{#SERVICEDISPLAY}": "Apache Tomcat 9.0 FAV2",
"{#SERVICENAME}": "FAV2",
"{#SERVICEDESC}": "Apache Tomcat 9.0.27 Server - https://tomcat.apache.org/",
"{#SERVICEDIR}": "D:/apache-tomcat-9/bin/"
},
{
"{#SERVICESTATE}": "Running",
"{#SERVICEDISPLAY}": "Apache Tomcat 9.0 DA",
"{#SERVICENAME}": "DA",
"{#SERVICEDESC}": "Apache Tomcat 9.0.27 Server - https://tomcat.apache.org/",
"{#SERVICEDIR}": "D:/apache-tomcat-9/bin/"
},
{
"{#SERVICESTATE}": "Running",
"{#SERVICEDISPLAY}": "Apache Tomcat 9.0 WS",
"{#SERVICENAME}": "WS",
"{#SERVICEDESC}": "Apache Tomcat 9.0.27 Server - https://tomcat.apache.org/",
"{#SERVICEDIR}": "D:/apache-tomcat-9/bin/"
}
]
What is incorrectly configured or missing in my configuration?
Comment