CPU Usage on Windows Servers

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
robgolding63
Posts: 18
Joined: Sat Apr 05, 2008 8:58 am

CPU Usage on Windows Servers

Post by robgolding63 »

Hi,
I am trying to graph CPU usage on a couple of my Windows Servers, but can't seem to get any data into the graphs.

Running this command:

Code: Select all

snmpwalk -v1 -c public apollo .1.3.6.1.2.1.25.3.3.1
Returns:

Code: Select all

HOST-RESOURCES-MIB::hrProcessorFrwID.1 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorLoad.1 = INTEGER: 1
So I know the host is returning the data properly (note there are 2 rows returned). But in Cacti, the Data Query for "SNMP - Get Processor Information" shows Success [1 item, 1 row]. This 1 row is just the ID of the CPU - which is 0. I can't get the load to be returned.

I've tried just making a graph for ucd/net - CPU Usage, but I get all zero's in the graph (no nans though).

This exact same thing is happening with both my Windows Servers. I have ticked all the boxes in the Agent tab in SNMP service, restarted the service etc. I can get traffic information from these servers, just no CPU Usage :(.

For information the Cacti server is an Ubuntu 7.10 server.

Anyone have any ideas?

Thanks a lot,

Rob
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: CPU Usage on Windows Servers

Post by BSOD2600 »

robgolding63 wrote:But in Cacti, the Data Query for "SNMP - Get Processor Information" shows Success [1 item, 1 row]. This 1 row is just the ID of the CPU - which is 0. I can't get the load to be returned.
Paste the verbose query output.
robgolding63 wrote:I've tried just making a graph for ucd/net - CPU Usage, but I get all zero's in the graph (no nans though).
Unless your windows box is running ucd/net snmp, you shouldn't use that template.
robgolding63
Posts: 18
Joined: Sat Apr 05, 2008 8:58 am

Re: CPU Usage on Windows Servers

Post by robgolding63 »

BSOD2600 wrote: Paste the verbose query output.
Here it is:

Code: Select all

+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php5-cgi -q /var/www/html/cacti/scripts/ss_host_cpu.php apollo 4 1:161:500:opmanager:admin::MD5::DES: index'
+ Executing script query '/usr/bin/php5-cgi -q /var/www/html/cacti/scripts/ss_host_cpu.php apollo 4 1:161:500:opmanager:admin::MD5::DES: query index'
+ Found item [hrProcessorFrwID='0'] index: 0
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/host_cpu.xml'
All it's getting is the hrProcessorFrwID. I'm updating the server installation now, but I doubt that will help at all!

Thanks for the reply,

Rob
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You wont see the hrProcessorLoad output in the verbose query since it's an 'output' field in the xml file.

Cacti correctly identified the index for the CPU, so you've go some other issue. read http://docs.cacti.net/node/283
robgolding63
Posts: 18
Joined: Sat Apr 05, 2008 8:58 am

Post by robgolding63 »

Which graph template should I be using for a Windows Server to monitor CPU usage? Everything else is working perfectly - just not this.

Should it be the "Host MIB - CPU Utilization" template, because that one doesn't show up in the list on my Windows Servers. I've attached an image showing the list below.

Thanks,

Rob
Attachments
cacti.png
cacti.png (52.2 KiB) Viewed 9199 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

robgolding63 wrote:Should it be the "Host MIB - CPU Utilization" template, because that one doesn't show up in the list on my Windows Servers.
Yes, it should be that one.

Which host template did you select? The Windows one should have that associated data source.
robgolding63
Posts: 18
Joined: Sat Apr 05, 2008 8:58 am

Post by robgolding63 »

Yeah, I'm using the Windows 2000/XP Host template. I've attached a screenshot of the host template, and as you can see it doesn't have the Host MIB - CPU Utilization field in the Associated Graph Templates section.

Thanks for the replies,

Rob
Attachments
cacti.png
cacti.png (19.53 KiB) Viewed 9145 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Go ahead and just use the 'SNMP - Get Processor Information' one, it should work fine.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests