System.CPU.Usage(*) argument syntax
-
I am trying to get a reading of CPU utilization on my windows xp host, but i do not know the argument to use. I have a dual core Intel processor. The function System.CPU.Count reports 2 processors. I would like to know what argument i have to use to create a graph, or any value if i use this function.
The Disk.FreePerc(C:) argument works fine, wich means my agent configuration works fine.Regards Jan
-
Hello.
"System.CPU.Usage" - usage for all processors
"System.CPU.Usage(X)" - usage for cpu number X; index is zero-based. So, "System.CPU.Usage(1)" should give you cpu utilization for second core of your processor.NB! this DCI is for last minute, you can also use System.CPU.Usage5 and System.CPU.Usage15 for last 5 and 15 minutes data respectively.
wbr, alex.
-
The thing is, if i use snmputilg (from microsoft to walk the OID tree) i get a response on instance 5 and 6 (.1.3.6.1.2.1.25.3.3.1.2.5) and (.1.3.6.1.2.1.25.3.3.1.2.6)
But if i try System.CPU.Usage(5) or System.CPU.Usage(6) The Get function returns "Cannot get parameter: Requested datacollection item is not supported by agent"
If i try 0 or 1 i get "Cannot get parameter: Communication failure". The other functions for 5 and 15 minutes give similar results -
Does it work without parameters? (you can try it using "nxget" utility - "nxget NETXMS_AGENT_IP System.CPU.Usage")
Can you please start agent in debug mode ("nxagentd -D"), do a "System.CPU.Usage(0)" request and send me log file?
Also, can you check (in Settings -> Control Panel -> Administrative Tools -> Perfomance) that counters "\Processor(X)\% Processor Time" are valid?
-
Hello!
Ensure that winperf subagent is loading. You should have line in your config like this:
SubAgent = winperf.nsm
You can check list of currently loaded subagents by selecting node object in console, then Tools->Info->Agent->Subagent List.
Best regards,
Victor -
It took some time and figuring.
Where would i send te logs to?
I'll leave it om my site, http://www.vangolen.net/netXMS-logs.rarIt is five files:
nxagentd.conf (my config file)
nxagentd-1.log (first log)
nxagentd-2.log (second log)
nxagentd-3.log (third log)
nxget-on-linux-server.log (goes with the third log)i had to find out if i had the syntax correct hence the disksize in the nxget log on the server.
Regards JanPS. I like the concept and the layout of NetXMS very much keep up the good work.
-
You are using localized version of windows and PDH counters are localized too - but we have english names hardcoded.
It will be fixed in 0.2.18.---
[22-jun-2007 00:53:03] CheckCounter: PDH Error C0000BB8 in call to PdhAddCounter (Het opgegeven object is niet op het systeem gevonden.)
---
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login