Skip to content
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

[SQL Server] 'SQLServer' object has no attribute 'check_id' #3736

Open
andrewwillans opened this issue May 10, 2018 · 0 comments
Open

[SQL Server] 'SQLServer' object has no attribute 'check_id' #3736

andrewwillans opened this issue May 10, 2018 · 0 comments

Comments

@andrewwillans
Copy link

We are attempting to set up on in one of our data centres on windows server core, unfortunately when starting the service we get this error:

2018-05-10 14:55:03 GMT | ERROR | (datadog_agent.go:133 in LogMessage) | (sqlserver.py:154) | INitialization exception 'SQLServer' object has no attribute 'check_id'
Traceback (most recent call last):
File "C:\Program Files\Datadog\Datadog Agent\embedded\lib\site-packages\datadog_checks\sqlserver\sqlserver.py", line 132, in init
with self.open_managed_db_connections(instance, None, db_name=self.DEFAULT_DATABASE):
File "C:\Program Files\Datadog\Datadog Agent\embedded\lib\contextlib.py", line 17, in enter
return self.gen.next()
File "C:\Program Files\Datadog\Datadog Agent\embedded\lib\site-packages\datadog_checks\sqlserver\sqlserver.py", line 570, in open_managed_db_connections
self.open_db_connections(instance, db_key, db_name)
File "C:\Program Files\Datadog\Datadog Agent\embedded\lib\site-packages\datadog_checks\sqlserver\sqlserver.py", line 622, in open_db_connections
tags=service_check_tags, message=message)
File "C:\Program Files\Datadog\Datadog Agent\bin\agent\dist\checks_init_.py", line 199, in service_check
aggregator.submit_service_check(self, self.check_id, name, status, tags, hostname, message)
AttributeError: 'SQLServer' object has no attribute 'check_id'

Here is the contents of the YAML for sql server

init_config:

instances:
- host: 127.0.0.1, 1433
connector: odbc
username: datadog
password: ****
tags:
- optional_tag

Can you see anything we’re obviously doing wrong?
The datadog user can connect just fine to the host using sqlcmd.

@andrewwillans andrewwillans changed the title [SQL Server] [SQL Server] 'SQLServer' object has no attribute 'check_id' May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant