zabbix-graphql-api/docs/queries
Andreas Hilbig 5da4a17e36 feat: implement weather sensor extension and enhance device interfaces
This change introduces the Weather Sensor device type which retrieves data from public APIs, and enhances the core Host/Device interfaces to provide consistent access to inventory and items across all specialized device types. It also improves search logic and fixes several bugs identified during implementation.

- Weather Sensor Extension: Added schema and recipe for a device retrieving weather data via Zabbix HTTP agent items.

- Interface Enhancements: Added inventory and items fields to Host and Device interfaces to ensure all device specialized types have consistent access to monitoring and inventory data.

- Search Logic Improvements: Enhanced ParsedArgs to support searchByAny and technical name (host) searches when a name pattern is provided.

- Bug Fixes:

  - Fixed getLocations argument order in the Zabbix API datasource.

  - Implemented deduplication for groupids and templateids in HostImporter to prevent Zabbix duplicate value errors.

  - Added missing url field to CreateTemplateItem for HTTP Agent item support.

- Testing:

  - Extended the regression test suite with 4 new automated checks covering the fixed bugs.

  - Updated Jest tests to accommodate the improved search parameters.

- Documentation: Updated cookbook and test specifications to reflect new features and regression testing obligations.
2026-02-01 06:56:23 +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_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: implement weather sensor extension and enhance device interfaces 2026-02-01 06:56:23 +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.