[Check_mk (english)] cisco_vss bug and error

Andrea Gabellini - SC andrea.gabellini.sc at telecomitalia.sm
Sat Feb 28 14:37:39 CET 2015


Hi,

I'm using OMD with check_mk 1.2.4p5.

Few days ago I installed a pair of cisco 6500 in VSS configuration. I
back ported  the new check cisco_vss from the GIT repository.

The snmp_scan_function doesn't detect the switch. The SNMP result for
oid .1.3.6.1.2.1.1.1.0 is:

SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, s72033_rp Software
(s72033_rp-ADVENTERPRISEK9-M), Version 15.1(2)SY4a, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Mon 22-Dec-14 15:05 by prod_r+

I use a sup-720-10G, so is enough to add the string "s72033_rp" to the
snmp_scan_function.

The second problem I have is the following error. I'm not a real python
programmer so I can't get a solution :-(

check_mk --debug --checks cisco_vss  -nv xxxx
Check_mk version 1.2.4p5
   Running snmpbulkwalk -v2c -c 'xxxxxxxxxx' -m '' -M '' -Cc -OQ -OU -On
-Ot 192.168.149.83 .1.3.6.1.4.1.9.9.388.1.2.2.1.1
   Running snmpbulkwalk -v2c -c 'xxxxxxxxxx' -m '' -M '' -Cc -OQ -OU -On
-Ot 192.168.149.83 .1.3.6.1.4.1.9.9.388.1.2.2.1.2
   Running snmpbulkwalk -v2c -c 'xxxxxxxxxx' -m '' -M '' -Cc -OQ -OU -On
-Ot 192.168.149.83 .1.3.6.1.4.1.9.9.388.1.3.1.1.2
   Running snmpbulkwalk -v2c -c 'xxxxxxxxxx' -m '' -M '' -Cc -OQ -OU -On
-Ot 192.168.149.83 .1.3.6.1.4.1.9.9.388.1.3.1.1.3
   Running snmpbulkwalk -v2c -c 'xxxxxxxxxx' -m '' -M '' -Cc -OQ -OU -On
-Ot 192.168.149.83 .1.3.6.1.4.1.9.9.388.1.3.1.1.5
   Running snmpbulkwalk -v2c -c 'xxxxxxxxxx' -m '' -M '' -Cc -OQ -OU -On
-Ot 192.168.149.83 .1.3.6.1.4.1.9.9.388.1.3.1.1.6
Traceback (most recent call last):
  File "/omd/sites/nagtism/share/check_mk/modules/check_mk.py", line
5964, in <module>
    do_check(hostname, ipaddress, check_types)
  File "/omd/sites/nagtism/share/check_mk/modules/check_mk_base.py",
line 912, in do_check
    agent_version, num_success, error_sections, problems =
do_all_checks_on_host(hostname, ipaddress, only_check_types)
  File "/omd/sites/nagtism/share/check_mk/modules/check_mk_base.py",
line 1143, in do_all_checks_on_host
    submit_check_result(hostname, description, result, aggrname)
  File "/omd/sites/nagtism/share/check_mk/modules/check_mk_base.py",
line 1228, in submit_check_result
    if len(result) >= 3:
TypeError: object of type 'generator' has no len()

Thanks,
Andrea



More information about the checkmk-en mailing list