Is it possivel to monitor arcsocs process per arcgis server service?
I would like to view n arcsocs process per service like above where
but I just one arcsoc.exe process
My query is
{ "resource": "components", "having": [ { "resource": "labels", "where": "labels.name = 'MC'" } ], "join": [ { "resource": "metrics", "where": "metrics.r_id LIKE '%process_instances%'", "join": [ { "resource": "metrics_data" } ] } ] }
What is wrong in my indicator?
Hi Edna,
This can be accomplished by targeting the host component, joining all metrics that contain "process_instances:arcsoc.exe:", and then joining the metrics data. Here's my expression:
{
"resource": "components",
"where": "components.type = 'host' AND components.name = '<name>'",
"join": [
{
"resource": "metrics",
"where": "metrics.r_id LIKE '%process_instances:arcsoc.exe:%'",
"join": [
{
"resource": "metrics_data"
}
]
}
]
}
Then, configure your chart like so:
And the result will be a chart that shows number of arcsox.exe process per service over time.
I hope this helps. Let me know if you have further questions.
Josh
Hi @GeoJosh ,
Thanks for your help
I tried your setup, but now i do not have any record.
Is there any configuration or verification that we can do, because with this configuration it does not return any records.
Edna
Hi Edna,
It would be helpful to know which part of the query is causing the issue.
Hi @GeoJosh ,
Removing the join, yes, I have the host line
If I keep the join only withs metrics with name like arcsoc.exe, I have 4 metrics
Navigating on host component, I have only 4 arcsoc pattern to arcsoc,exe
Is it something wrong in that part?
Edna
@EdnaKanazawa I believe this might be related to windows service ArcGIS Monitor Server (or agent) user permissions. To parse process commend line, this use needs to be part of admin group and your original expression should work. @GeoJosh
Hi @AndrewSakowicz ,
I added the user that runs the arcgis monitor server service in the administrators group and restart the service, but it didn't happen as expected. I need to unregister e register the host again?
I found that in https://doc.arcgis.com/en/monitor/latest/install/windows/set-up-and-manage-an-arcgis-monitor-account... that "The ArcGIS Monitor account does not need to be in the Windows Administrators group."
Edna
Did you register this host using inherit credentials or provided user name/password? Whatever method you used, this user needs to be a member of admin group machine. Re doc, we'll update documentation to clarify that in order to see process command line, a user needs to be member of admin group https://learn.microsoft.com/en-us/powershell/scripting/samples/decode-powershell-command-from-a-runn...