- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 10-13-2020 09:58 PM
Issue: The "discovery_source" for OS Package CI is set to "empty" by Discovery due to which CMDB Health job marks the CI that has same OS package name as "Duplicate"
Steps to reproduce:
1. Trigger a Solaris CI discovery.
2. Navigate to cmdb_ci_os_packages_list.do and filter for the CI for which discovery was executed.
- "Discovery Source" field for the CI's populated will be "empty".
3. The OS package name on one Solaris CI can be same as the one on another Solaris CI.
4. The CMDB Health job ignores the records that have discovery_source. Due to "discovery_source" being "empty" when CMDB Health job runs it captures them as duplicates. (which in turn is not a duplicate)
Resolution:
Navigate to Sensors >> Solaris - OS Packages
Replace the processJSON function with the below script,
processJSON: function() {
if (JSUtil.nil(related_data.packages))
return;
var sourceName = gs.getProperty('glide.discovery.source_name', "ServiceNow");
related_data.packages.forEach(function(obj) {
obj.discovery_source = sourceName;
});
this.addToRelatedList('cmdb_ci_os_packages', related_data.packages, 'cmdb_ci', 'name');
this.clearPatches();
},
- 350 Views