Automatically add instances of a Custom SNMP service to a device based on a Custom OID

Last Modified

Mon Aug 15 17:14 GMT 2020

Description

  • Automatically add instances of a Custom SNMP service to a device based on a Custom OID based on Discovered Asset Data for a device.
  • When adding a custom SNMP service to a device, it is useful if instances can be automatically added based off of a list of values found at a specific OID, such as Interface Names.

Environment

  • N-able N-central

Solution

  1. Create a Custom SNMP service.
  2. Create one Query and add OIDs as desired.
    1. Under SNMP Index Options, select Query OID with specific value to retrieve SNMP index.
    2. In the OID field, type the OID at which the indexes are found.

      For example, you have the OID 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.1, you would enter 1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1 for the OID.

    3. In the Value field, type any value for the OID, for example 1. The value you add is a placeholder and will be replaced by the asset data when adding by a Service Template.
    4. IMPORTANT: Be sure to toggle Enable Field Editing to ON.
    5. Click Save to save the query.
  3. Choose the Service Identifier, Identifier Options from the drop-down menus.
  4. Click the checkbox next to Add to Discovery Jobs.
  5. Click the Data and Thresholds tab.
  6. Click Add Metric to add the metrics needed for the custom service.
  7. Click Save to save the service.
  8. Add the Custom Service to a template.
  9. When adding the service to the template, ensure you enable Automatically Add new Instances > ON.
  10. Perform a Discovery Job from any probe which can reach a device containing the desired OID (e.g. firewall with values found at 1.3.6.1.2.1.2.2.1.7, used in the example above).
  11. Ensure that SNMP is enabled on the Discovery Job.
  12. Allow some time for Discovery to complete.
  13. Apply the template to the device, and observe that multiple instances were added in accordance to the number of indexes found at the OID above.