What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

How do I find out which OID I need for an SNMP Custom sensor?

Votes:

2

I would like to add an SNMP Custom sensor in PRTG, for example, for a particular SNMP counter. But how do I find out which OID I need to use exactly?

custom-sensor howto mib oid prtg snmp-custom-sensor

Created on Feb 12, 2010 3:18:54 PM by  Patrick Hutter [Paessler Support] (7,225) 3 3

Last change on Jul 15, 2019 5:52:02 AM by  Maike Guba [Paessler Support] (2,404) 2 1



2 Replies

Accepted Answer

Votes:

2

This article applies as of PRTG 22

OIDs for SNMP Custom sensors

Object identifiers (OIDs) are unique addresses of monitoring objects and are the key to a lot of information about your network that you can monitor via SNMP. How do you find out which OIDs you need?

1. Check OID resources

PRTG already offers a lot of SNMP sensors. This means that various SNMP libraries and most MIBs that are used are already provided in PRTG.

  • Check device coverage: To check if your device is already covered by PRTG, just start an auto-discovery. PRTG then automatically creates all available sensors and channels.
    If your device type has not been covered or if you use SNMP Custom sensors to monitor specific devices, you need to provide one or more specific OIDs to directly access the monitoring objects on these devices.
    In most cases, single OIDs are not explicitly made available in the documentation provided by hardware manufacturers. However, the manufacturers (should) provide the MIB files that contain the necessary device information and allow you to retrieve the respective OIDs.

2a. Import MIB files into PRTG

Once you got the MIB files you need, you can import them into PRTG using MIB Importer. This tool converts the MIB files into .oidlib files, a PRTG format for MIB files. This allows PRTG to read MIB files best and enhances monitoring functionality. For instructions on how to use MIB Importer, see How can I import my MIB files into PRTG?

The standards for creating MIB files are often interpreted in various ways by developers all over the world. Therefore, your import may result in incompatible files. If you were not able to successfully convert the MIB files or to correctly load them, you can try the following option to find out which OIDs you need for your SNMP Custom sensors.

2b. Debug: use SNMP Tester

With SNMP Tester, you can run simple SNMP requests against a device in your network. This test program is based on the SNMP technologies built into PRTG.

SNMP Tester aims to

  • enable SNMP debugging.
  • perform SNMP walks. You can use the Walk option of SNMP Tester to check OIDs and to discover OIDs that you can use to access custom monitoring objects.

Take the following steps:

  1. Download SNMP Tester and unzip all files to your system, preferably the probe system (local or remote).
  2. Start SNMP Tester by running snmptest.exe.
  3. Select the Local IP for the server on which you would like to look up the OIDs, or leave Any. Also define the SNMP parameters asked for, like port, SNMP version, and community string, depending on the SNMP settings on your target device.
  4. Check if you can access the target device via SNMP.
    1. In section Select Request Type, select Read Device Uptime.
    2. In section Run Test, click Start.
      Retrieve uptime
      Click to enlarge.
    3. If this first test was successful, you are ready to use the other SNMP Tester request types to discern all available OIDs on your target system.
  5. In section Select Request Type, select Walk.
    1. Enter 1.3.6 into the Walk field. This is usually the part that OIDs start with.
    2. Click Start.
      A walk
      Click to enlarge.
  6. After some time, depending on the amount of SNMP information provided by the target device, SNMP Tester will list all OIDs it could find with their current value and value type. The type is important to add the correct SNMP Custom sensor type to request a specific OID.

3. Set up your SNMP Custom sensors in PRTG

Having saved the OIDs you need, you can now set up your individual SNMP Custom sensor.

  1. Go to a device in your device tree and open the Add Sensor dialog.
  2. Select the SNMP Custom sensor you want and follow the instructions.
  3. Have your OID ready to enter it when PRTG asks you to do so.

Enjoy Monitoring via SNMP.

Note: Before you spend your time searching for MIBs and and custom OIDs, first check the built-in SNMP libraries (see Check device coverage above).

More

Created on Feb 12, 2010 3:33:56 PM by  Patrick Hutter [Paessler Support] (7,225) 3 3

Last change on Sep 20, 2023 12:25:07 PM by  Jacqueline Conforti [Paessler Support]



Votes:

1

One further option is to use SNMPUtil to walk / get an OID root / branch via the command console.

The necessary syntax would be:

SNMPUTIL [get|getnext|walk] [IP address] [community] [OID]

For example:

SNMPUTIL walk 10.0.0.1 public 1.3.6.1

SNMPUtil can be downloaded from:

http://www.wtcs.org/snmp4tpc/testing.htm

Further information on SNMPUtil is available under:

http://technet.microsoft.com/en-us/library/cc750391.aspx#XSLTsection132121120120

Created on Feb 12, 2010 3:42:39 PM by  Patrick Hutter [Paessler Support] (7,225) 3 3




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.