NetXMS Support Forum

English Support => General Support => Topic started by: Sibiu on November 25, 2011, 11:15:18 PM

Title: Agent PDH.CounterValue
Post by: Sibiu on November 25, 2011, 11:15:18 PM
I am trying to get the value of a counter from a windows machine, but something is going wrong.

1) Add a new DCI to my server
2) Pick "Agent" as the source
3) Pick "PDH.CounterValue(*)" as the parameter
4) Enter PDH.CounterValue("\Postilion:PostView(Location:[GCSink])\Transactions per second") as the parameter

According to a previous comment as the parameter contains brackets then it must be in quotes, however it still does not seem to work.

What am I doing wrong?
Please help me


Paul
Title: Re: Agent PDH.CounterValue
Post by: Victor Kirhenshtein on November 28, 2011, 05:00:12 PM
Hi!

What do you get - error or incorrect value? Also, try to run agent in debug mode - it should log PDH error when server requests this parameter.

Best regards,
Victor
Title: Re: Agent PDH.CounterValue
Post by: Sibiu on November 28, 2011, 07:40:09 PM
Thanks for your answer, I must have been working too long or something as when I tried it again it works fine.

Thanks for your magic powers  :D