N-central Troubleshooting
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
- Create a Custom SNMP service.
- Create one Query and add OIDs as desired.
- Under SNMP Index Options, select Query OID with specific value to retrieve SNMP index.
- 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 enter1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1
for the OID. - 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.
- IMPORTANT: Be sure to toggle Enable Field Editing to ON.
- Click Save to save the query.
- Choose the Service Identifier, Identifier Options from the drop-down menus.
- Click the checkbox next to Add to Discovery Jobs.
- Click the Data and Thresholds tab.
- Click Add Metric to add the metrics needed for the custom service.
- Click Save to save the service.
- Add the Custom Service to a template.
- When adding the service to the template, ensure you enable Automatically Add new Instances > ON.
- 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).
- Ensure that SNMP is enabled on the Discovery Job.
- Allow some time for Discovery to complete.
- 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.