NetXMS Support Forum

English Support => General Support => Topic started by: pzandvoort on December 18, 2010, 07:10:11 AM

Title: Agent PDH.CounterValue
Post by: pzandvoort on December 18, 2010, 07:10:11 AM
Hello,
I'm trying to pull the total number of hits on a web site through an agent. I think I've tried just about every variation, but I just can't make it work! This seems so simple....

Shouldn't it just be:
1) Add a new DCI to my server
2) Pick "Agent" as the source
3) Select "PDH.CounterValue(*)" as the parameter
4) Enter "\Web Service(<instancename>)\Total Method Requests" as the parameter
???

I feel like I'm missing something really simple....
Help? Please?
Thanks!

Peter
Title: Re: Agent PDH.CounterValue
Post by: Victor Kirhenshtein on December 20, 2010, 11:37:10 AM
Hi!

Counter name must be enclosed in quotes, like this:

PDH.CounterValue("\Web Service(Microsoft Dynamics CRM)\Total Method Requests")

because counter name contains brackets, and without quotes agent cannot parse parameter correctly.

Best regards,
Victor