npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

shumoku-plugin-zabbix

v0.2.25

Published

Zabbix data source plugin for Shumoku

Readme

shumoku-plugin-zabbix

Zabbix data source plugin for Shumoku. Pulls device inventory, interface traffic, LLDP-derived topology, and trigger events from a Zabbix server over its JSON-RPC API.

Capabilities

| Capability | What it provides | |------------|------------------| | topology | Builds a NetworkGraph from hosts (nodes) + LLDP neighbor items (links), grouped by host group | | hosts | Lists Zabbix hosts with management IP, interfaces, and discoverable metrics | | metrics | Polls node health (ICMP ping / fresh item data / maintenance) and link traffic; stale data is reported as unknown | | alerts | Fetches trigger events, mapping Zabbix severities (0–5) into the neutral AlertSeverity scale |

Usage

This plugin ships bundled with apps/server. To use it elsewhere, register it into a Shumoku plugin registry — the registry then constructs an instance from validated config:

import { register } from 'shumoku-plugin-zabbix'

register(pluginRegistry) // exposes the descriptor below; the host validates config + builds the plugin

Each plugin self-describes via registry.registerDescriptor({ type, displayName, capabilities, configSchema, optionsSchema }, factory). The server renders the config form generically from configSchema — there are no per-plugin branches.

Configuration

| Field | Type | Required | Default | Notes | |-------|------|----------|---------|-------| | url | string (uri) | ✅ | — | Zabbix base URL, e.g. https://zabbix.example.com | | token | string (password) | ✅ | — | API token | | insecure | boolean | | false | Skip TLS verification. Self-signed certs in trusted networks only | | pollInterval | number (ms) | | 60000 | One of 5s / 10s / 30s / 1m / 5m |

Topology options

Per-attachment options (stored as the source's optionsJson, rendered on the Sources page). Topology is generated from hosts + LLDP neighbor items.

| Field | Type | Default | Notes | |-------|------|---------|-------| | hostGroups | string[] | all | Only keep hosts in these host groups (by name). Candidates come from getConfigOptions('hostgroup') | | groupBy | hostgroup | none | hostgroup | Nest each node under its most-specific host group, or emit a flat graph | | groupExclude | string[] | — | Drop hosts in these groups (admin / catch-all groups) | | includeExternalNeighbors | boolean | true | Add nodes for LLDP neighbors that are not Zabbix hosts, so their links still render | | parentTag | string | PARENT | Host-tag name whose value names an upstream device — draws a link where LLDP saw no neighbor. Empty to disable |

How it maps Zabbix → Shumoku

Core types are the display contract; the plugin translates Zabbix vocabulary at the boundary:

  • Severity — Zabbix priorities 0–5 map to the neutral critical | high | medium | low | info | ok scale (shared severity helper, never Zabbix-flavored values).
  • Health — fresh ICMP ping wins; otherwise any fresh real device item (SNMP / Agent, excluding internal zabbix[...] keys); otherwise unknown. Link metrics older than ~5 min are treated as stale.
  • Topology — interface adjacencies come from per-interface LLDP-MIB items (lldp.rem.sysname, lldp.rem.port.id, lldp.rem.chassisid); parentTag provides a manual fallback link.

Exports

| Export | Description | |--------|-------------| | register(registry) | Registers the descriptor + factory (entry point) | | ZabbixPlugin | The plugin class (advanced / direct use) | | ZabbixHost, ZabbixItem, ZabbixPluginConfig | Types |

Depends on @shumoku/core (types + plugin kit) and @shumoku/plugin-sdk (HTTP client). See Plugin Authoring for the plugin contract.

License

AGPL-3.0-only. For commercial licensing, contact [email protected].