Null/blank sysName value causes null/blank node label

Description

When the snmp node name returns an empty value, the same name (null/empty/space?) is used as the initial node name. I can't see that on the full node list, although I think its on there. If I know the IP address I can do a search for it I can get to the node page and rename it from there.

Now why my nodes are responding with a name that bad is a long story. Usually they are "boxes" (a fiber tranciever) not real servers, but have some SNMP. This specific instance is a server that came preconfigured as a package deal, and I have less control over that than I would like.

Would it be possible to check for non-whitespace characters before trying to use a SNMP hostname?

Environment

Operating System: Linux Platform: PC

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Seth Leger November 13, 2014 at 5:06 PM

I added checks to the capsd and provisioning code to check for this condition. All null, blank, or whitespace values for sysName will be ignored. Marking as fixed.

commit a24abfce021e0c031149553078b290119565b1f0

Kevin Burke June 5, 2008 at 1:39 PM

Hope this means more to you than me, this is the capsd for that IP:

2008-06-05 12:35:19,860 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: 10.0.0.6 unmanaged based on capsd config?: false
2008-06-05 12:35:19,860 DEBUG [Main] PollerConfigFactory: interfaceInPackage: Interface 10.0.0.6 passed filter for package passive-services?: true
2008-06-05 12:35:19,860 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: 10.0.0.6 to be polled based on poller config?: true
2008-06-05 12:35:19,860 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: 10.0.0.6 - no change in status
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SSH pkg=passive-services
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SSH pkg=passive-services
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SSH pkg=example1
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: interfaceInPackage: Interface 10.0.0.6 passed filter for package example1?: true
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SSH pkg=passive-services
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SSH pkg=passive-services
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SSH pkg=example1
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: interfaceInPackage: Interface 10.0.0.6 passed filter for package example1?: true
2008-06-05 12:35:19,861 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: 10.0.0.6/SSH to be polled based on poller config?: true
2008-06-05 12:35:19,861 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: 433/10.0.0.6/SSH status = A - no change in status
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=HTTP pkg=passive-services
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=HTTP pkg=passive-services
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=HTTP pkg=example1
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: interfaceInPackage: Interface 10.0.0.6 passed filter for package example1?: true
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=HTTP pkg=passive-services
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=HTTP pkg=passive-services
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=HTTP pkg=example1
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: interfaceInPackage: Interface 10.0.0.6 passed filter for package example1?: true
2008-06-05 12:35:19,861 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: 10.0.0.6/HTTP to be polled based on poller config?: true
2008-06-05 12:35:19,861 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: 433/10.0.0.6/HTTP status = A - no change in status
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=ICMP pkg=passive-services
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=ICMP pkg=passive-services
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=ICMP pkg=example1
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: interfaceInPackage: Interface 10.0.0.6 passed filter for package example1?: true
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=ICMP pkg=passive-services
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=ICMP pkg=passive-services
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=ICMP pkg=example1
2008-06-05 12:35:19,861 DEBUG [Main] PollerConfigFactory: interfaceInPackage: Interface 10.0.0.6 passed filter for package example1?: true
2008-06-05 12:35:19,861 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: 10.0.0.6/ICMP to be polled based on poller config?: true
2008-06-05 12:35:19,862 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: 433/10.0.0.6/ICMP status = A - no change in status
2008-06-05 12:35:19,862 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=StrafePing pkg=passive-services
2008-06-05 12:35:19,862 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=StrafePing pkg=passive-services
2008-06-05 12:35:19,862 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=StrafePing pkg=example1
2008-06-05 12:35:19,862 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=StrafePing pkg=strafer
2008-06-05 12:35:19,862 DEBUG [Main] PollerConfigFactory: interfaceInPackage: Interface 10.0.0.6 passed filter for package strafer?: true
2008-06-05 12:35:19,862 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=StrafePing pkg=passive-services
2008-06-05 12:35:19,862 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=StrafePing pkg=passive-services
2008-06-05 12:35:19,862 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=StrafePing pkg=example1
2008-06-05 12:35:19,862 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=StrafePing pkg=strafer
2008-06-05 12:35:19,862 DEBUG [Main] PollerConfigFactory: interfaceInPackage: Interface 10.0.0.6 passed filter for package strafer?: true
2008-06-05 12:35:19,862 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: 10.0.0.6/StrafePing to be polled based on poller config?: false
2008-06-05 12:35:19,863 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: update completed for node/interface/svc: 433/10.0.0.6/StrafePing status changed from N to N
2008-06-05 12:35:19,863 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SNMP pkg=passive-services
2008-06-05 12:35:19,863 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SNMP pkg=passive-services
2008-06-05 12:35:19,863 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SNMP pkg=example1
2008-06-05 12:35:19,863 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SNMP pkg=strafer
2008-06-05 12:35:19,863 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SNMP pkg=passive-services
2008-06-05 12:35:19,863 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SNMP pkg=passive-services
2008-06-05 12:35:19,863 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SNMP pkg=example1
2008-06-05 12:35:19,863 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=SNMP pkg=strafer
2008-06-05 12:35:19,863 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: 10.0.0.6/SNMP to be polled based on poller config?: false
2008-06-05 12:35:19,864 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: update completed for node/interface/svc: 433/10.0.0.6/SNMP status changed from N to N
2008-06-05 12:35:19,864 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=Telnet pkg=passive-services
2008-06-05 12:35:19,864 DEBUG [Main] PollerConfigFactory: serviceInPackageAndEnabled: svcName=Telnet pkg=passive-services
2008-06-05 12:35:19,864 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: 10.0.0.6/Telnet to be polled based on poller config?: false
2008-06-05 12:35:19,865 DEBUG [Main] JdbcCapsdDbSyncer: syncManagementState: update completed for node/interface/svc: 433/10.0.0.6/Telnet status changed from N to N

