I'm very new to Zabbix and trying to make a script item so I can write to a coil on my device with SNMP. So, I need to use snmpset to write 1 to the coil's OID to do the action detailed in the coil. When I test my item, I get and error saying: "Cannot compile script: SyntaxError: unterminated statement (line 1)". This is my first time trying to make a script item and I can't find anything about this error message in the forums. Here is my script setup and test:

Ad Widget
Collapse
Script Item not compiling
Collapse
X
-
Script type means JavaScript, not bash or something else... https://www.zabbix.com/documentation...emtypes/script -
I see what you mean now. Again I'm really new to Zabbix so when I saw this forum: https://www.zabbix.com/forum/zabbix-...et-with-zabbix talking about using snmpset in scripts in Zabbix, I thought it was talking about item scripts as that was the only type of scripts I found in the appliance. Looking more at JavaScript I don't know if it's feasible to write to my SNMP items in JSON. Is there any other way to write to my SNMP items in the appliance?Last edited by AKC99; 10-04-2024, 17:13.Comment
Comment