[
https://issues.apache.org/jira/browse/NIFI-10305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17576758#comment-17576758
]
ASF subversion and git services commented on NIFI-10305:
--------------------------------------------------------
Commit 0fe4d1349074b2fcbffe8fe2765fbe78fabc65c9 in nifi's branch
refs/heads/main from Ferenc Erdei
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=0fe4d13490 ]
NIFI-10305 Fix network and cpu data in c2 heartbeat
Signed-off-by: Pierre Villard <[email protected]>
This closes #6263.
> Incorrect values in C2 Heartbeat for Network, and CPU data
> ----------------------------------------------------------
>
> Key: NIFI-10305
> URL: https://issues.apache.org/jira/browse/NIFI-10305
> Project: Apache NiFi
> Issue Type: Bug
> Components: C2, MiNiFi
> Environment: Windows 10
> Reporter: Ferenc Erdei
> Assignee: Ferenc Erdei
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Some of the agent information fields are incorrect on windows (checked on
> windows 10 / windows server 2019), these are for example the IP, HOST, DEVICE
> ID (these are empty) CPU usage (shows negative value) fields.
>
> The OperatingSystemMXBean.getSystemLoadAverage() returns negative value if
> the running OS does not support it. -> negative value is misleading so minifi
> shouldn't return anything in such cases.
>
> For the ip / host / deviceid info we selected the first item from
> NetworkInterface.getNetworkInterfaces() even if it the getInetAddresses()
> returns empty list. -> we should use the first networkInterface which has
> InetAddress.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)