Author Topic: SNMP Monitoring of Individual Load Balanced VServer Bandwidth  (Read 4266 times)

Offline jmelika

  • Administrator
  • Hero Member
  • *****
  • Posts: 339
  • Karma: 7
SNMP Monitoring of Individual Load Balanced VServer Bandwidth
« on: January 02, 2008, 07:09:05 AM »
I don't know about you, but I had to pull my hair out a few times trying to figure out how to monitor my bandwidth consumption on a VServer basis.  Assuming you've already seen my previous post http://www.netscalerkb.com/netscaler_tricks/snmp_for_netscaler_for_real-t5.0.html and got your PRTG up and running and are able to pull SNMP data from your NetScalers.

Now you need to identify the vservers you want to monitor.  For each one, you will have to type the following command to get its OID:
show snmp oid vserver <yourvservername>

You should get a long OID for each of them.  Copy each of them in a text file so we can plug them in our PRTG config.

Now launch your PRTG config utility, or edit your MRTG config file and create the new counters.  The counter is an SNMP counter.  For the OID of the counter, append this "1.3.6.1.4.1.5951.4.1.3.1.1.45." to the beginning of each of the OIDs you got in your text file.  What you had in your text file is the OID for just the vserver name.  So your whole OID in your config file should be 1.3.6.1.4.1.5951.4.1.3.1.1.45.<the OID from your file>.

If you're using PRTG, make sure you're using type Guage.

Finally, make sure you multiply the result by 8.  The results appear in MegaBytes Per Second, and normal bandwidth monitoring is in Megabits Per Second.  This multiplication will help you standardize it.

Repeate for each of your vservers you want to monitor and you're all set.

Good luck!
JM

Offline ZManGT

  • VIP Member
  • ***
  • Posts: 94
  • Karma: 12
JMelika,

Do you know the counter to monitor the bandwidth for the entire NetScaler?

Offline jmelika

  • Administrator
  • Hero Member
  • *****
  • Posts: 339
  • Karma: 7
ZManGT,

Yep.  .1.3.6.1.4.1.5951.4.1.1.43.30.0 is the Number of IP bits transmitted by the NetScaler in MB for interface 0.  To change the interface, incrementally increase/decrease the last digit (currently 0).

I would recommend you download MIB Browser and load your NetScaler MIB file.  To get to the NetScaler's MIB, browse to:
iso/org/dod/internet/private/enterprise/netScaler.  Almost all the counters have useful comments that describe their use.  Keep in mind that you will likely need to append something to the end of the counter you copy from the MIB Browser.  Basically if you are gathering information for a port, such as in this question, you will need to append the port ID to the end of the counter.  That's why I appended the 0 here.  If you are doing a CS or LB vserver, you will need to get its oid from the netscaler by running the show snmp oid command as described in my original post.

Sorry if I'm going in too much details for you, Z, but I wanted it to be clear to everyone who comes across this post after.

I hope it helps.

JM