Error getting information from SAM Advanced Metering
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2025 09:59 AM
Hi Everyone,
I need your help, please. I need to obtain the information from Sam Metering Advanced. I am observing that this error is displayed in the payload of the queue monitoring probe
\"installed_software_with_sam_metering\":{\"error_msg\":\"cmd_err: C:/ProgramData/ServiceNow/agent-client-collector/cache/acc-visibility-modules/bin/installed_software_with_sam_metering.rb:192:in `block in get_software_usage_metric': undefined method `start_with?' for nil (NoMethodError)\\n\\n if (!softwarePackage.start_with?('Hotfix') && softwarePackage.index(\\\"|\\\").nil?)\\n\\n ^^^^^^^^^^^^\\n\\tfrom C:/ProgramData/ServiceNow/agent-client-collector/cache/acc-visibility-modules/bin/installed_software_with_sam_metering.rb:181:in `each'\\n\\tfrom C:/ProgramData/ServiceNow/agent-client-collector/cache/acc-visibility-modules/bin/installed_software_with_sam_metering.rb:181:in `get_software_usage_metric'\\n\\tfrom C:/ProgramData/ServiceNow/agent-client-collector/cache/acc-visibility-modules/bin/installed_software_with_sam_metering.rb:290:in `<main>'\\n\",\"error_backtrace\":\"C:/ProgramData/ServiceNow/agent-client-collector/cache/acc-f-commons/bin/command_runner.rb:63:in `runCmd'\\nC:/ProgramData/ServiceNow/agent-client-collector/cache/acc-f-commons/bin/command_runner.rb:9:in `runModule'\\nC:/ProgramData/ServiceNow/agent-client-collector/cache/acc-f-commons/bin/endpoint_discovery.rb:199:in `block in <main>'\\nC:/ProgramData/ServiceNow/agent-client-collector/cache/acc-f-commons/bin/endpoint_discovery.rb:190:in `each'\\nC:/ProgramData/ServiceNow/agent-client-collector/cache/acc-f-commons/bin/endpoint_discovery.rb:190:in `<main>'\\n\",\"failed_cmd\":\"ruby C:\\\\ProgramData\\\\ServiceNow\\\\agent-client-collector\\\\cache\\\\acc-visibility-modules\\\\bin\\\\installed_software_with_sam_metering.rb --parent_cache_dir C:/ProgramData/ServiceNow/agent-client-collector/cache --log_level FATAL\"}}\r\n"
Please can you help me correct this error?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2025 10:15 AM
you should raise a support case to get this issue troubleshooted and solved by the support team. Looks like some unexpected behavior when getting metering for hotfixes?
Best, Dennis
Should my response prove helpful, please consider marking it as the Accepted Solution/Helpful to assist closing this thread.