Monitoring Azure SQL

Hi, is it possible to monitor an Azure SQL instance? I presume that the Azure SQL needs to be on a VM in Azure where we can put an agent in order to monitor it and therefore create some rules against the database?
Is there anything in future versions that could support this (currently we are on 2.2.0p18).

Hi,

I think this is possible with the new mssql check in checkmk 2.3

Is there a link which describes this? How can it monitor if it can’t get the agent onto the instance?

Any further info I do see this. Does this mean a SQL managed instance in Azure can be monitored if there is no VM.

Although this would rely on us getting our Subscriptions working which I have a support ticket open for which is an essential part of our requirements.

I think the data is being fetched via SQL commands remotely and no checkmk agent in necessary on the the db server.

This is interesting and could be very useful for us. Would it rely on getting the Azure subscriptions and resource groups? Because I’m not confident about getting this resolved (due to Microsoft Rate Limits).
Or can this be setup separately?

With the new MSSQL agent plugin in 2.3 , it is possible to monitor MSSQL databases locallly as well as remotely. For remote, it can also be a standard Database remote cloud based headless service with a VM attached to it.

So we have SQL Managed instances in Azure where no VM is used. This is what I need to know if it can be monitored or not as I’d like to apply some of the SQL rules to the databases to create services for them in checkmk.
I’m not sure if this is possible if there is no ā€˜host’ or VM in checkmk that represents these?
Or with 2.3 if this is possible to create a service from monitoring this SQL instance?

We run the enterprise version, so will this be available in this or only the cloud version?

I have upgraded to version 2.3.
Can anyone point me in the direction of the documentation to remotely monitor the Azure SQL instances?

Is there documentation on how to configure this?

Is there documentation on how to configure this? We want to be able to monitor table error logs in a SQL instance in Azure.

Is it possible to also monitor Azure Cosmos DB in the same way?

Its possible now Werk #17540: Microsoft SQL Server plugin supports now Azure SQL Server monitoring

2 Likes

How though, is there any documentation with this?

Any documentation around this one yet?

1 Like

The monitoring should be done by a device with Checkmk Agent + SQL Plugin. In Agent Bakery you can define the parameters:
image

You could deploy the agent on Checkmk Server and use it to query your remote instance, at least theoretically.

Yes in ā€˜theory’, does it work though? There’s no documentation around this.
What would the hostname be, the Azure SQL database IP address?

1 Like

Yes, but ideally you will provide the DNS in use for that connection.

Ideally, you just need ā€œhostnameā€ , ā€œusernameā€ and ā€œpasswordā€ . That’s it. You will be connecting the remote Azure SQL service. There is nothing else attached to it. For example, below is more than enough:

/usr/lib/check_mk_agent/plugins# cat /etc/check_mk/mk-sql.yml
---
mssql:
  main:
    authentication:
      username: username 
      password: password 
      type: sql_server
    connection:
      hostname: myazuredatabaseserver.database.windows.net
      port: 1433
      trust_server_certificate: true

Before that, try to do a basic telnet/nc to check whether the port is reachable or not.

1 Like

Is there any Azure SQL Database documentation yet?