zabbix-graphql-api/docs/queries
Andreas Hilbig ad104acde2 feat: add GroundValueChecker and WeatherSensorDevice with public API integration
This commit introduces two new device types, GroundValueChecker and WeatherSensorDevice, which leverage public APIs (BORIS NRW and Open-Meteo) for real-time data collection. It also includes several API enhancements and fixes to support these new integrations.

Detailed changes:
- **New Device Types**:
  - Added GroundValueChecker schema and integration with BORIS NRW WMS via Zabbix Script items.
  - Added WeatherSensorDevice schema and integration with Open-Meteo via Zabbix HTTP Agent items.
- **API Enhancements**:
  - Added error field to ZabbixItem for item-level error reporting.
  - Updated CreateTemplateItem mutation input to support params (for Script items) and timeout.
  - Registered missing scalar resolvers: JSONObject, DateTime, and Time.
- **Performance & Reliability**:
  - Implemented batch fetching for item preprocessing in both host and template queries to reduce Zabbix API calls and ensure data visibility.
  - Updated template_importer.ts to correctly handle Script item parameters.
- **Documentation**:
  - Consolidated public API device recipes in docs/howtos/cookbook.md.
  - Added guidance on analyzing data update frequency and setting reasonable update intervals (e.g., 1h for weather, 1d for ground values).
- **Testing**:
  - Added new regression test REG-ITEM-META to verify item metadata (units, description, error, preprocessing) and JSONObject scalar support.
  - Enhanced RegressionTestExecutor with more detailed host-item relationship verification.
2026-02-01 21:07:21 +01:00
..
from_zabbix_docs feat: add Zabbix 7.4 documentation samples and importHostGroups MCP tool 2026-01-31 10:52:56 +01:00
README.md docs: complete documentation refactoring and structure optimization 2026-01-30 15:08:19 +01:00
sample_all_devices_query.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00
sample_all_host_groups_query.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00
sample_all_hosts_query.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00
sample_all_template_groups_query.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00
sample_delete_template_groups_mutation.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00
sample_delete_templates_mutation.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00
sample_export_user_rights_query.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00
sample_import_distance_tracker_template.graphql docs: refactor documentation and upgrade to Node.js 24 2026-01-30 14:35:31 +01:00
sample_import_ground_value_checker_template.graphql feat: add GroundValueChecker and WeatherSensorDevice with public API integration 2026-02-01 21:07:21 +01:00
sample_import_host_groups_mutation.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00
sample_import_host_template_groups_mutation.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00
sample_import_hosts_mutation.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00
sample_import_permissions_template_groups_mutation.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00
sample_import_templates_mutation.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00
sample_import_user_rights_mutation.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00
sample_import_weather_sensor_template.graphql feat: add GroundValueChecker and WeatherSensorDevice with public API integration 2026-02-01 21:07:21 +01:00
sample_templates_query.graphql chore: add MCP integration and refactor documentation into modular how-to guides 2026-01-30 00:47:02 +01:00

Sample Queries & Mutations

This directory contains practical examples of GraphQL operations for the Zabbix GraphQL API. You can use these as templates for your own automation or integration tasks.

📁 Available Samples

🖥️ Hosts

📄 Templates

📂 Template Groups

🔐 User Rights

For step-by-step guides on how to use these operations in common scenarios, see the Cookbook.