Azure Special Agent

CMK version: 2.2p12
**OS version:**N/A

Error message: [piggyback] Success (but no data found for this host), Missing monitoring data for plugins: azure_virtual_machine, azure_vm_cpu_utilization, azure_vm_disk, azure_vm_memory, azure_vm_network_io

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)

Azure/VM CPU Utilization PEND Check plugin received no monitoring data
Azure/VM Disk PEND Check plugin received no monitoring data
Azure/VM Memory PEND Check plugin received no monitoring data
Azure/VM Network IO PEND Check plugin received no monitoring data

After enabling Azure Hybrid Benefit licencing for the Virtual Machine, the monitoring data appears to have stopped being present from the Azure special agent. Is this an unsupported configuration or does anyone know if using Azure Hybrid Benefit doesnt work with the Azure API?

There have been some fixes in regards to Piggyback data since 2.2.0p12. Are you able to reproduce the problem on the latest 2.2.0x. ?
Also, I am not sure if Azure Hybrid Benefit will have any influence on the piggyback data not being available for a particular host.

@chauhan_sudhir thanks for the suggestion but after upgrading to the latest (p25), it is still having the same problem.
Works fine on anything that doesn’t have an Azure Hybrid Benefit licence attached, but for anything that does, there’s no data being retrieved from the subscription / resource group.

I don’t have any Azure VM with Hybrid benefit license attached but you can quickly check with a simple curl to this endpoint

This does retrieve some data from the API (posted below). If this is the same method that CheckMK is querying Azure, how would I go about debugging why the data is missing from these particular hosts?

{
    "cost": 2879,
    "timespan": "2024-04-05T03:00:00Z/2024-04-07T03:00:00Z",
    "interval": "PT1M",
    "value": [
        {
            "id": "/subscriptions/<subscription>/resourceGroups/<resourcegroup>/providers/Microsoft.Compute/virtualMachines/<hostname>/providers/Microsoft.Insights/metrics/Percentage CPU",
            "type": "Microsoft.Insights/metrics",
            "name": {
                "value": "Percentage CPU",
                "localizedValue": "Percentage CPU"
            },
            "displayDescription": "The percentage of allocated compute units that are currently in use by the Virtual Machine(s)",
            "unit": "Percent",
            "timeseries": [
                {
                    "metadatavalues": [],
                    "data": [
                        {
                            "timeStamp": "2024-04-05T03:00:00Z",
                            "average": 3.83
                        }
                    ]
                }
            ],
            "errorCode": "Success"
        }
    ],
    "namespace": "Microsoft.Compute/virtualMachines",
    "resourceregion": "uksouth"
}

Are you using Raw or Enterprise edition ?
You can simply look in the output of the special agent by running it manually or downloading the agent output whether you can even see all the required metrics of your VM.

Also, make sure that there is no local copy of the original check plugin.

I’m using the enterprise edition

If you want you can also open a ticket and share the agent output there so that we can analyse it further.

Looks like there is no piggyback data being written to a tmp file for the VM when running the special agent against the subscription. There are other tmp files being created for the other non Azure Hybrid Benefit VMs but unfortunately not for the ones with it enabled.

/omd/sites/Azure/tmp/check_mk/piggyback//