[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73KQWG25SEFGPY4CMRVAFRB":3,"skill-same:01M73KQWG25SEFGPY4CMRVAFRB":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M73KQWG25SEFGPY4CMRVAFRB","zabbix-api",null,"Zabbix monitoring system automation via API and Python. Use when: (1) Managing hosts, templates, items, triggers, or host groups, (2) Automating monitoring configuration, (3) Sending data via Zabbix trapper\u002Fsender, (4) Querying historical data or events, (5) Bulk operations on Zabbix objects, (6) Maintenance window management, (7) User\u002Fpermission management","bg-szy\u002FTOP-SKILLS","bg-szy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106576190?v=4","01M73A4E8KPV67SFXRY8XZGNBX","ShuZhiyong","01M73A4E96MQ294MHM74TZBVQD",6,"MIT","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fclaude-code-skills\u002Fzabbix-api\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fclaude-code-skills\u002Fzabbix-api\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: zabbix-api\ndescription: \"Zabbix monitoring system automation via API and Python. Use when: (1) Managing hosts, templates, items, triggers, or host groups, (2) Automating monitoring configuration, (3) Sending data via Zabbix trapper\u002Fsender, (4) Querying historical data or events, (5) Bulk operations on Zabbix objects, (6) Maintenance window management, (7) User\u002Fpermission management\"\nlicense: MIT\n---\n\n# Zabbix Automation Skill\n\n## Overview\n\nThis skill provides guidance for automating Zabbix monitoring operations via the API and official Python library `zabbix_utils`.\n\n## Quick Start\n\n### Installation\n\n```bash\npip install zabbix-utils --break-system-packages\n```\n\n### Authentication\n\n```python\nfrom zabbix_utils import ZabbixAPI\n\n# Option 1: Username\u002Fpassword\napi = ZabbixAPI(url=\"https:\u002F\u002Fzabbix.example.com\")\napi.login(user=\"Admin\", password=\"zabbix\")\n\n# Option 2: API token (Zabbix 5.4+, preferred)\napi = ZabbixAPI(url=\"https:\u002F\u002Fzabbix.example.com\")\napi.login(token=\"your_api_token\")\n\n# Verify connection\nprint(api.api_version())\n```\n\n### Environment Variables Pattern\n\n```python\nimport os\nfrom zabbix_utils import ZabbixAPI\n\napi = ZabbixAPI(url=os.environ.get(\"ZABBIX_URL\", \"http:\u002F\u002Flocalhost\u002Fzabbix\"))\napi.login(token=os.environ[\"ZABBIX_TOKEN\"])\n```\n\n## Core API Methods\n\nAll APIs follow pattern: `api.\u003Cobject>.\u003Cmethod>()` with methods: `get`, `create`, `update`, `delete`.\n\n### Host Operations\n\n```python\n# Get hosts\nhosts = api.host.get(output=[\"hostid\", \"host\", \"name\"],\n                     selectInterfaces=[\"ip\"])\n\n# Create host\napi.host.create(\n    host=\"server01\",\n    groups=[{\"groupid\": \"2\"}],  # Linux servers\n    interfaces=[{\n        \"type\": 1,  # 1=agent, 2=SNMP, 3=IPMI, 4=JMX\n        \"main\": 1,\n        \"useip\": 1,\n        \"ip\": \"192.168.1.100\",\n        \"dns\": \"\",\n        \"port\": \"10050\"\n    }],\n    templates=[{\"templateid\": \"10001\"}]\n)\n\n# Update host\napi.host.update(hostid=\"10084\", status=0)  # 0=enabled, 1=disabled\n\n# Delete host\napi.host.delete(\"10084\")\n```\n\n### Template Operations\n\n```python\n# Get templates\ntemplates = api.template.get(output=[\"templateid\", \"host\", \"name\"],\n                             selectHosts=[\"hostid\", \"name\"])\n\n# Link template to host\napi.host.update(hostid=\"10084\",\n                templates=[{\"templateid\": \"10001\"}])\n\n# Import template from XML\nwith open(\"template.xml\") as f:\n    api.configuration.import_(\n        source=f.read(),\n        format=\"xml\",\n        rules={\n            \"templates\": {\"createMissing\": True, \"updateExisting\": True},\n            \"items\": {\"createMissing\": True, \"updateExisting\": True},\n            \"triggers\": {\"createMissing\": True, \"updateExisting\": True}\n        }\n    )\n```\n\n### Item Operations\n\n```python\n# Get items\nitems = api.item.get(hostids=\"10084\",\n                     output=[\"itemid\", \"name\", \"key_\"],\n                     search={\"key_\": \"system.cpu\"})\n\n# Create item\napi.item.create(\n    name=\"CPU Load\",\n    key_=\"system.cpu.load[percpu,avg1]\",\n    hostid=\"10084\",\n    type=0,  # 0=Zabbix agent\n    value_type=0,  # 0=float, 3=integer, 4=text\n    delay=\"30s\",\n    interfaceid=\"1\"\n)\n```\n\n### Trigger Operations\n\n```python\n# Get triggers\ntriggers = api.trigger.get(hostids=\"10084\",\n                          output=[\"triggerid\", \"description\", \"priority\"],\n                          selectFunctions=\"extend\")\n\n# Create trigger\napi.trigger.create(\n    description=\"High CPU on {HOST.NAME}\",\n    expression=\"last(\u002Fserver01\u002Fsystem.cpu.load[percpu,avg1])>5\",\n    priority=3  # 0=not classified, 1=info, 2=warning, 3=average, 4=high, 5=disaster\n)\n```\n\n### Host Group Operations\n\n```python\n# Get groups\ngroups = api.hostgroup.get(output=[\"groupid\", \"name\"])\n\n# Create group\napi.hostgroup.create(name=\"Production\u002FWeb Servers\")\n\n# Add hosts to group\napi.hostgroup.massadd(groups=[{\"groupid\": \"5\"}],\n                      hosts=[{\"hostid\": \"10084\"}])\n```\n\n### Maintenance Windows\n\n```python\nimport time\n\n# Create maintenance\napi.maintenance.create(\n    name=\"Server Maintenance\",\n    active_since=int(time.time()),\n    active_till=int(time.time()) + 3600,  # 1 hour\n    hostids=[\"10084\"],\n    timeperiods=[{\n        \"timeperiod_type\": 0,  # One-time\n        \"period\": 3600\n    }]\n)\n```\n\n### Events and Problems\n\n```python\n# Get current problems\nproblems = api.problem.get(output=[\"eventid\", \"name\", \"severity\"],\n                          recent=True)\n\n# Get events\nevents = api.event.get(hostids=\"10084\",\n                       time_from=int(time.time()) - 86400,\n                       output=\"extend\")\n```\n\n### History Data\n\n```python\n# Get history (value_type must match item's value_type)\n# 0=float, 1=character, 2=log, 3=integer, 4=text\nhistory = api.history.get(\n    itemids=\"28269\",\n    history=0,  # float\n    time_from=int(time.time()) - 3600,\n    output=\"extend\",\n    sortfield=\"clock\",\n    sortorder=\"DESC\"\n)\n```\n\n## Zabbix Sender (Trapper Items)\n\n```python\nfrom zabbix_utils import Sender\n\nsender = Sender(server=\"zabbix.example.com\", port=10051)\n\n# Send single value\nresponse = sender.send_value(\"hostname\", \"trap.key\", \"value123\")\nprint(response)  # {\"processed\": 1, \"failed\": 0, \"total\": 1}\n\n# Send multiple values\nfrom zabbix_utils import ItemValue\nvalues = [\n    ItemValue(\"host1\", \"key1\", \"value1\"),\n    ItemValue(\"host2\", \"key2\", 42),\n]\nresponse = sender.send(values)\n```\n\n## Zabbix Getter (Agent Query)\n\n```python\nfrom zabbix_utils import Getter\n\nagent = Getter(host=\"192.168.1.100\", port=10050)\nresponse = agent.get(\"system.uname\")\nprint(response.value)\n```\n\n## Common Patterns\n\n### Bulk Host Creation from CSV\n\n```python\nimport csv\nfrom zabbix_utils import ZabbixAPI\n\napi = ZabbixAPI(url=\"https:\u002F\u002Fzabbix.example.com\")\napi.login(token=\"your_token\")\n\nwith open(\"hosts.csv\") as f:\n    for row in csv.DictReader(f):\n        try:\n            api.host.create(\n                host=row[\"hostname\"],\n                groups=[{\"groupid\": row[\"groupid\"]}],\n                interfaces=[{\n                    \"type\": 1, \"main\": 1, \"useip\": 1,\n                    \"ip\": row[\"ip\"], \"dns\": \"\", \"port\": \"10050\"\n                }]\n            )\n            print(f\"Created: {row['hostname']}\")\n        except Exception as e:\n            print(f\"Failed {row['hostname']}: {e}\")\n```\n\n### Find Hosts Without Template\n\n```python\n# Get all hosts\nall_hosts = api.host.get(output=[\"hostid\", \"host\"],\n                         selectParentTemplates=[\"templateid\"])\n\n# Filter hosts without specific template\ntemplate_id = \"10001\"\nhosts_without = [h for h in all_hosts\n                 if not any(t[\"templateid\"] == template_id\n                           for t in h.get(\"parentTemplates\", []))]\n```\n\n### Disable Triggers by Pattern\n\n```python\ntriggers = api.trigger.get(\n    search={\"description\": \"test\"},\n    output=[\"triggerid\"]\n)\nfor t in triggers:\n    api.trigger.update(triggerid=t[\"triggerid\"], status=1)  # 1=disabled\n```\n\n## Item Types Reference\n\n| Type | Value | Description |\n|------|-------|-------------|\n| Zabbix agent | 0 | Active checks |\n| Zabbix trapper | 2 | Passive, data pushed via sender |\n| Simple check | 3 | ICMP, TCP, etc. |\n| Zabbix internal | 5 | Server internal metrics |\n| Zabbix agent (active) | 7 | Agent-initiated |\n| HTTP agent | 19 | HTTP\u002FREST API monitoring |\n| Dependent item | 18 | Derived from master item |\n| Script | 21 | Custom scripts |\n\n## Value Types Reference\n\n| Type | Value | Description |\n|------|-------|-------------|\n| Float | 0 | Numeric (float) |\n| Character | 1 | Character string |\n| Log | 2 | Log file |\n| Unsigned | 3 | Numeric (integer) |\n| Text | 4 | Text |\n\n## Trigger Severity Reference\n\n| Severity | Value | Color |\n|----------|-------|-------|\n| Not classified | 0 | Gray |\n| Information | 1 | Light blue |\n| Warning | 2 | Yellow |\n| Average | 3 | Orange |\n| High | 4 | Light red |\n| Disaster | 5 | Red |\n\n## Error Handling\n\n```python\nfrom zabbix_utils import ZabbixAPI\nfrom zabbix_utils.exceptions import APIRequestError\n\ntry:\n    api.host.create(host=\"duplicate_host\", groups=[{\"groupid\": \"2\"}])\nexcept APIRequestError as e:\n    print(f\"API Error: {e.message}\")\n    print(f\"Code: {e.code}\")\n```\n\n## Debugging\n\n```python\nimport logging\nlogging.basicConfig(level=logging.DEBUG)\n# Now all API calls will be logged\n```\n\n## Scripts Reference\n\nSee `scripts\u002F` directory for ready-to-use automation:\n\n- `zabbix-bulk-hosts.py` - Bulk host management from CSV\n- `zabbix-maintenance.py` - Create\u002Fmanage maintenance windows\n- `zabbix-export.py` - Export hosts\u002Ftemplates to JSON\u002FXML\n\n## Best Practices\n\n1. **Use API tokens** over username\u002Fpassword when possible\n2. **Limit output fields** - Always specify `output=[\"field1\", \"field2\"]` instead of `output=\"extend\"`\n3. **Use search\u002Ffilter** - Never fetch all objects and filter in Python\n4. **Handle pagination** - Large result sets may need `limit` and `offset`\n5. **Batch operations** - Use `massadd`, `massupdate` for bulk changes\n6. **Error handling** - Always wrap API calls in try\u002Fexcept\n7. **Idempotency** - Check if object exists before creating\n\n---\n\n## Gotchas\n\n- **`api.history.get` requires the correct `history` value_type or returns empty:** Passing `history=0` (float) on an integer item silently returns `[]` instead of an error. Always read the item's `value_type` first; the four-way mismatch (0\u002F1\u002F3\u002F4) is the most common \"no data\" cause.\n- **`output=\"extend\"` on large queries melts the server:** Fetching every field for thousands of hosts or items causes multi-second responses and OOMs the API frontend. Always pass `output=[\"field1\",\"field2\"]` with only the columns you need — the API has no implicit pagination protection.\n- **Trigger expressions reference host+key, not item IDs:** Renaming a host or key breaks every trigger expression that references it, with no warning until evaluation. Use templates and macros (`{HOST.HOST}`) instead of hardcoded names in expressions.\n- **API token vs session token confusion in `zabbix_utils`:** `api.login(token=...)` uses a permanent API token (Zabbix 5.4+); `api.login(user=..., password=...)` issues a session token. Mixing token auth with `api.logout()` invalidates the permanent token for everyone using it.\n- **`massadd` does not deduplicate — `massupdate` replaces:** `hostgroup.massadd` happily adds the same host to a group twice in some versions; `hostgroup.massupdate` silently removes hosts not in the payload. Read the verb carefully before bulk operations or you'll detach hosts you meant to keep.\n- **`maintenance.create` with past `active_since` is accepted but ignored:** Backdating a maintenance window does not retroactively suppress alerts that already fired. Set `active_since` slightly in the future and verify with `maintenance.get` before assuming alerts are muted.\n","# Zabbix Automation Skill\n\n## Overview\n\nThis skill provides guidance for automating Zabbix monitoring operations via the API and official Python library `zabbix_utils`.\n\n## Quick Start\n\n### Installation\n\n```bash\npip install zabbix-utils --break-system-packages\n```\n\n### Authentication\n\n```python\nfrom zabbix_utils import ZabbixAPI\n\n# Option 1: Username\u002Fpassword\napi = ZabbixAPI(url=\"https:\u002F\u002Fzabbix.example.com\")\napi.login(user=\"Admin\", password=\"zabbix\")\n\n# Option 2: API token (Zabbix 5.4+, preferred)\napi = ZabbixAPI(url=\"https:\u002F\u002Fzabbix.example.com\")\napi.login(token=\"your_api_token\")\n\n# Verify connection\nprint(api.api_version())\n```\n\n### Environment Variables Pattern\n\n```python\nimport os\nfrom zabbix_utils import ZabbixAPI\n\napi = ZabbixAPI(url=os.environ.get(\"ZABBIX_URL\", \"http:\u002F\u002Flocalhost\u002Fzabbix\"))\napi.login(token=os.environ[\"ZABBIX_TOKEN\"])\n```\n\n## Core API Methods\n\nAll APIs follow pattern: `api.\u003Cobject>.\u003Cmethod>()` with methods: `get`, `create`, `update`, `delete`.\n\n### Host Operations\n\n```python\n# Get hosts\nhosts = api.host.get(output=[\"hostid\", \"host\", \"name\"],\n                     selectInterfaces=[\"ip\"])\n\n# Create host\napi.host.create(\n    host=\"server01\",\n    groups=[{\"groupid\": \"2\"}],  # Linux servers\n    interfaces=[{\n        \"type\": 1,  # 1=agent, 2=SNMP, 3=IPMI, 4=JMX\n        \"main\": 1,\n        \"useip\": 1,\n        \"ip\": \"192.168.1.100\",\n        \"dns\": \"\",\n        \"port\": \"10050\"\n    }],\n    templates=[{\"templateid\": \"10001\"}]\n)\n\n# Update host\napi.host.update(hostid=\"10084\", status=0)  # 0=enabled, 1=disabled\n\n# Delete host\napi.host.delete(\"10084\")\n```\n\n### Template Operations\n\n```python\n# Get templates\ntemplates = api.template.get(output=[\"templateid\", \"host\", \"name\"],\n                             selectHosts=[\"hostid\", \"name\"])\n\n# Link template to host\napi.host.update(hostid=\"10084\",\n                templates=[{\"templateid\": \"10001\"}])\n\n# Import template from XML\nwith open(\"template.xml\") as f:\n    api.configuration.import_(\n        source=f.read(),\n        format=\"xml\",\n        rules={\n            \"templates\": {\"createMissing\": True, \"updateExisting\": True},\n            \"items\": {\"createMissing\": True, \"updateExisting\": True},\n            \"triggers\": {\"createMissing\": True, \"updateExisting\": True}\n        }\n    )\n```\n\n### Item Operations\n\n```python\n# Get items\nitems = api.item.get(hostids=\"10084\",\n                     output=[\"itemid\", \"name\", \"key_\"],\n                     search={\"key_\": \"system.cpu\"})\n\n# Create item\napi.item.create(\n    name=\"CPU Load\",\n    key_=\"system.cpu.load[percpu,avg1]\",\n    hostid=\"10084\",\n    type=0,  # 0=Zabbix agent\n    value_type=0,  # 0=float, 3=integer, 4=text\n    delay=\"30s\",\n    interfaceid=\"1\"\n)\n```\n\n### Trigger Operations\n\n```python\n# Get triggers\ntriggers = api.trigger.get(hostids=\"10084\",\n                          output=[\"triggerid\", \"description\", \"priority\"],\n                          selectFunctions=\"extend\")\n\n# Create trigger\napi.trigger.create(\n    description=\"High CPU on {HOST.NAME}\",\n    expression=\"last(\u002Fserver01\u002Fsystem.cpu.load[percpu,avg1])>5\",\n    priority=3  # 0=not classified, 1=info, 2=warning, 3=average, 4=high, 5=disaster\n)\n```\n\n### Host Group Operations\n\n```python\n# Get groups\ngroups = api.hostgroup.get(output=[\"groupid\", \"name\"])\n\n# Create group\napi.hostgroup.create(name=\"Production\u002FWeb Servers\")\n\n# Add hosts to group\napi.hostgroup.massadd(groups=[{\"groupid\": \"5\"}],\n                      hosts=[{\"hostid\": \"10084\"}])\n```\n\n### Maintenance Windows\n\n```python\nimport time\n\n# Create maintenance\napi.maintenance.create(\n    name=\"Server Maintenance\",\n    active_since=int(time.time()),\n    active_till=int(time.time()) + 3600,  # 1 hour\n    hostids=[\"10084\"],\n    timeperiods=[{\n        \"timeperiod_type\": 0,  # One-time\n        \"period\": 3600\n    }]\n)\n```\n\n### Events and Problems\n\n```python\n# Get current problems\nproblems = api.problem.get(output=[\"eventid\", \"name\", \"severity\"],\n                          recent=True)\n\n# Get events\nevents = api.event.get(hostids=\"10084\",\n                       time_from=int(time.time()) - 86400,\n                       output=\"extend\")\n```\n\n### History Data\n\n```python\n# Get history (value_type must match item's value_type)\n# 0=float, 1=character, 2=log, 3=integer, 4=text\nhistory = api.history.get(\n    itemids=\"28269\",\n    history=0,  # float\n    time_from=int(time.time()) - 3600,\n    output=\"extend\",\n    sortfield=\"clock\",\n    sortorder=\"DESC\"\n)\n```\n\n## Zabbix Sender (Trapper Items)\n\n```python\nfrom zabbix_utils import Sender\n\nsender = Sender(server=\"zabbix.example.com\", port=10051)\n\n# Send single value\nresponse = sender.send_value(\"hostname\", \"trap.key\", \"value123\")\nprint(response)  # {\"processed\": 1, \"failed\": 0, \"total\": 1}\n\n# Send multiple values\nfrom zabbix_utils import ItemValue\nvalues = [\n    ItemValue(\"host1\", \"key1\", \"value1\"),\n    ItemValue(\"host2\", \"key2\", 42),\n]\nresponse = sender.send(values)\n```\n\n## Zabbix Getter (Agent Query)\n\n```python\nfrom zabbix_utils import Getter\n\nagent = Getter(host=\"192.168.1.100\", port=10050)\nresponse = agent.get(\"system.uname\")\nprint(response.value)\n```\n\n## Common Patterns\n\n### Bulk Host Creation from CSV\n\n```python\nimport csv\nfrom zabbix_utils import ZabbixAPI\n\napi = ZabbixAPI(url=\"https:\u002F\u002Fzabbix.example.com\")\napi.login(token=\"your_token\")\n\nwith open(\"hosts.csv\") as f:\n    for row in csv.DictReader(f):\n        try:\n            api.host.create(\n                host=row[\"hostname\"],\n                groups=[{\"groupid\": row[\"groupid\"]}],\n                interfaces=[{\n                    \"type\": 1, \"main\": 1, \"useip\": 1,\n                    \"ip\": row[\"ip\"], \"dns\": \"\", \"port\": \"10050\"\n                }]\n            )\n            print(f\"Created: {row['hostname']}\")\n        except Exception as e:\n            print(f\"Failed {row['hostname']}: {e}\")\n```\n\n### Find Hosts Without Template\n\n```python\n# Get all hosts\nall_hosts = api.host.get(output=[\"hostid\", \"host\"],\n                         selectParentTemplates=[\"templateid\"])\n\n# Filter hosts without specific template\ntemplate_id = \"10001\"\nhosts_without = [h for h in all_hosts\n                 if not any(t[\"templateid\"] == template_id\n                           for t in h.get(\"parentTemplates\", []))]\n```\n\n### Disable Triggers by Pattern\n\n```python\ntriggers = api.trigger.get(\n    search={\"description\": \"test\"},\n    output=[\"triggerid\"]\n)\nfor t in triggers:\n    api.trigger.update(triggerid=t[\"triggerid\"], status=1)  # 1=disabled\n```\n\n## Item Types Reference\n\n| Type | Value | Description |\n|------|-------|-------------|\n| Zabbix agent | 0 | Active checks |\n| Zabbix trapper | 2 | Passive, data pushed via sender |\n| Simple check | 3 | ICMP, TCP, etc. |\n| Zabbix internal | 5 | Server internal metrics |\n| Zabbix agent (active) | 7 | Agent-initiated |\n| HTTP agent | 19 | HTTP\u002FREST API monitoring |\n| Dependent item | 18 | Derived from master item |\n| Script | 21 | Custom scripts |\n\n## Value Types Reference\n\n| Type | Value | Description |\n|------|-------|-------------|\n| Float | 0 | Numeric (float) |\n| Character | 1 | Character string |\n| Log | 2 | Log file |\n| Unsigned | 3 | Numeric (integer) |\n| Text | 4 | Text |\n\n## Trigger Severity Reference\n\n| Severity | Value | Color |\n|----------|-------|-------|\n| Not classified | 0 | Gray |\n| Information | 1 | Light blue |\n| Warning | 2 | Yellow |\n| Average | 3 | Orange |\n| High | 4 | Light red |\n| Disaster | 5 | Red |\n\n## Error Handling\n\n```python\nfrom zabbix_utils import ZabbixAPI\nfrom zabbix_utils.exceptions import APIRequestError\n\ntry:\n    api.host.create(host=\"duplicate_host\", groups=[{\"groupid\": \"2\"}])\nexcept APIRequestError as e:\n    print(f\"API Error: {e.message}\")\n    print(f\"Code: {e.code}\")\n```\n\n## Debugging\n\n```python\nimport logging\nlogging.basicConfig(level=logging.DEBUG)\n# Now all API calls will be logged\n```\n\n## Scripts Reference\n\nSee `scripts\u002F` directory for ready-to-use automation:\n\n- `zabbix-bulk-hosts.py` - Bulk host management from CSV\n- `zabbix-maintenance.py` - Create\u002Fmanage maintenance windows\n- `zabbix-export.py` - Export hosts\u002Ftemplates to JSON\u002FXML\n\n## Best Practices\n\n1. **Use API tokens** over username\u002Fpassword when possible\n2. **Limit output fields** - Always specify `output=[\"field1\", \"field2\"]` instead of `output=\"extend\"`\n3. **Use search\u002Ffilter** - Never fetch all objects and filter in Python\n4. **Handle pagination** - Large result sets may need `limit` and `offset`\n5. **Batch operations** - Use `massadd`, `massupdate` for bulk changes\n6. **Error handling** - Always wrap API calls in try\u002Fexcept\n7. **Idempotency** - Check if object exists before creating\n\n---\n\n## Gotchas\n\n- **`api.history.get` requires the correct `history` value_type or returns empty:** Passing `history=0` (float) on an integer item silently returns `[]` instead of an error. Always read the item's `value_type` first; the four-way mismatch (0\u002F1\u002F3\u002F4) is the most common \"no data\" cause.\n- **`output=\"extend\"` on large queries melts the server:** Fetching every field for thousands of hosts or items causes multi-second responses and OOMs the API frontend. Always pass `output=[\"field1\",\"field2\"]` with only the columns you need — the API has no implicit pagination protection.\n- **Trigger expressions reference host+key, not item IDs:** Renaming a host or key breaks every trigger expression that references it, with no warning until evaluation. Use templates and macros (`{HOST.HOST}`) instead of hardcoded names in expressions.\n- **API token vs session token confusion in `zabbix_utils`:** `api.login(token=...)` uses a permanent API token (Zabbix 5.4+); `api.login(user=..., password=...)` issues a session token. Mixing token auth with `api.logout()` invalidates the permanent token for everyone using it.\n- **`massadd` does not deduplicate — `massupdate` replaces:** `hostgroup.massadd` happily adds the same host to a group twice in some versions; `hostgroup.massupdate` silently removes hosts not in the payload. Read the verb carefully before bulk operations or you'll detach hosts you meant to keep.\n- **`maintenance.create` with past `active_since` is accepted but ignored:** Backdating a maintenance window does not retroactively suppress alerts that already fired. Set `active_since` slightly in the future and verify with `maintenance.get` before assuming alerts are muted.\n",{"name":5,"license":15,"description":7},"master","63f17866001c5ca854bf2fa0b678ce277133de5b","skills\u002Fclaude-code-skills\u002Fzabbix-api",0,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS","https:\u002F\u002Fbg-szy.github.io\u002FTOP-SKILLS\u002F","https:\u002F\u002Fgithub.com\u002Fbg-szy","https:\u002F\u002Fwww.ecust.edu.cn\u002F","a student of East China University of Science and Technology","2026-11-15 03:38:02",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add bg-szy\u002FTOP-SKILLS --skill zabbix-api",{"tool":41,"command":42},"bunx","bunx skills add bg-szy\u002FTOP-SKILLS --skill zabbix-api",{"tool":44,"command":45},"pnpm","pnpm dlx skills add bg-szy\u002FTOP-SKILLS --skill zabbix-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fclaude-code-skills\u002Fzabbix-api\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":16},"LICENSE.txt","LICENSE","许可证",1056,[55,63,70,77,84,91],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":62},"01M7DXW9N826PKXK174PVW3038","serpmaven","Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fserpmaven\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":62},"01M7DXVHSTWDV65475QEQ915M7","revnu-landing-page-audit","Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: \"audit my landing page\", \"why isn't this page converting\", \"review my homepage\", \"my ads get clicks but no signups\", \"people bounce from the pricing page\", \"CRO review\", \"improve conversion rate\", \"is my hero section clear\", \"roast my landing page\", \"rewrite my headline\", \"what's wrong with this page\", \"landing page feedback\", \"make the signup page convert better\". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-landing-page-audit\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":62},"01M7DXV8X2D7B3VTD4HHYYHTGR","revnu-growth-context","Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents\u002Frevnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says \"set up our marketing context\", \"who is our ideal customer\", \"write our ICP\", \"describe the product for marketing\", \"positioning doc\", \"what's our brand voice\", \"remember this about our customers\", \"log what we tried\", \"what have we learned from marketing\", \"we changed pricing, update the context\", \"update our growth notes\", \"summarize the business for the agent\", \"import my product-marketing.md\", \"start a growth doc\", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-growth-context\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":62},"01M7DXV0DGJ1G0A60PAHC6J3C5","revnu-get-listed","Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: \"best X\" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says \"get us listed\", \"which directories should we submit to\", \"how do we get into best-of lists\", \"why does ChatGPT recommend competitors and not us\", \"get mentioned in AI answers\", \"submit to awesome lists\", \"get on G2\", \"where are our competitors listed\", \"pitch listicle authors\", \"find backlink opportunities\", \"launch directories\", \"get into roundups\", \"Product Hunt alternatives\", \"where should we be listed\", \"get cited by Perplexity\". Never submits, pays or posts without a yes. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-get-listed\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":62},"01M7DXTSPMGT9D6DSS0HP9BSTA","revnu-ai-readiness-audit","Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks \"is my site ready for AI search\", \"audit my site for AI answers\", \"AEO audit\", \"GEO audit\", \"why doesn't ChatGPT quote our pricing\", \"make our pages citable by AI\", \"do I need llms.txt\", \"does schema help with ChatGPT\", \"check our structured data\", \"is our content visible without JavaScript\", \"AI SEO audit\", \"optimize our homepage for AI answers\", \"LLM SEO check\", \"why does AI get our product wrong\", \"fix our site for AI Overviews\". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-ai-readiness-audit\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":62},"01M7DXSZHCVTRS620GC3S97JZV","proxy-troubleshooting","Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fproxy-troubleshooting\u002FSKILL.md",[],[]]