-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlserver azuredb=true gives segfault #5456
Comments
The azuredb option essentially adds this query, could you try to run it by hand?
cc @m82labs |
@mmriis , sorry to barge in on your case, but I've been trying to get this plugin working a long time with SQL Database, see #4222. If it works for you (as it seems to do except for the query above), would you mind sharing how you created the telegraf database user? At least when I tried last time the grants mentioned in the documentation don't work in Azure. |
@erik-wramner Didn't create a seperate user for telegraf. Just ran |
@mmriis thanks. Just to recap so I haven't missed anything. We have a super admin for the whole server, sa. Then we have a dbo user for each database. It doesn't make sense to grant anything to the super user, so I assume that you have created a dbo user for your specific database with |
@danielnelson it works. Thank you very much! |
Relevant telegraf.conf:
System info:
Telegraf 1.9.4
AzureSQL Standard
Steps to reproduce:
telegraf -test -debug -config=/etc/telegraf/telegraf.conf
Expected behavior:
Actual behavior:
2019-02-20T08:44:40Z I! Starting Telegraf 1.9.4
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x142b968]
goroutine 30 [running]:
github.com/influxdata/telegraf/plugins/inputs/sqlserver.(*SQLServer).accRow(0xc0002e2b80, 0x22969b2, 0x263, 0x1, 0xc0003bc540, 0xc, 0xc, 0x252f720, 0xc000170820, 0x2500620, ...)
/go/src/github.com/influxdata/telegraf/plugins/inputs/sqlserver/sqlserver.go:222 +0x738
github.com/influxdata/telegraf/plugins/inputs/sqlserver.(*SQLServer).gatherServer(0xc0002e2b80, 0xc000250121, 0x86, 0x22969b2, 0x263, 0x1, 0xc0003bc540, 0xc, 0xc, 0x252f720, ...)
/go/src/github.com/influxdata/telegraf/plugins/inputs/sqlserver/sqlserver.go:178 +0x20c
github.com/influxdata/telegraf/plugins/inputs/sqlserver.(*SQLServer).Gather.func1(0xc00018b4b0, 0x252f720, 0xc000170820, 0xc0002e2b80, 0xc000250121, 0x86, 0x22969b2, 0x263, 0x1, 0x0, ...)
/go/src/github.com/influxdata/telegraf/plugins/inputs/sqlserver/sqlserver.go:141 +0xb7
created by github.com/influxdata/telegraf/plugins/inputs/sqlserver.(*SQLServer).Gather
/go/src/github.com/influxdata/telegraf/plugins/inputs/sqlserver/sqlserver.go:139 +0x1e8
shell returned 2
Additional info:
Removing
azuredb = true
fixes behavior...The text was updated successfully, but these errors were encountered: