The SNMP Custom v2 sensor now supports certain MIB folders. Which ones are supported and how do they work?
How do I use Management Information Base (MIB) folders with the SNMP Custom v2 sensor?
Votes:
0
1 Reply
Votes:
0
This article applies as of PRTG 23.2.84
Previously, in order to import MIB files from your devices into PRTG, you had to use the PRTG MIB Importer to convert MIB files into .oidlib files. With the SNMP Custom v2 sensor, available in beta as of PRTG 23.2.84, it is now possible to use some MIB files directly, without needing to convert them. This is currently available for Windows and Linux systems.
What kind of MIB files can I use?
The SNMP Custom v2 sensor supports Abstract Syntax Notation One MIB files, or ASN.1 MIB files. For more information about ASN.1, see this ASN.1 resource page from SNMP Link.
How do I use my ASN.1 MIB files with the SNMP Custom v2 sensor?
1. Add the ASN.1 MIB file to the PRTG program files.
Windows
Description | Folder | Example |
Define NetSNMP's default environment variable | %MIBDIRS% | |
Create a custom MIB directory | ${PRTG-Data-Path}\mibs | C:\ProgramData\Paessler\PRTG Network Monitor\mibs |
Add to the Monitoring Modules shared MIB directory | ${libsnmp-Dir}\mibs | C:\Program Files (x86)\PRTG Network Monitor\MonitoringModules\shared\mibs |
Add to the PRTG MIB directory | ${PRTG-Install-Dir}\MIB | C:\Program Files (x86)\PRTG Network Monitor\MIB |
Note:
- If you are unsure of the location of the PRTG Data Path of your installation, you can find it on your PRTG instance under Setup | System Status | System Settings | Data Path or in the PRTG Administration Tool under PRTG Core Server.
- We recommend you create a custom MIB directory to save all your MIB files. You can do this by navigating to your PRTG Data Path (i.e., C:\ProgramData\Paessler\PRTG Network Monitor) and creating a folder called mibs.
Linux
Tested with Ubuntu and Debian.
Description | Folder | Example |
Define NetSNMP's default environment variable | $MIBDIRS | |
Create a custom MIB directory | $HOME/.paessler/snmp | $HOME/user/.paessler/snmp |
Add to the default NetSNMP's home directory path | $HOME/.snmp | |
Add to the shared Monitoring Modules MIB directory | ${libsnmp-Dir}/mibs | $HOME/user/PRTG Network Monitor/MonitoringModules/shared/mibs |
Add to the default NetSNMP directories | /usr/share/snmp/mibs /usr/share/snmp/mibs/iana /usr/share/snmp/mibs/ietf |
Note: The folders paths are based completely on your Linux and program setup. They might differ from the examples above.
2. In your PRTG instance, add an SNMP Custom v2 Sensor.
In the SNMP Custom Specific settings, enter the OID…
Click here to enlarge.
…or the ASN.1 Name you wish to monitor.
Click to enlarge.
Note:
- The SNMP Custom v2 Sensor must be added on the same system running the probe with the ASN.1 MIB file.
- The OID or ASN.1 Name must be entered without spaces and is case-sensitive. You can continue to use the PRTG MIB Importer to easily find the necessary OIDs in your MIB files. If you are struggling to find the ASN.1 Name of the value you wish to monitor, you can try to google the OID you wish to use and find the search response leading to www.oidref.com. (Unfortunately, there is not currently a search feature on the website.)
3. Adjust the SNMP Custom Specific settings to suit your monitoring needs.
4. Create the sensor
More
Knowledge Base
How can I import MIB files into PRTG?
How do SNMP, MIBs, and OIDs work?
Where can I find MIB files for my device?
Paessler Website
Created on May 17, 2023 6:05:33 AM by
Jacqueline Conforti [Paessler Support]
Last change on Jun 13, 2024 6:57:44 AM by
Jacqueline Conforti [Paessler Support]
Add comment