Ad Widget

Collapse

SNMP problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ThorHjalmar
    Junior Member
    • Jan 2021
    • 2

    #1

    SNMP problems

    Hi all,

    I am having problems getting SNMP to work on ITWatchDog 100-p after fiirmware upgrade. I have the MIB file for the device but have been unable to convert all values into an XML file to import into a Zabbix Template. Now I don't know what information I should provide for you all to be able to assist me with this problem. I found the mib2zabbix app but am not getting all the information into the xml file that gets created.

    When I do snmpwalk -m geist_bb.mib -v 2c -c public xxx.xxx.xxx.xxx I get the following,

    /usr/share/snmp/mibs/NET-SNMP-VACM-MIB: No such file or directory
    MIB search path: /usr/share/snmp/mibs:/var/lib/snmp/mibs:/var/lib/snmp/mibs/ietf:/var/lib/snmp/mibs/iana
    Cannot find module (geist_bb.mib): At line 1 in (none)
    iso.3.6.1.2.1.1.1.0 = STRING: "Environment Monitor"
    iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.21239.42.1.32
    iso.3.6.1.2.1.1.3.0 = Timeticks: (59659304) 6 days, 21:43:13.04
    iso.3.6.1.2.1.1.4.0 = STRING: "support
    iso.3.6.1.2.1.1.5.0 = STRING: "Watchdog 100-P"
    iso.3.6.1.2.1.1.6.0 = Hex-STRING: 53 75 C3 B0 75 72 68 6C C3 AD C3 B0 20 33 35
    iso.3.6.1.2.1.1.7.0 = INTEGER: 72
    iso.3.6.1.2.1.2.1.0 = INTEGER: 1
    iso.3.6.1.2.1.2.2.1.1.1 = INTEGER: 1
    iso.3.6.1.2.1.2.2.1.2.1 = STRING: "eth0"
    iso.3.6.1.2.1.2.2.1.3.1 = INTEGER: 6
    iso.3.6.1.2.1.2.2.1.4.1 = INTEGER: 1500
    iso.3.6.1.2.1.2.2.1.5.1 = Gauge32: 100000000
    iso.3.6.1.2.1.2.2.1.6.1 = Hex-STRING: 04 A3 F2 5F 19
    iso.3.6.1.2.1.2.2.1.7.1 = INTEGER: 1
    iso.3.6.1.2.1.2.2.1.8.1 = INTEGER: 1
    iso.3.6.1.2.1.2.2.1.9.1 = Timeticks: (0) 0:00:00.00
    iso.3.6.1.2.1.2.2.1.10.1 = Counter32: 0
    iso.3.6.1.2.1.2.2.1.11.1 = Counter32: 0
    iso.3.6.1.2.1.2.2.1.12.1 = Counter32: 0
    iso.3.6.1.2.1.2.2.1.13.1 = Counter32: 0
    iso.3.6.1.2.1.2.2.1.14.1 = Counter32: 0
    iso.3.6.1.2.1.2.2.1.15.1 = Counter32: 0
    iso.3.6.1.2.1.2.2.1.16.1 = Counter32: 0
    iso.3.6.1.2.1.2.2.1.17.1 = Counter32: 0
    iso.3.6.1.2.1.2.2.1.18.1 = Counter32: 0
    iso.3.6.1.2.1.2.2.1.19.1 = Counter32: 0
    iso.3.6.1.2.1.2.2.1.20.1 = Counter32: 0
    iso.3.6.1.2.1.2.2.1.21.1 = Gauge32: 0
    iso.3.6.1.2.1.2.2.1.22.1 = OID: ccitt.0

    It looks ok but there are a lot of information missing I think since the OID's in the output do not match any OID from the device. The mib file came with the firmware update.

    Also if I run this same command with +geist_bb-mib I get something else

    MIB search path: /usr/share/snmp/mibs:/var/lib/snmp/mibs:/var/lib/snmp/mibs/ietf:/var/lib/snmp/mibs/iana
    Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
    Cannot find module (geist_bb.mib): At line 1 in (none)
    SNMPv2-MIB::sysDescr.0 = STRING: Environment Monitor
    SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.21239.42.1.32
    SNMPv2-MIB::sysUpTime.0 = Timeticks: (60350054) 6 days, 23:38:20.54
    SNMPv2-MIB::sysContact.0 = STRING: support
    SNMPv2-MIB::sysName.0 = STRING: Watchdog 100-P
    SNMPv2-MIB::sysLocation.0 = STRING: Suðurhlíð 35
    SNMPv2-MIB::sysServices.0 = INTEGER: 72
    IF-MIB::ifNumber.0 = INTEGER: 1
    IF-MIB::ifIndex.1 = INTEGER: 1
    IF-MIB::ifDescr.1 = STRING: eth0
    IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
    IF-MIB::ifMtu.1 = INTEGER: 1500
    IF-MIB::ifSpeed.1 = Gauge32: 100000000
    IF-MIB::ifPhysAddress.1 = STRING: 4:a3:f2:5f:19
    IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
    IF-MIB::ifOperStatus.1 = INTEGER: up(1)
    IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
    IF-MIB::ifInOctets.1 = Counter32: 0
    IF-MIB::ifInUcastPkts.1 = Counter32: 0
    IF-MIB::ifInNUcastPkts.1 = Counter32: 0
    IF-MIB::ifInDiscards.1 = Counter32: 0
    IF-MIB::ifInErrors.1 = Counter32: 0
    IF-MIB::ifInUnknownProtos.1 = Counter32: 0
    IF-MIB::ifOutOctets.1 = Counter32: 0
    IF-MIB::ifOutUcastPkts.1 = Counter32: 0
    IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
    IF-MIB::ifOutDiscards.1 = Counter32: 0
    IF-MIB::ifOutErrors.1 = Counter32: 0
    IF-MIB::ifOutQLen.1 = Gauge32: 0
    IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero


    In my /usr/share/snmp/mibs directory I have created a symbolic link for the following MIB files

    SNMPv2-TC -> /var/lib/snmp/mibs/ietf/SNMPv2-TC
    SNMP-FRAMEWORK-MIB -> /var/lib/snmp/mibs/ietf/SNMP-FRAMEWORK-MIB
    SNMPv2-SMI -> /var/lib/snmp/mibs/ietf/SNMPv2-SMI
    SNMPv2-MIB -> /var/lib/snmp/mibs/ietf/SNMPv2-MIB
    IPV6-UDP-MIB -> /var/lib/snmp/mibs/ietf/IPV6-UDP-MIB
    IPV6-TCP-MIB -> /var/lib/snmp/mibs/ietf/IPV6-TCP-MIB
    IPV6-TC -> /var/lib/snmp/mibs/ietf/IPV6-TC
    IPV6-ICMP-MIB -> /var/lib/snmp/mibs/ietf/IPV6-ICMP-MIB
    IPV6-MIB -> /var/lib/snmp/mibs/ietf/IPV6-MIB

    I have also tried to use only the /usr/share/snmp/mibs in my /etc/snmp/snmp.conf. When I do an snmpwalk with only that directory enabled I get the following output.


    MIB search path: /usr/share/snmp/mibs
    Cannot find module (IF-MIB): At line 1 in (none)
    Cannot find module (IP-MIB): At line 1 in (none)
    Cannot find module (TCP-MIB): At line 1 in (none)
    Cannot find module (UDP-MIB): At line 1 in (none)
    Cannot find module (HOST-RESOURCES-MIB): At line 1 in (none)
    Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
    Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
    Cannot find module (DISMAN-SCHEDULE-MIB): At line 1 in (none)
    Cannot find module (HOST-RESOURCES-TYPES): At line 1 in (none)
    Cannot find module (MTA-MIB): At line 1 in (none)
    Cannot find module (NETWORK-SERVICES-MIB): At line 1 in (none)
    Cannot find module (HCNUM-TC): At line 37 in /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
    Did not find 'CounterBasedGauge64' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)
    Cannot find module (SNMP-TARGET-MIB): At line 1 in (none)
    Cannot find module (SNMP-MPD-MIB): At line 1 in (none)
    Cannot find module (SNMP-USER-BASED-SM-MIB): At line 1 in (none)
    Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 1 in (none)
    Cannot find module (SNMP-COMMUNITY-MIB): At line 1 in (none)
    Cannot find module (IP-FORWARD-MIB): At line 1 in (none)
    Cannot find module (INET-ADDRESS-MIB): At line 13 in /usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt
    Did not find 'InetAddressType' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt)
    Did not find 'InetAddress' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt)
    Cannot find module (SNMP-NOTIFICATION-MIB): At line 1 in (none)
    Cannot find module (SNMPv2-TM): At line 1 in (none)
    Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 16 in /usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt
    Did not find 'vacmGroupName' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt)
    Did not find 'vacmAccessContextPrefix' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt)
    Did not find 'vacmAccessSecurityModel' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt)
    Did not find 'vacmAccessSecurityLevel' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt)
    Cannot find module (geist_bb.mib): At line 1 in (none)
    SNMPv2-MIB::sysDescr.0 = STRING: Environment Monitor
    SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.21239.42.1.32
    SNMPv2-MIB::sysUpTime.0 = Timeticks: (60379729) 6 days, 23:43:17.29
    SNMPv2-MIB::sysContact.0 = STRING: support
    SNMPv2-MIB::sysName.0 = STRING: Watchdog 100-P
    SNMPv2-MIB::sysLocation.0 = STRING: Suðurhlíð 35
    SNMPv2-MIB::sysServices.0 = INTEGER: 72
    SNMPv2-SMI::mib-2.2.1.0 = INTEGER: 1
    SNMPv2-SMI::mib-2.2.2.1.1.1 = INTEGER: 1
    SNMPv2-SMI::mib-2.2.2.1.2.1 = STRING: "eth0"
    SNMPv2-SMI::mib-2.2.2.1.3.1 = INTEGER: 6
    SNMPv2-SMI::mib-2.2.2.1.4.1 = INTEGER: 1500
    SNMPv2-SMI::mib-2.2.2.1.5.1 = Gauge32: 100000000
    SNMPv2-SMI::mib-2.2.2.1.6.1 = Hex-STRING: 04 A3 F2 5F 19
    SNMPv2-SMI::mib-2.2.2.1.7.1 = INTEGER: 1
    SNMPv2-SMI::mib-2.2.2.1.8.1 = INTEGER: 1
    SNMPv2-SMI::mib-2.2.2.1.9.1 = Timeticks: (0) 0:00:00.00
    SNMPv2-SMI::mib-2.2.2.1.10.1 = Counter32: 0
    SNMPv2-SMI::mib-2.2.2.1.11.1 = Counter32: 0
    SNMPv2-SMI::mib-2.2.2.1.12.1 = Counter32: 0
    SNMPv2-SMI::mib-2.2.2.1.13.1 = Counter32: 0
    SNMPv2-SMI::mib-2.2.2.1.14.1 = Counter32: 0
    SNMPv2-SMI::mib-2.2.2.1.15.1 = Counter32: 0
    SNMPv2-SMI::mib-2.2.2.1.16.1 = Counter32: 0
    SNMPv2-SMI::mib-2.2.2.1.17.1 = Counter32: 0
    SNMPv2-SMI::mib-2.2.2.1.18.1 = Counter32: 0
    SNMPv2-SMI::mib-2.2.2.1.19.1 = Counter32: 0
    SNMPv2-SMI::mib-2.2.2.1.20.1 = Counter32: 0
    SNMPv2-SMI::mib-2.2.2.1.21.1 = Gauge32: 0
    SNMPv2-SMI::mib-2.2.2.1.22.1 = OID: SNMPv2-SMI::zeroDotZero


    I have also tried to enter the OID manually into zabbix but then I get the status not supported.

    So you see I have a lot of SNMP problems. I have tried to find and read about SNMP in zabbix documentation but am still at a loss. Any help would be appreciated.


    Thor Hjalmar.
  • Noobz
    Senior Member
    • Jun 2020
    • 105

    #2
    If you do a simple walk on the device with no arguments and all you get is iso.3.6.1.2.x.x.x.... then that's all the device has to report on, regardless of what is in the MIB. If the device doesn't report back on anything else then it doesn't matter what the MIB says. The MIB is just for translation, you can't translate something which doesn't exist.

    Comment

    • ThorHjalmar
      Junior Member
      • Jan 2021
      • 2

      #3
      I got this working after some google search. All the info was there but I needed to add .1 after every OID that I wanted to monitor. When I found this out everything started to work as it should have. SNMP is a bit cryptic but when you find out how it works, it works.

      Comment

      Working...