Kevin Burke June 5, 2008 at 12:37 PM

Here is a simple walk of the device. My capsd.log did not have much so I am going to bump the log level up to debug and delete that node.

[kburke@zulu daemon]$ snmpwalk -v 1 -On -c BTMA 10.0.0.6
.1.3.6.1.2.1.1.1.0 = STRING: Calix C7 (SNMP: V1, V2c, V3) SW REL 004.001.014
.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.6321
.1.3.6.1.2.1.1.3.0 = Timeticks: (88771904) 10 days, 6:35:19.04
.1.3.6.1.2.1.1.4.0 = STRING: Calix, Petaluma, CA, tel: (707) 766-3000
.1.3.6.1.2.1.1.5.0 = STRING:
.1.3.6.1.2.1.1.6.0 = STRING: N0-0
.1.3.6.1.2.1.1.7.0 = INTEGER: 14
.1.3.6.1.2.1.11.1.0 = Counter32: 1713783
.1.3.6.1.2.1.11.2.0 = Counter32: 1740328
.1.3.6.1.2.1.11.3.0 = Counter32: 0
.1.3.6.1.2.1.11.4.0 = Counter32: 37
.1.3.6.1.2.1.11.5.0 = Counter32: 0
.1.3.6.1.2.1.11.6.0 = Counter32: 0
.1.3.6.1.2.1.11.8.0 = Counter32: 0
.1.3.6.1.2.1.11.9.0 = Counter32: 0
.1.3.6.1.2.1.11.10.0 = Counter32: 0
.1.3.6.1.2.1.11.11.0 = Counter32: 0
.1.3.6.1.2.1.11.12.0 = Counter32: 0
.1.3.6.1.2.1.11.13.0 = Counter32: 5671882
.1.3.6.1.2.1.11.14.0 = Counter32: 0
.1.3.6.1.2.1.11.15.0 = Counter32: 1221810
.1.3.6.1.2.1.11.16.0 = Counter32: 491939
.1.3.6.1.2.1.11.17.0 = Counter32: 0
.1.3.6.1.2.1.11.18.0 = Counter32: 0
.1.3.6.1.2.1.11.19.0 = Counter32: 0
.1.3.6.1.2.1.11.20.0 = Counter32: 0
.1.3.6.1.2.1.11.21.0 = Counter32: 14694
.1.3.6.1.2.1.11.22.0 = Counter32: 0
.1.3.6.1.2.1.11.24.0 = Counter32: 0
.1.3.6.1.2.1.11.25.0 = Counter32: 0
.1.3.6.1.2.1.11.26.0 = Counter32: 0
.1.3.6.1.2.1.11.27.0 = Counter32: 0
.1.3.6.1.2.1.11.28.0 = Counter32: 1713770
.1.3.6.1.2.1.11.29.0 = Counter32: 26582
.1.3.6.1.2.1.11.30.0 = INTEGER: enabled(1)
.1.3.6.1.2.1.11.31.0 = Counter32: 0
.1.3.6.1.2.1.11.32.0 = Counter32: 0

DJ Gregor June 5, 2008 at 12:55 AM

Kevin, can you include an excerpt from capsd.log when OpenNMS discovers the offending device? An "snmpwalk" from the device would also be helpful to ensure we're recreating the right problem.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created June 4, 2008 at 1:32 PM
Updated November 26, 2014 at 3:57 PM
Resolved November 13, 2014 at 5:06 PM