Ad Widget

Collapse

Network Interface - OID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shadowsluke
    Junior Member
    • Apr 2008
    • 12

    #1

    Network Interface - OID

    Hello

    I have (again) a little problem, this time with the network interface item.
    I use "net.if.in[eth0,bytes]".
    And for the OID, I use : interfaces.ifTable.ifEntry.ifInOctets.{number of interface}.

    It works great.
    But, sometimes, in the MIB, the OID of active interface changes.
    For example, sometimes I have to use interfaces.ifTable.ifEntry.ifInOctets.2.
    and sometimes, it's interfaces.ifTable.ifEntry.ifInOctets.3.

    That's never the same interface ! I have to make changes every day
    So how can I monitor network interface efficiently ?
    Did I make something wrong ?

    Thanks again
  • Shadowsluke
    Junior Member
    • Apr 2008
    • 12

    #2
    Nobody can help me ?

    I'm probably not the first to try to monitor network interface...
    How do you use this item ?

    Thanks for your help

    Comment

    • Tenzer
      Senior Member
      • Nov 2007
      • 316

      #3
      Well, you could just add both items, and then the one which isn't found is just getting disabled.

      Comment

      • Shadowsluke
        Junior Member
        • Apr 2008
        • 12

        #4
        Yes, that could be a good idea, but the value of the interface is really not limited.

        In my example, I said "2" and "3", but on my computer, it's "65539".
        I can't add 65539 items

        Zabbix is not able to find itself the value of the interface ?

        Comment

        • Tenzer
          Senior Member
          • Nov 2007
          • 316

          #5
          The upcoming version (1.6) is supposed to have support for dynamic indexes, which may be what you are needing. There is some information about it in this thread: http://www.zabbix.com/forum/showthread.php?t=9218

          Comment

          • Shadowsluke
            Junior Member
            • Apr 2008
            • 12

            #6
            Hum so I have to do changes every day until this upcoming version
            It's really not easy to use, but if there is no other solution...

            Thanks for your help Tenzer

            Comment

            • Tenzer
              Senior Member
              • Nov 2007
              • 316

              #7
              You're welcome...

              I just came to think of another solution, which may not be that simple. You can create an external script which does a snmpwalk or something, and gets the values you want. Since it is made from an external script, you can make it dynamic and solve the issue.

              You do of course need to have some experience in scripting of some sort, in order to use this.

              Comment

              • Shadowsluke
                Junior Member
                • Apr 2008
                • 12

                #8
                Yes, I already use snmpwalk with PHP in an external script.
                It takes 15 minutes to make a snmpwalk on each workstation (192.168.0.100-255).
                I can do that automatically each morning and save the datas in MySQL. But after that, Zabbix has to monitor the item having the specific value of the interface. How can Zabbix add the item and therefore read the value in the database ?

                Comment

                Working...