Search This Blog

Showing posts with label PRTG. Show all posts
Showing posts with label PRTG. Show all posts

Thursday, November 20, 2014

PRTG Factory Sensor



PRTG factory sensor allow us to create a special sensor with data driven from other sensors.

For example:

I want to calculate (sum) all incoming/outgoing traffic from all Cisco ASA physical interfaces.

Here are the steps:
     1.       Write down all interfaces sensor ID, it’s listed on the overview tab:



     2.       Choose the correct channel ID for traffic in, out or total and write down the channel ID number (0,-1,1)



     3.       Add new sensor to the device and choose Sensor Factory:


     4.       Type the following formula with the values you have collected in step 1 and 2:



#1:ASA_TOTAL_OUT
Channel(2558,1)+Channel(2560,1)+Channel(2550,1)

The sensor I have just created in this example will calculate sum of traffic out (channel ID value is 1) for all 3 sensors (2558, 2560 and 2550).

There are many operators and formulas we can use for creating factory sensors, for more information: http://www.paessler.com/manuals/prtg9/sensor_factory_sensor


Sunday, June 15, 2014

Cisco HSRP state monitor using PRTG

Here is a post which describes how to monitor HSRP state using PRTG network monitor.

Add SNMP custom (see this post for screenshots: http://www.madari.co.il/2014/04/prtg-monitors-pps-on-cisco-routers.html) with the following SNMP OID:

1.3.6.1.4.1.9.9.106.1.2.1.1.15.1.1

The sensor will retrieve integer value which will represent the state of the HSRP group.


And the result:


As we can see the router returns the value “6” which means that he is in active state, a value of “5” will indicate that he is in standby state.


Here is the SNMP object information taken from Cisco SNMP Object Navigator:

Object  cHsrpGrpStandbyState
OID        1.3.6.1.4.1.9.9.106.1.2.1.1.15
Type      HsrpState
1:initial
2:learn
3:listen
4:speak
5:standby
6:active
Permission          read-only
Status   current
MIB        CISCO-HSRP-MIB ;   -   View Supporting Images  this link will generate a new window
Description         The current HSRP state of this group on this interface.






Sunday, April 27, 2014

PRTG monitors PPS on Cisco routers using SNMP



In this post i will explain how to monitors PPS (Packet Per-Second) on Cisco routers using SNMP on PRTG Network Monitor.

First login into the router and get the interface index table:

RTR#show snmp mib ifmib ifindex
FastEthernet1/1: Ifindex = 2
GigabitEthernet0/3: Ifindex = 6
GigabitEthernet0/1: Ifindex = 3
VoIP-Null0: Ifindex = 7
Loopback0: Ifindex = 10
Null0: Ifindex = 9
FastEthernet1/0: Ifindex = 1
GigabitEthernet0/2: Ifindex = 5
Tunnel1: Ifindex = 11
NVI0: Ifindex = 12
FastEthernet0/2: Ifindex = 4
SSLVPN-VIF0: Ifindex = 8
RTR#

Then open the PRTG console and add new sensor to the device, search SNMP Custom and choose SNMP Custom (not SNMP Custom String!)


Type a name for the sensor – something like interface name with packet direction (for example: Gi0/1 PPS in)

Enter the correct OID:



Use:
1.3.6.1.4.1.9.2.2.1.1.9 for output packets
1.3.6.1.4.1.9.2.2.1.1.7 for input packets

Don’t forget to add the interface index number after the OID, for example if I would like to monitor GigabitEthernet0/3 input packet per-second the correct OID will be: 1.3.6.1.4.1.9.2.2.1.1.7.6

also add "/s" on the unit string to show that this unit is per-second.

click Continue and that's it.
 




Wednesday, November 7, 2012

How to create an SNMP custom MIB for PRTG

Cisco IP-SLA path jitter is very useful for monitoring packet loss and jitter but unfortunately it isn’t supported in PRTG network monitor so I had to make a custom SNMP MIB for adding support on PRTG.

So here are the steps:

First download the required files:

1.       Paessler MIB Importer and Converter


2.       Cisco SMI:




Now let’s edit the CISCO-RTTMON-MIB and prepare a custom SNMP MIB:

1.       Install and then open the Paessler MIB Importer and Converter

2.       Choose Import from the top menu and select CISCO-SMI file:


3.       An import successful message will appear, click close



4.       Choose Import from the top menu again but this time select CISCO-RTTMON-MIB file



5.       An import successful message will appear, click close

6.       Now all the OIDs will appear in the MIB convertor



7.       you can click on each OID and get information regarding the specific OID including description, type, OID number, values and more.



8.       Using CTRL+X delete all unnecessary OID’s from the current list and leave only the required OIDs for your current MIB.

 

 Note that you can click on File->Enable Partial Selection for selecting specific OID’s.



9.       Click File->Save As… and save the file in C:\Program Files (x86)\PRTG Network Monitor\snmplibs folder.

10.   Open PRTG Network Monitor console

11.   Add a new sensor

12.   Choose SNMP Library

13.   Choose the newly created MIB file