When adding LAN-switch to UI they are not displayed in monitoring

Maks
edited October 2019 in LAN
Hi
When I adding LAN-switch to UI they are not displayed in monitoring in stor2rrd.
Testing when adding LAN-switch passes without errors. 
STOR2RRD version 2.60
«1

Comments

  • STOR2RRD version2.60
  • Ctrl-F5 in the browser

    when have you added it? 1 hour back at least?
    if so then logs

    Note a short problem description in the text field of the upload form.

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir
    tar cvhf logs.tar logs tmp/*txt
    gzip -9 logs.tar

    Send us logs.tar.gz via https://upload.stor2rrd.com


  • It's been 24 hours since it was added.

  • is this working?

    perl /home/stor2rrd/stor2rrd/bin/conntest_udp.pl <switch IP> 161

  • I sent logs files 
  • [lpar2rrd@STOR2RRD bin]$ perl /home/stor2rrd/stor2rrd/bin/conntest_udp.pl 10.37.255.xx 161
      UDP connection to "10.37.255.xx" on port "161" is ok

  • Hi,

    i have the same problem with configuration snmp v3
    UI doesn't show switch 
    testing from UI below
    API host network connection: UDP connection to 10.9.212.138:161 is OK
    Crontab test: OK
    API authorization: OK
    /usr/bin/snmpwalk -v 3 -u prime -l authPriv -A  -X  -a SHA -x AES 10.9.212.138 1.3.6.1.2.1.1.5
    SNMP version  : 3
    Port          : 161 (default)
    Timeout       : 5 seconds
    SecName       : prime
    SecLevel      : authPriv
    AuthProto     : SHA
    PrivProto     : AES
    Switch name   : PLOLB-n7k-corpo1
    STATE         : CONNECTED!
    
    API data test: OK

    error.log consist of below errors
    stor2rrd@pl002-mg-xorux1 logs $ tail 10 error.log-10.9.212.138
    tail: cannot open ‘10’ for reading: No such file or directory
    ==> error.log-10.9.212.138 <==
    Thu Oct 17 09:59:03 2019: Data collection via snmp timed out after 600 seconds : /stor2rrd/bin/lanperf.pl:61 : Interrupted system call
    Thu Oct 17 10:04:03 2019: Data collection via snmp timed out after 600 seconds : /stor2rrd/bin/lanperf.pl:61 : Interrupted system call
    Thu Oct 17 10:09:03 2019: Data collection via snmp timed out after 600 seconds : /stor2rrd/bin/lanperf.pl:61 : Interrupted system call

    regards
    tomlee

  • Hi,

    data collection from your switches takes too long.
    Can you try the following steps? It should help.

    1. increase data collection timeout
    Just put line "export LAN_DATA_COLLECTION_TIMEOUT=900" to etc/.magic

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir
    echo "export LAN_DATA_COLLECTION_TIMEOUT=900" >>  etc/.magic

    2. re-schedule LAN agent in the crontab
    crontab -e
    
    Change this line:
    # LAN 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/lpar2rrd/stor2rrd/load_lanperf.sh >/home/lpar2rrd/stor2rrd/logs/load_lanperf.out 2>&1lpar2rrd/stor2rrd/logs/load_sanperf.out 2>&1
    to:
    0,10,20,30,40,50 * * * * /home/lpar2rrd/stor2rrd/load_lanperf.sh >/home/lpar2rrd/stor2rrd/logs/load_lanperf.out 2>&1


    Let it work about 2-3 hours and let us know if that helped.

  • Maks
    edited October 2019
    Hi, Karel

    It's not working... Sorry
     
  • Hi Maks,

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir
    tail logs/error.log-<switch IP>
  • Karel,

    Thu Oct 17 12:45:06 2019: Data collection via snmp timed out after 900 seconds : /home/lpar2rrd/stor2rrd/bin/lanperf.pl:61 : Interrupted system call
    Thu Oct 17 12:55:06 2019: Data collection via snmp timed out after 900 seconds : /home/lpar2rrd/stor2rrd/bin/lanperf.pl:61 : Interrupted system call
  • Hi,

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir
    ./bin/config_check.sh <switch IP>
  • Hi,

    from my side i changed timeout to 1700 and it didn't help
    it is almost half hour

    stor2rrd@pl002-mg-xorux1 ~ $ tail 20 logs/error.log-10.9.212.138
    tail: cannot open ‘20’ for reading: No such file or directory
    ==> logs/error.log-10.9.212.138 <==
    /stor2rrd/bin/lanperf.pl:61 : Interrupted system call
    Thu Oct 17 12:14:03 2019: Data collection via snmp timed out after 900 seconds : /stor2rrd/bin/lanperf.pl:61 : Interrupted system call
    Thu Oct 17 12:29:03 2019: Data collection via snmp timed out after 1140 seconds : /stor2rrd/bin/lanperf.pl:61 : Interrupted system call
    Thu Oct 17 12:39:03 2019: Data collection via snmp timed out after 1140 seconds : /stor2rrd/bin/lanperf.pl:61 : Interrupted system call
    Thu Oct 17 12:49:02 2019: Data collection via snmp timed out after 1140 seconds : /stor2rrd/bin/lanperf.pl:61 : Interrupted system call
    Thu Oct 17 12:59:02 2019: Data collection via snmp timed out after 1140 seconds : /stor2rrd/bin/lanperf.pl:61 : Interrupted system call
    Thu Oct 17 13:19:03 2019: Data collection via snmp timed out after 1700 seconds : /stor2rrd/bin/lanperf.pl:61 : Interrupted system call

  • i did config_check.sh

    stor2rrd@pl002-mg-xorux1 ~ $ ./bin/config_check.sh 10.9.212.138












    =========================
    SWITCH: 10.9.212.138
    =========================
      UDP connection to "10.9.212.138" on port "161" is ok

    san_verify.pl:
    Thu Oct 17 13:27:04 2019: Got Timeout querying 10.9.212.138:161 with public for sysName. /stor2rrd/bin/SNMP_lib.pm:739 :
    snmpwalk -v 2c -c public 10.9.212.138 1.3.6.1.2.1.1.5
    SNMP version  : 2c (default)
    Port          : 161 (default)
    Timeout       : 5 seconds
    Community     : public
    STATE         : NOT CONNECTED!
      connection failed!!
      Check network connectivity and user access


  • my earlier output didn't work because it try snmp 2c   from UI i configured snmp3
  • Karel,

    =========================
    SWITCH: 10.37.255.xx
    =========================
      UDP connection to "10.37.255.xx" on port "161" is ok

    san_verify.pl:
    snmpwalk -v 2c -c VDA 10.37.255.xx 1.3.6.1.2.1.1.5
    SNMP version  : 2c (default)
    Port          : 161 (default)
    Timeout       : 5 seconds
    Community     : VDA
    Switch name   : myNameSW
    STATE         : CONNECTED!
      connection ok

  • tomlee
    edited October 2019
    Karel, Max

    if my comments confuse you, please let me know - i just want to help because i have the same problem.

    @Karel
    i may setup webex and try do something on my server

    i tried snmpwalk directly and it works fine 
    also i metered time for snmp query 1.3.6.1.2.1  it takes over 6 minutes

    time /usr/bin/snmpwalk -v3 -u prime -l authPriv -A "aaa" -X "xxx" -a SHA -x AES 10.9.212.134 1.3.6.1.2.1
    >>cut output
    real    6m24.800s
    user    0m3.409s
    sys     0m2.450s

    stor2rrd@pl002-mg-xorux1 ~ $ /usr/bin/snmpwalk -v3 -u prime -l authPriv -A "aaa" -X "xxx" -a SHA -x AES 10.9.212.134 1.3.6.1.2.1.1.5
    SNMPv2-MIB::sysName.0 = STRING: PLOLB-n7k-esrvc1
    stor2rrd@pl002-mg-xorux1 ~ $ /usr/bin/snmpwalk -v3 -u prime -l authPriv -A "aaa" -X "xxx" -a SHA -x AES 10.9.212.134 1.3.6.1.2.1.1
    SNMPv2-MIB::sysDescr.0 = STRING: Cisco NX-OS(tm) n7700, Software (n7700-s2-dk9), Version 7.3(2)D1(1), RELEASE SOFTWARE Copyright (c) 2002-2013, 2015 by Cisco Systems, Inc. Compiled 6/30/2017 23:00:00
    SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.12.3.1.3.1354
    DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (3724592940) 431 days, 2:05:29.40
    SNMPv2-MIB::sysContact.0 = STRING: Email: @eservice.com.pl
    SNMPv2-MIB::sysName.0 = STRING: PLOLB-n7k-esrvc1
    SNMPv2-MIB::sysLocation.0 = STRING: Olbrachta, szafa A10
    SNMPv2-MIB::sysServices.0 = INTEGER: 70
    SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
    SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
    SNMPv2-MIB::sysORID.2 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
    SNMPv2-MIB::sysORID.3 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
    SNMPv2-MIB::sysORID.4 = OID: SNMP-MPD-MIB::snmpMPDCompliance
    SNMPv2-MIB::sysORID.5 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
    SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for SNMPv2 entities
    SNMPv2-MIB::sysORDescr.2 = STRING: View-based Access Control Model for SNMP.
    SNMPv2-MIB::sysORDescr.3 = STRING: The SNMP Management Architecture MIB.
    SNMPv2-MIB::sysORDescr.4 = STRING: The MIB for Message Processing and Dispatching.
    SNMPv2-MIB::sysORDescr.5 = STRING: The management information definitions for the SNMP User-based Security Model.
    SNMPv2-MIB::sysORUpTime.1 = Timeticks: (3) 0:00:00.03
    SNMPv2-MIB::sysORUpTime.2 = Timeticks: (3) 0:00:00.03
    SNMPv2-MIB::sysORUpTime.3 = Timeticks: (3) 0:00:00.03
    SNMPv2-MIB::sysORUpTime.4 = Timeticks: (3) 0:00:00.03
    SNMPv2-MIB::sysORUpTime.5 = Timeticks: (3) 0:00:00.03

  • tomlee, 
    your comments are not confusing, but I think you have a different problem. Have you tried configuring v2c snmp version?
  • Hi guys,

    it looks like these are 2 different issues.
    However the maximum timeout limit is 900 (15minutes) for variable LAN_DATA_COLLECTION_TIMEOUT. So do not use greater value then 900.

    1. Maks
    Connection test passes fine, but data collection from your switch takes longer then 15 minutes. This should not happen. Maybe there is an issue with firewall.

    @Pavel Can you pls follow it up? Thanks.

    2. tomlee
    We have found a bug when is snmpv3 used. We are working on a fix. We will let you know.

  • Hi, 
    thanks.
    i can't use snmp2c because of security policy

    i suspect that my output is also huge nexus7000 with over dozen extenders

  • Mark,

    are you sure that you have properly allowed network connection to the switch?
    we have already seen that one snmp query goes through the firewals but when there is many of them they are blocked.

    can you install tcpdump and check what happens on the network, replace XX in below example by your one
    tcpdump -nl   -i enXX  'host IP_XXXX and udp port 161'  | tee x.log

    send x.log output after 10 minutes of running it
    support at stor2rrd.com


  • Pavel,
    There are no firewalls in this network segment.
    In version v6. 00 this worked. I assume that the problem is not in the switches.

  • ok, we see a problem in the code, working on a fix right now, we will let you know soon.
  • Hi,

    this issue should be fixed in the following version.

    https://www.stor2rrd.com/download/stor2rrd-2.60-6.tar

    Can you upgrade your stor2rrd instances?

    Upgrade is fast and easy: https://www.stor2rrd.com/upgrade.htm

    Pls let us know, thanks.

  • Hi, Karel

    I have latest version Stor2rrd

    STOR2RRD version2.60

  • Hi Maks,

    yes i know, but in version 2.60 is a bug related to this issue.
    Pls upgrade to the newer version 2.60-6. It should be fixed there.

    Let us know, thanks.
  • Hi, Karel 

    Where can I download release 2.60-6 ?
  • Hi
    I confirm - after install patch switches appeared in menu.

    PS: I have problem with LAN SWITCH  |  Nexus  |  corpo  |  FEX Port
    There are no picture / graph. Cursor is working all the time but if i click details i can see graph.
    I tested different web bowsers - the same.
    Should I create separate new discussion?

    Regards
Sign In or Register to comment.