{"id":30616455,"url":"https://github.com/qxip/quick-snmp","last_synced_at":"2026-03-05T01:34:18.289Z","repository":{"id":290418418,"uuid":"974363154","full_name":"QXIP/quick-snmp","owner":"QXIP","description":"Quick SNMP Helper","archived":false,"fork":false,"pushed_at":"2025-04-28T19:09:32.000Z","size":42,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T02:14:00.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QXIP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-28T16:57:04.000Z","updated_at":"2025-07-29T05:14:58.000Z","dependencies_parsed_at":"2025-04-28T18:54:32.812Z","dependency_job_id":null,"html_url":"https://github.com/QXIP/quick-snmp","commit_stats":null,"previous_names":["qxip/quick-snmp"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/QXIP/quick-snmp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QXIP%2Fquick-snmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QXIP%2Fquick-snmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QXIP%2Fquick-snmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QXIP%2Fquick-snmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QXIP","download_url":"https://codeload.github.com/QXIP/quick-snmp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QXIP%2Fquick-snmp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30104572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T01:06:53.091Z","status":"ssl_error","status_checked_at":"2026-03-05T01:02:35.679Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-30T09:40:02.577Z","updated_at":"2026-03-05T01:34:13.278Z","avatar_url":"https://github.com/QXIP.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/user-attachments/assets/35bcc912-fb66-4b71-8f5a-f67711a4e8d5\" width=50 /\u003e\u003cimg src=\"https://github.com/user-attachments/assets/e7953093-4178-4037-87d0-96c00fa52029\" width=150 /\u003e\n\u003cimg src=\"https://github.com/user-attachments/assets/35bcc912-fb66-4b71-8f5a-f67711a4e8d5\" width=50 /\u003e\u003cimg src=\"https://github.com/user-attachments/assets/35bcc912-fb66-4b71-8f5a-f67711a4e8d5\" width=50 /\u003e\n\n\n# QXIP SNMP Trap Sender\n\nA flexible SNMP trap sender system that allows monitoring system metrics and sending SNMP traps based on configurable rules.\n\n## Features\n\n- Configurable OID root for all traps\n- Multiple SNMP trap receivers support\n- Flexible rule system for monitoring system metrics\n- Support for both string and integer values\n- Threshold-based monitoring with warning and critical levels\n- Automatic OID file generation for SNMP receivers\n- YAML-based configuration\n\n## Installation\n\nDownload a [precompiled binary release](https://github.com/QXIP/quick-snmp/releases) or build locally:\n```bash\ngit clone https://github.com/your-org/qxip-snmp.git\ncd qxip-snmp\nbun install\n```\n\n## Configuration\n\nThe system is configured using a YAML file. See `config.yaml` for a complete example.\n\n### Configuration Structure\n\n```yaml\n# Root OID for all traps\noidRoot: \"1.3.6.1.4.1.12345\"\n\n# SNMP trap receivers\nreceivers:\n  - id: \"receiver1\"\n    host: \"192.168.1.100\"\n    port: 162\n    community: \"public\"\n\n# Monitoring rules\nrules:\n  - id: \"rule1\"\n    oid: \"1.1\"\n    name: \"Rule Name\"\n    type: \"integer\"  # or \"string\"\n    command: \"your-command\"\n    interval: 60\n    thresholds:\n      warning: 70\n      critical: 90\n    receivers: [\"receiver1\"]\n```\n\n## Usage\n\n1. Start the SNMP trap sender:\n```bash\nbun src/index.js\n```\n\n2. Generate OID file for SNMP receivers:\n```bash\nbun src/index.js --generate-oid\n```\n\n## Rule Configuration\n\nEach rule in the configuration defines:\n\n- `id`: Unique identifier for the rule\n- `oid`: OID suffix to append to root OID\n- `name`: Human-readable name for the OID\n- `type`: Type of value to return (\"string\" or \"integer\")\n- `command`: System command to execute\n- `interval`: Check interval in seconds\n- `thresholds`: Optional thresholds for integer values\n  - `warning`: Warning threshold value\n  - `critical`: Critical threshold value\n- `receivers`: List of receiver IDs to send traps to\n\n## OID File Generation\n\nThe system can generate an SNMP MIB file that can be loaded on SNMP receivers. The generated file includes:\n\n- Module identity\n- Trap definitions\n- Object type definitions\n- Severity level objects (for rules with thresholds)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqxip%2Fquick-snmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqxip%2Fquick-snmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqxip%2Fquick-snmp/lists"}