Skip to content

Conversation

@abrizida
Copy link
Collaborator

Change of nOutput_SNMPServer enabling the OID value for the alert as a regular expression. Also enabling a OIDList associated to the alert, instead of just the value.

Change of nOutput_SNMPServer enabling the OID value for the alert as a regular expression. Also enabling a OIDList associated to the alert, instead of just the value.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the SNMP Server output plugin to support an enhanced OID mapping structure and adds improved error handling. The main changes include restructuring the YAML configuration to support nested OID definitions and adding comprehensive try-catch blocks with step-based error tracking throughout the JavaScript implementation.

Key Changes:

  • Enhanced OID mapping structure in YAML config to support nested OID objects with additional metadata fields
  • Added comprehensive error handling with step-based error messages across all functions
  • Fixed logic bug in typeCasting function for integer range validation
  • Added support for conditional authentication/authorization based on SNMP version

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 25 comments.

File Description
config/outputs.disabled/yaml/10.SNMPServer_Output.yaml Updated OID mapping structure from string to nested object with "OID" field
config/objects/nOutput_SNMPServer.js Complete refactor with error handling, bug fixes, support for OIDList templates, regex-based attribute matching, and enhanced data type handling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

abrizida and others added 8 commits November 10, 2025 10:42
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Error so the snmpCommunity doesn't default to public for security reasons.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Resolved copilot sugestions
@nmaguiar nmaguiar merged commit c930748 into master Nov 12, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in Continuous Enhancement Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants