I opened a ticket with Solarwinds. After check, they told me that "window Task Manager should provide a Command Line value for every process. but it missed for sqlservr.exe. it returns with null value. "
the Appinsight for SQL Application does indeed rely on the command line value for each process in order to ensure that it is monitoring the correct process on systems with multiple SQL Server instances. For example, if you have a system with 3 SQL Server instances:
-SQL Server
-SQL Server\Instance1
-SQL Server\Instance2
There will be 3 processes called SQLServr.exe.
In order to ensure that we are monitoring the right one for each instance, we use the "Command Line" value in the WMI Class. Example queries used:
-SQL Server:
select ProcessId,Name,PageFileUsage from Win32_Process where ((Name = 'sqlservr.exe' AND CommandLine LIKE '%-sMSSQLSERVER%'))
-SQL Server\Instance1:
select ProcessId,Name,PageFileUsage from Win32_Process where ((Name = 'sqlservr.exe' AND CommandLine LIKE '%-sMSSQLSERVER\Instance1%'))
-SQL Server\Instance2:
select ProcessId,Name,PageFileUsage from Win32_Process where ((Name = 'sqlservr.exe' AND CommandLine LIKE '%-sMSSQLSERVER\Instance2%'))
Can anyone tell me how to configure the sqlservr.exe so the command line can be populated right value? I attached my task manager for detail.
Really appreciate your help.