PRTG Using Snmp-2022 60min
PRTG Using Snmp-2022 60min
PRTG
www.itskylabs.com
Simple Network Management Protocol
SNMP
SNMP: Is the most basic and Agents
SNMP GET
commonly used method for
obtaining data regarding
network performance and
bandwidth usage, mainly
because of its setup
simplicity and frugal use of
network resources. It is also Network
Administered
used to acquire information Management RESPONSE
Device
from other devices which System
provide metrics using this (PRTG)
protocol.
SNMP Protocol Components
www.itskylabs.com
Simple Network Management Protocol
How does SNMP work?
Target device must have SNMP SNMP GET
enabled and set correctly. The
monitoring application sends
SNMP GET requests to the
device which in time responds
with the requested information.
Data can be related to traffic or Admin
other operating parameters of Management
Station Monitored
the device. RESPONSE Devices
www
www.itskylabs.com
How does SNMP work?
PRTG requests the device’s
temperature reading with OID
1.3.6.1.4.1.37954.2.1.1.1.0
PRTG
NETWORK MONITOR
www.itskylabs.com
SNMP Versions
SNMP V1 X
SNMP V2 X
SNMP V3 X X
www.itskylabs.com
SNMP Tester
www.itskylabs.com
SNMP Tester
SNMP Tester Lab
Use SNMP Tester to connect to device 192.168.200.2 using SNMP version v2c and community
string public
1-2
www.itskylabs.com
Custom Sensors - SNMP
Business Case
After an Auto-discovery performed on a
device, no additional sensors related to the
nature of the device have been created.
For example:
Printer: Antivirus:
Why is that?
Ink/Toner Level # detected viruses
Paper Level Signature update
UPS: Environment:
Voltage Temperature
Battery time Vibration
Amperage Humidity An Auto-discovery ran on an environmental device produces no
specific sensors, only Ping and Traffic sensors
www.itskylabs.com
Custom Sensors - SNMP
Business Case:
We need to monitor an
Environmental Control Device
which exposes these metrics
via SNMP:
Temperature
Humidity
Dew point
CO2 Level
Motion Sensor
Vibration
www.itskylabs.com
Custom Sensors - SNMP
MIB Hierarchy
www.itskylabs.com
Custom Sensors - SNMP
1
MIBS and OID’s are generally
provided by the device
manufacturers 2
2. Table identified by [ ]
3. Single values
MIB Hierarchy
www.itskylabs.com
Custom Sensors - SNMP 2 Obtain MIB file from manufacturer
Required Steps
1
Configure
SNMP
on target device
Device’s MIB File
www.paessler.com
www.itskylabs.com
Custom Sensors - SNMP
Relational Diagram of MIBS
MIB File PRTG Server
MIB Importer
www.itskylabs.com
Custom Sensors - SNMP
Laboratory: MIB Analysis
Using MIB Importer import
the MIB file of the target
device and review it. Sensor Name
Gauges: Integer
Counters: Unit
Cummulative
values Strings:
Texts
Description
1
Operations
DEMO
www.itskylabs.com
Custom Sensors - SNMP
Laboratory: MIB Analysis
Obtain OIDs for these sensors:
Temperature Value Sensor Name
Humidity Value
Dewpoint Value OID – Unique identifier
CO2 Value
Motion Value
Vibration Value
1-3
www.itskylabs.com
Custom Sensors - SNMP
Idevice P and Port
Laboratory: MIB Analysis Start button
1-4
www.itskylabs.com
Custom Sensors - SNMP
2
OID Identifier
DEMO Divide by 10
www.itskylabs.com
Custom Sensors - SNMP
Laboratory: Create Environmental device group
Create a new device group under Local Probe and name it Environmental
Do not declare credentials
Do not perform an Autodiscovery
1-5
www.itskylabs.com
Standard Sensors- SNMP
Laboratory: Create device and use Autodiscovery
Add the Environmental Monitor Device to the group Environmental Control with:
IP Address: 192.168.200.4 and SNMP V1 Public and use the Autodiscovery option
After a few minutes note that no environmental specific sensors are automatically created
1-6
www.itskylabs.com
Custom Sensors - SNMP
Laboratory: Create a Custom Sensor
Add SNMP Custom Sensor for the Temperature OID obtained in Lab 1-3
1-7
DO
www.itskylabs.com
Custom Sensors - SNMP
Laboratory: Create an Advanced Custom Sensor
Add SNMP Custom Advanced Sensor for the 2 OIDs obtained in Lab 1-3
1-8
DE8O
www.itskylabs.com
Custom Sensors - SNMP
Partially selecting from the
MIB file
Business Case
Some MIBs have
thousands of sensors:
It is better not to
import them all!
Only valuable Allows for handpicked
sensors should be selection of sensors
imported
Therefore, use the
Partial Selection feature
of MIB Importer
www.itskylabs.com
Custom Sensors - SNMP
DEMO 1-10
www.itskylabs.com
Custom Sensors - SNMP Folder where OIDLIBS
must be stored on the
Laboratory: Saving partial selection to a file PRTG Server
1-11
www.itskylabs.com
Custom Sensors - SNMP
Laboratory: Using the OIDLIB file
Step 1: The SNMP Step 2: Select the OIDLIB Step 3: Select those
Library sensor allows from the pulldown field sensors you wish from
the use of OIDLIB files the list shown
Sensor
Which OID
Select the sensors
1-12
www.itskylabs.com
Thank You!
www.itskylabs.com