Ad Widget

Collapse

statistic trunk ports

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sebelk
    Member
    • Nov 2007
    • 72

    #1

    statistic trunk ports

    Hi!

    I have about 20 switches and I'd want gather current status of trunk ports of each switch, for example current ifInOctets, IfInErrors, etc... how can I do this task?



    thanks in advance
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    That's likely to be vendor specific. You might want to try and do an SNMP walk for all the values from the switch and then try and drill down from there which MIB value you want to monitor.

    Try something like:
    snmpwalk -Os -c <your community string> -v 1 <hostname>

    There's a switch that will also return them showing only their MIB numbers, but I can't recall at this moment. I'm guessing here but it will likely be that you will have to look for a the trunk label under one key then below that there may be the corresponding information.

    If you manage to find it post back what you found. Hope this helps. :-)
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • sebelk
      Member
      • Nov 2007
      • 72

      #3
      Thanks nelsonab for your reply. In fact, I already know how to obtain if a port is trunk or access, I've created an item which uses SNMP OID 1.3.6.1.4.1.2272.1.3.3.1.4.x (where x is the port number). Also I already have a screen with such a data, I have a few items per port. But I want something slightly different, I want a kind of conditional thing that "if X port has current status of trunk, that tell me eg: how many packets it had received till now". Perhaps that can be done by using triggers, if it can please, give a hint about it and I hope I explained better what I want


      Thanks in advance!

      Comment

      Working...