Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add omi record count log statements #1561

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/code/plugins/omi_lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def lookup_class_name(class_name, mappings)
def transform(records, collected_counters, host, time)
if records.to_s == ''
# nil or empty, return empty record
@log.info "Received empty record set from OMI."
return {}
end

Expand All @@ -65,6 +66,7 @@ def transform(records, collected_counters, host, time)

data_items = []

@log.info "Received #{records_hash.size} records from OMI."
records_hash.each { |record|
# get the specific class mapping
specific_mapping = lookup_class_name(record["ClassName"], @counter_mapping)
Expand Down
Loading