NetXMS Support Forum

English Support => General Support => Topic started by: sodalist on June 29, 2009, 02:56:00 PM

Title: WIN Performance Counter with "#" in path, ...
Post by: sodalist on June 29, 2009, 02:56:00 PM
Hello,

Is there any option to collect windows performance counters with
"#" in path name. I tried enclosing # in single/double quotes,
prefixing with "/", "\", defining path in agent config *WinPerf section
vs using PDH parameter.

In trace mode it looks like parsing stops at "#" character.

Agent used was: 0.2.26.1 (0.2.26).

Thank you,

Ales
Title: Re: WIN Performance Counter with "#" in path, ...
Post by: Victor Kirhenshtein on June 29, 2009, 04:28:38 PM
Hi!

It's a bug. Fortunately it's easy to fix, I'll do it till release.

Best regards,
Victor
Title: Re: WIN Performance Counter with "#" in path, ...
Post by: sodalist on July 02, 2009, 04:37:46 AM
Thank you,

BTW I am still searching for pay pal donations button :)
For those of us that appreciate hard work but can not
afford professional support.

Ales
Title: Re: WIN Performance Counter with "#" in path, ...
Post by: Victor Kirhenshtein on July 06, 2009, 10:41:10 AM
Quote from: sodalist on July 02, 2009, 04:37:46 AM
BTW I am still searching for pay pal donations button :)

We have added such button :) May be it will have some use :)

Best regards,
Victor
Title: Re: WIN Performance Counter with "#" in path, ...
Post by: sodalist on July 09, 2009, 03:23:33 PM
Hello,

I tested the button. You can provide feedback by adding little timeout
to ServiceCheck.Custom(<insert arguments here>) as additional parameter
so that check would give back value when TCP port is not reachable :)

And one more suggestion if I can :) (pushing my luck) evaluate feature
requests, create table put value preset pay pall button in each row in that
table.

thank you,

Ales
Title: Re: WIN Performance Counter with "#" in path, ...
Post by: Victor Kirhenshtein on July 14, 2009, 11:41:57 PM
Hi!

Thank you! I'll add timeout option, but not in 0.2.27 - it's already prepared for release.

Best regards,
Victor
Title: Re: WIN Performance Counter with "#" in path, ...
Post by: Alex Kirhenshtein on October 30, 2009, 04:16:26 AM
Quote from: sodalist on July 09, 2009, 03:23:33 PM
I tested the button. You can provide feedback by adding little timeout
to ServiceCheck.Custom(<insert arguments here>) as additional parameter
so that check would give back value when TCP port is not reachable :)

Hi.

I've just submited required changes, they will be pushed into upcoming release (will be packed tomorrow morning)

Default timeout is set to 30 seconds, but you can change it using "Timeout" parameter (in milliseconds) in "*portcheck" section.

Sample nxagentd.conf:
MasterServers = localhost
LogFile = /tmp/nx/agent.log
SubAgent = /tmp/nx/lib/libnsm_portCheck.so

*Portcheck
Timeout = 5000 # 5 seconds.
Title: Re: WIN Performance Counter with "#" in path, ...
Post by: Victor Kirhenshtein on November 01, 2009, 09:12:58 PM
Also, it is now possible to specify timeout (in milliseconds) as last argument in all ServiceCheck.xxx parameters. Timeout given directly in parameter will override default timeout set by Timeout in configuration file.

Best regards,
Victor