16 Oct 2024 03:09 PM - last edited on 21 Oct 2024 08:45 AM by MaciejNeumann
After we do upgrade of oneagent update in Windows 2019 Server , Remote desktop connection to server is lost.
Oneagent is getting upgraded successfully. But it require a reboot to resolve the Remote desktop connection issue.
This issue happens only in Windows 2019. Windows 2016 all loooks good.
Solved! Go to Solution.
16 Oct 2024 03:24 PM
Hi,
From my own experience, this seems to be only affecting a specific Windows 2019 build, and happens only when Npcap is installed or upgraded.
The problem occurs because the Npcap driver shipped with the Oneagent installation has a bug which seems to cut all incoming and outgoing connections to the server. The workaround is either to disable Npcap installation or reboot.
You can try to reach out to Nmap (https://nmap.org/), and see if they have had any similar reports on your current build.
Best of luck!
16 Oct 2024 03:28 PM
Hi Jon - Have you raised ticket with Dynatrace why they are shipping Npcap driver shipped with the Oneagent installation has a bug?.
17 Oct 2024 01:11 PM
The ticket with Dynatrace was eventually closed, however here is the feedback:
"There is Windows 2019 server (1809) which known problem that installing npcap driver causes whole host network disruption. This problem was studied time ago by nmap company which releases npcap and the pointed out there is a bug inside windows kernel (especially 1809) then problem got redirected to Microsoft - now to my knowledge other versions of Windows are not affected. There is hotfix installed KB4571748but there may other factors that make problem is still present e.g. some WAN miport drivers are present"
18 Oct 2024 02:06 PM
Hi Jon
But npcap is installed as part of dynatrace oneagent installation not thru windows 2019 OS.
Npcap Oneagent is installed thru dynatrace oneagent installation
21 Oct 2024 08:50 AM
Indeed, to disable Npcap during Oneagent installation you will have to manually disable the feature from the Oneagent. Sometimes Dynatrace upgrades the Npcap version shipped with OA, which will trigger a Npcap installation and therefore the network disruption may happen to the 1809 servers.
21 Oct 2024 08:58 AM
Hi Jon
Thanks. Please let us know how to disable the Npcap version shipped with OA?
Should we use pcap_driver=winpcap
If we use pcap_driver = disable what is the impact of not having oneagent network monitoring module.
21 Oct 2024 09:27 AM - edited 21 Oct 2024 09:28 AM
I would not recommend to use winpcap as the support has been discontinued.
The impact by not having the npcap driver installed is that you will be missing out on the topology and networking features in Dynatrace, which for example is used in the Smartscape Topology.
Here are some options based on your strategy, not disabling:
Disabling Npcap:
17 Oct 2024 11:45 AM
Hello @sundarv1
You can refer to Dynatrace documentation regarding pcap driver, if pcap part of the issue.
You can stop OA service and adjust this configuration.
BR,
Peter
17 Oct 2024 02:57 PM
Hi Peter
When we do oneagent upgrade via dynatrace console, where do we specify the npcap parameter?. Could you please share?,
19 Oct 2024 03:11 PM - edited 19 Oct 2024 03:22 PM
Hello @sundarv1
It's not available through the installation UI, so you can do it through installation scripts or after deployment via oneagentctl.
.\oneagentctl.exe --set-PCAP_DRIVER=npcap
PFA attached URL : windows-custom-installation#packet_capture_driver for detailed info.
Tip:
Do it and keep us posted 😉
19 Oct 2024 03:21 PM
Hi Peter
What we are seeing npcap agent is installed for oneagent installation. we did oneagent update via UI and npcap oneagent is installed part of this installation.
Thanks
Sundar.v
Thanks
Sundar.v
19 Oct 2024 03:25 PM
Hi @sundarv1
Exactly, it's included in the installation process, once you install or update the OA.
19 Oct 2024 03:53 PM
If oneagent is installing npcap then what we need to do resolve the Remote desktop connecivity issue or host connecvity issue after agent upgraded successfully.
20 Oct 2024 04:14 AM
If oneagent is installing npcap then what we need to do resolve the Remote desktop connecivity issue or host connecvity issue after agent upgraded successfully.
19 Oct 2024 03:28 PM
If oneagent is installing npcap then what we need to do resolve the Remote desktop connecivity issue or host connecvity issue after agent upgraded successfully.
19 Oct 2024 03:17 PM
Hi @sundarv1
for OA auto-update command during the installation specify the attached command beside the installation script.
17 Oct 2024 11:55 AM
Hi @sundarv1
There is another solution to avoid such scenario in future:
Go to the target server > settings > process group monitoring > add process group > select the process group from the drop down menu which will be "Remote Desktop Connection" by default and select do not monitor to avoid the OA code modules injection.
So whenever update is triggered this "Remote Desktop Connection" won't be impacted at all.
BR,
Peter
17 Oct 2024 12:52 PM
Hi @sundarv1
You have a good option if these Win server 2019 are grouped under host group.
Infrastructure observability > Process and technologies > filter by "Remote Desktop Connection" > then Edit and add monitoring rule > do not monitor so these servers won't be affected.
KR,
Peter.
21 Oct 2024 05:30 AM
21 Oct 2024 05:35 AM - edited 21 Oct 2024 05:37 AM
Our oneagent versiion is 1.299 and Windows is 2019 and 1809. Wincap is not installed. only npcap is installed as part of oneagent installation.
21 Oct 2024 09:13 AM
Hello @sundarv1
Kindly find the attached URL to check the current configuration
21 Oct 2024 10:52 AM
Hello @sundarv1
Have you tried uninstalling any existing Pcap driver
PFA Dynatrace documentation to follow :
Troubleshooting URLs:
BR,
Peter
21 Oct 2024 01:25 PM
There is no wincap and npcap driver previously. it was installed when we install oneagent only.