bufanda / zabbix--template-xenorchestra

These are templates for the Zabbix monitoring solution to monitor VM resources in XenOrchestra
14 stars 4 forks source link

JavaScript syntax errors #3

Closed billcouper81 closed 3 weeks ago

billcouper81 commented 4 months ago

Hi.

I just installed this today with the Zabbix 6.4 version template. Error during discovery about missing [ or { near 520.

All of the discovery rule run JavaScript and the if statement that returns 520 is missing {}'s. This in every discovery rule. After wrapping every "return 520" lines in {}'s all discovery rule working.

billcouper81 commented 4 months ago

for example had to add 4 braces to this javascript image

bufanda commented 2 months ago

Weird. It works on my 6.4.17 install just fine. Are you using Zabbix 7? I haven't tested it for Zabbix 7 yet.

bufanda commented 3 weeks ago

I incooparated your suggestion into the template. Hope it will prevent you from editing it if you pull a new version in the future. The commit regard the change is 2ecaa37.