You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using z.HostCreate to create SNMP type hosts, I think Details should not need slicing, using slicing will report an error: Incorrect arguments passed to function.
#5
Open
want-u opened this issue
Dec 20, 2022
· 0 comments
{"jsonrpc":"2.0","method":"host.create","params":[{"host":"api-snmp-host","groups":[{"groupid":16}],"interfaces":[{"dns":"","ip":"127.0.0.1","main":1,"port":"161","type":2,"useip":1,"details":[{"version":2,"community":"{$SNMP_COMMUNITY}"}]}]}],"auth":"0431bdb48d29fd8ebb7de518b68a3c52","id":1}
[LOG]2022/12/20 20:52:56 main.go:156: [HostCreate error]: Incorrect arguments passed to function. Invalid params.
The text was updated successfully, but these errors were encountered: