ITS-Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Lancom kein SNMP am WAN

    Scheduled Pinned Locked Moved Technik
    5 Posts 1 Posters 822 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      admin
      last edited by

      Lancom macht kein SNMP auf der WAN Schnittstelle, getestet mit SNMP v2 und v3 es scheint so als würde die Anfrage gar nicht bis zum Dienst durchkommen. Egal welche Einstellung ich teste, es kommt keine Verbindung zu stande.

      1 Reply Last reply Reply Quote 0
      • A Offline
        admin
        last edited by

        Über Tunnel muss auch am WAN SNMP eingeschaltet sein, hier mal entsprechend die Coonfig dazu. Kann man über SSH so einpflegen.

        set /Setup/SNMP/Admitted-Protocols SNMPv2,SNMPv3
        cd /Setup/Config/Access-Table
        set  LAN    {Telnet}  No     {TFTP}  Yes    {HTTP}  Yes    {SNMP}  Yes    {HTTPS}  Yes    {Telnet-SSL}  Yes        {SSH}  Yes    {SNMPv3}  Yes
        set  WAN    {Telnet}  No     {TFTP}  No     {HTTP}  No     {SNMP}  Yes    {HTTPS}  Yes    {Telnet-SSL}  Yes        {SSH}  Yes    {SNMPv3}  Yes
        set  WLAN   {Telnet}  No     {TFTP}  Yes    {HTTP}  Yes    {SNMP}  No     {HTTPS}  Yes    {Telnet-SSL}  Yes        {SSH}  Yes    {SNMPv3}  Yes
        
        1 Reply Last reply Reply Quote 0
        • A Offline
          admin
          last edited by

          Mit SNMP Walk und der OID Tabelle von Cacti hab ich die entsprechenden Interface IDs rausgefunden. Beim Lancom ist Lan-1 ein Sammelinterface auf dem alle VLANs defaultmäßig liegen. Dazu gehören folgende OIDs:

          # Get Interface Name and Number
          snmpwalk -v2c -c public 192.168.197.1 .1.3.6.1.2.1.31.1.1.1.1
          
          #Get Interface Bytes IN
          .1.3.6.1.2.1.2.2.1.10
          
          #Get Traffic LAN-1 Bytes IN
          .1.3.6.1.2.1.2.2.1.10.6
          
          #Get Interface Bytes Out
          .1.3.6.1.2.1.2.2.1.16
          
          #Get Interface Bytes Out LAN-1
          .1.3.6.1.2.1.2.2.1.16.6
          
          1 Reply Last reply Reply Quote 0
          • A Offline
            admin
            last edited by

            Im Icinga kann man dann die OIDs folgendermaßen überwachen:

            vars.snmp_check["LAN-1 Bytes IN"] = {
                   snmp_community="public"
                   snmp_oid = ".1.3.6.1.2.1.2.2.1.10.6"
                   snmp_warn = "40000000000"
                   snmp_crit = "50000000000"
                   snmp_timeout = 15
                   snmp_version = "2c"
              } 
            
            vars.snmp_check["LAN-1 Bytes OUT"] = {
                   snmp_community="public"
                   snmp_oid = ".1.3.6.1.2.1.2.2.1.16.6"
                   snmp_warn = "40000000000"
                   snmp_crit = "50000000000"
                   snmp_timeout = 15
                   snmp_version = "2c"
              }
            
            1 Reply Last reply Reply Quote 0
            • A Offline
              admin
              last edited by

              Also es geht doch, man kann lancom über das WAN Iterface SNMP abfragen. Hierzu muss man eine neue Community anlegen zB lancom und eine dazugehörige Gruppe. Dann klappts auch mit dem WAN Interface.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB | Contributors