OID for traffic / bandwidth monitoring

rboklewskirboklewski
Alright guys, im new to this software and I need some help. Here goes. I installed serverscheck and everything seems good. I will give you the names of my machines so you know what is going on. Servers check is installed on my xp machine called (rboklewski) and i want to setup monitoring of another machine called (artark). So what I did was I went to artark and ran the MIB Ver. 1 and gathered the ifin/ifout oid's and when i put them in the serverscheck for bandwidth on rboklewski i get a can't find oid error message. Why is that?

Comments

  • AdministratorAdministrator
    What Ifin/ifout oid's are you using? Are you using the MIB on machine artark or against machine artark?
  • rboklewskirboklewski
    I ran the mib on the machine artark and grabeed the ifin/ifout and plugged those numbers in on serverchech, which is installed on rboklewski.
  • AdministratorAdministrator
    As asked previously, what ifin/ifout OID's are you using?
  • rboklewskirboklewski
    ifinoctets- .1.3.6.1.2.1.2.2.1.10.0



    ifoutoctets- .1.3.6.1.2.1.2.2.1.16.0



    These are from artark
  • AdministratorAdministrator
    These are not correct OID's. It is the top OID for network interfaces.



    An OID for a network interface has a digit behind it, similar to following: .1.3.6.1.2.1.2.2.1.10.XXXX.0



    To know that XXXX you need to perform a SNMP WALK from .1.3.6.1.2.1.2.2.1.10



    In your MIB browser you will then see a list of OID's following the .1.3.6.1.2.1.2.2.1.10 branch
  • rboklewskirboklewski
    I thought you just run the mib and find the oid at



    interfaces->ifnumber->iftable->ifentry->ifinoctet/ifoutoctet



    Now i tried to perform the snmp walk by going on artark and plugging in .1.3.6.1.2.1.2.2.1.10 in the oid box at the top and selecting walk then go and it didn't do anything.
  • AdministratorAdministrator
    this a SNMP table structure which means that the oid in the leaf is the top OID and that all network interfaces fall under that one.



    If the WALK doesn't do anything then you do not have SNMP enabled on the system.



    What happens if you do a GET in the MIB Browser on OID .1.3.6.1.2.1.1.1.0 ?



    If that does not return anything then you do not have SNMP running on the artark system.
  • rboklewskirboklewski
    okay let me make sure i am pretty sure the service is running, but let me verify.
  • AdministratorAdministrator
    The URL for the image does not exist.



    What kind of error is it? From the service or from the MIB Browser. If MIB Browser, then try using GetIf to get the OID:

    http://www.wtcs.org/snmp4tpc/getif.htm
  • rboklewskirboklewski
    try it again, i had it up there wrong the first time. It says Error end of mib view reached when I tried the walk command through the mib browser on artark
  • AdministratorAdministrator
    That is not an error as something failed. It is an indication that the mib ended.



    Based on your image, your Broadcom Nextreme Gigabit Ethernet card should have following OID's:

    incoming: .1.3.6.1.2.1.2.2.1.10.2

    outgoing: .1.3.6.1.2.1.2.2.1.16.2
  • rboklewskirboklewski
    I think it is finally starting to work, how did you come up with those numbers, i didn't see anything on that screen shot with those numbers? Here is the bandwidth graph and it looks like it is recording numbers.



    http://img144.imageshack.us/my.php?image=bandwidthil1.gif




  • AdministratorAdministrator
    The daily graph is refreshed less frequently than the current graph.



    By looking at the WALK and the description OID for your network card where the last digit is the ID of the interface that you need.
  • rboklewskirboklewski
    This is weird i thought the oid are unique, why are they the same on my machine rboklewski and also on artark?



    It also looks like you just added a 2 after the ifin/ifout octet oids?
  • rboklewskirboklewski
    Yeah it is definantly working, the graphs are being displayed nicely for artark.
  • rboklewskirboklewski
    Anyone else want to take a stab at showing me how to find the oid's, im just not seeing it. There has to be a simple mathematical solution to figuring out the incoming and outgoing oid's.
  • AdministratorAdministrator
    It is not mathematical but vendor specific.



    On following image that you did upload, you see the name of your card (Broadcom Nextreme ...)

    http://img256.imageshack.us/my.php?image=miberrorwy6.gif



    Well the last digit (=2) is the one you need for your oid.

    incoming: .1.3.6.1.2.1.2.2.1.10.(last digit)

    in above case it is 2, thus incoming: .1.3.6.1.2.1.2.2.1.10.2



    outgoing: .1.3.6.1.2.1.2.2.1.16.(last digit)
  • rboklewskirboklewski
    okay, but where did you get the .1.3.6.1.2.1.1.1.0 from? You had me plug in that number and do the walk to get the last digit of the ethernet card.
  • AdministratorAdministrator
    This part of the SNMP protocol; there are a set of standard OID's from where one starts a WALK operation to obtain the relevant OID if these are not enterprise specific OID's (in that case a MIB file is loaded)



    If you would like to know more on the why and how, then I suggest to read some books on the SNMP protocol to get more familiar with it. SNMP is one of the main foundations for managing networked devices.
  • rboklewskirboklewski
    okay, so you are saying I can use .1.3.6.1.2.1.1.1.0 on every machine to get their last digit? Thanks for all your help.
  • rboklewskirboklewski
    Okay I tried this on my machine (rboklewski)



    Check the two pictures, here is what i came up with.



    In- .1.3.6.1.2.1.2.2.1.16.(2)



    Out- .1.3.6.1.2.1.2.2.1.10.(2)





    It didn't work, but check the pictures here to see what I may have did wrong. This time there was a bunch of numbers at the end of the oid for the network card.



    http://img105.imageshack.us/my.php?image=bandwidthrboklewskiwt1.gif



    http://img62.imageshack.us/my.php?image=bandwidthrboklewski2su9.gif
  • AdministratorAdministrator
    I tried to explain it my previous post, that you had to take the last number in the OID next to the name of your network card.



    In the image you submitted this is 65539



    so outgoing is .1.3.6.1.2.1.2.2.1.16.65539 (and not incoming as you state in your last post)



    incoming is .1.3.6.1.2.1.2.2.1.10.65539
  • rboklewskirboklewski
    Ah, sorry i mixed them up in my post, yeah i put in 65539 for the last digit and it seems to have taken. I really appreciate all your help. Let me ask you this, can you manage macs with this software? Also, what about traffic, which oid do i use?
  • AdministratorAdministrator
    Any SNMP enabled device can be monitored by ServersCheck. If your Mac supports SNMP, then use the MIB Browser to find the right OID in the event that Apple's technical support can not provide you it.



    To remotely browse a system, enter the IP address of the device in the MIB Browser and that's it.



    This topic is now closed.
This discussion has been closed.