Zabbix Mssql Failed To Fetch Info Data -or No Data For 30m- !!install!!
For security and integration mapping, do not hardcode your database username and password into the system-level odbc.ini configuration file. Instead, handle authentication entirely within the Zabbix frontend by leveraging the following host macros: $MSSQL.USER $MSSQL.PASSWORD
: Ensure the Zabbix monitoring user has the following permissions on the MSSQL instance: VIEW SERVER STATE (for 2017/2019) or VIEW SERVER PERFORMANCE STATE (for 2022). VIEW ANY DEFINITION Access to the database for job monitoring. Correct Connection Syntax
If you are using the official MSSQL by ODBC template, Zabbix relies on the native ODBC driver installed on the Zabbix server or proxy. Check the user macros configured on your Zabbix host:
Set DebugLevel=4 in zabbix_agentd.conf . Restart the agent, then reproduce the issue. Look for lines containing odbc , sql , or UserParameter . zabbix mssql failed to fetch info data -or no data for 30m-
If this returns nothing, the instance name is wrong, or the ODBC DSN entry is missing.
"action_name": "MSSQL Fetch Failure Alert", "conditions": "trigger_name": "MSSQL: Failed to fetch info data OR no data for 30m", "trigger_severity": ["high", "disaster"] , "operations": "default_subject": "CRITICAL: MSSQL data fetch failed on HOST.NAME", "default_message": "Problem started at EVENT.TIME on EVENT.DATE\n Problem name: TRIGGER.NAME\n Host: HOST.NAME\n Severity: TRIGGER.SEVERITY\n\n Original event ID: EVENT.ID\n Check MSSQL connectivity:\n 1. Verify SQL Server is running\n 2. Check firewall rules\n 3. Validate credentials in Zabbix configuration\n 4. Review SQL error logs\n\n Last 5 fetch attempts: ITEM.VALUE<ms.sql[fetch_data],5>", "recovery_subject": "RECOVERY: MSSQL fetch restored on HOST.NAME", "recovery_message": "Problem resolved at EVENT.RECOVERY.TIME\n Duration: EVENT.DURATION\n Host: HOST.NAME"
To isolate whether the problem lies within the Zabbix frontend configuration or the local agent environment, run a manual test directly from the command line. Testing Agent 2 Plugin: For security and integration mapping, do not hardcode
The customer portal, which relied on that data for a "system status" widget, showed a spinning circle. Then a dash. Then a blank page.
The Zabbix trigger alert indicates that your Zabbix server or agent cannot retrieve performance metrics from your Microsoft SQL Server instance. This error usually stems from an environment-level breakdown rather than an issue with SQL Server itself, often caused by misconfigured authentication, missing database permissions, network/firewall blocks, or TLS certificate mismatches .
This piece will trigger when:
: Ensure the mssql.conf file is located in the zabbix_agent2.d/plugins.d/ directory.
. This is most often caused by incorrect credentials, missing ODBC drivers, or misconfigured connection parameters. Common Causes and Solutions Missing or Misconfigured ODBC Driver
Zabbix agent (Windows) comes in both 32-bit and 64-bit flavors. The ODBC Driver for SQL Server must match the , not the OS bitness. Correct Connection Syntax If you are using the
user wants a long article about the Zabbix error "failed to fetch info data -or no data for 30m-" related to MSSQL monitoring. The plan outlines the steps. I'll follow the plan to search for relevant information. search results provide some relevant information. The first search result (0) is a Hungarian forum post that might contain useful details. The second result (1) is a Zabbix support page, and the fourth result (4) seems to be a general "no data for 30m" issue. I need to open these pages to gather more information. opened pages provide some information. The Hungarian forum post mentions ODBC drivers and permissions. The Zabbix support page (ZBX-24254) discusses timeout issues. The Leapswitch knowledgebase article provides general troubleshooting steps for MySQL, which might be adaptable. The ZBX-24106 page is about MySQL, not MSSQL. I need more specific information about the MSSQL template, ODBC driver installation, and troubleshooting steps. I'll search for more detailed resources. search results provide a good mix of official documentation, community discussions, and issue reports. The user's question has high authority requirements, I should prioritize using official Zabbix documentation and verified community reports. The error "MSSQL: Failed to fetch info data (or no data for 30m)" is likely due to ODBC connectivity issues, timeout misconfigurations, permission problems, or the Zabbix agent's inability to reach the MSSQL instance. The article should cover common causes: ODBC driver not installed, incorrect DSN configuration, missing or incorrect macros, Zabbix agent misconfiguration, connectivity issues (firewall, DNS, ports), missing permissions on the MSSQL user, query timeout limitations, and the need to increase timeouts in Zabbix configuration. The structure will include an introduction, a breakdown of root causes, a systematic troubleshooting guide, Zabbix configuration fixes, and a conclusion. I will cite relevant sources. search results provide enough information to write a comprehensive article. I will structure the article with an introduction, a breakdown of the root causes, a systematic step-by-step guide for troubleshooting, a dedicated section on Zabbix configuration adjustments (including the ODBC method and the Agent 2 plugin), a checklist, and a conclusion. error is one of the most common and frustrating problems when configuring Microsoft SQL Server monitoring in Zabbix. The alert triggers when Zabbix has not received new data from the target host for 30 minutes. For database monitoring, this typically means that Zabbix attempted to connect to the SQL Server but failed to retrieve data, resulting in a ZBX_NOTSUPPORTED status for the related items.