Windows CPU Usage

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
autys
Posts: 14
Joined: Thu Nov 02, 2006 11:41 am

Windows CPU Usage

Post by autys »

Hi all,

Another N00b question. I'm trying to gather CPU usage form a Windows 2003 server bix with no luck.

I have other data working OK. (Logged in Users, Traffic) But I just get no values for CPU.

I have the following Data Sources configured:
ucd/net - nice
ucd/net - System
ucd/net - User

Graph is configured as ucd/net Cpu usage template. the graph shows OK but all values are 0.00

Any ideas?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

ucd/net are usually only used on Unix servers.

For your Windows 2003 server, use the "SNMP - Get Processor Information" and "SNMP - Get Mounted Partitions" data queries instead.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
autys
Posts: 14
Joined: Thu Nov 02, 2006 11:41 am

Post by autys »

Thanks, but I don't have those 2 as options on the Data templates.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

These are data queries; you have to go to devices, choose the device you want to graph, and then choose "create graphs for this host".

You may have to reload the data queries (hit the green circles).
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see my link on "NaN Debugging" in my signature
Reinhard
autys
Posts: 14
Joined: Thu Nov 02, 2006 11:41 am

Post by autys »

The plot thickens..

Unger the Get Cpu Information query I get 0 rows returned..

Query debug information is:
+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/scripts/ss_host_cpu.php 192.168.1.2 5 1:161:500:public:::MD5::[None] index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_cpu.php 192.168.1.2 5 1:161:500:public:::MD5::[None] query index'
+ Found data query XML file at '/var/www/html/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_cpu.xml'
I get the same for Disk partition as well
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

What Cacti version are you using ?

Also, which Windows version is running on the target host ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
autys
Posts: 14
Joined: Thu Nov 02, 2006 11:41 am

Post by autys »

The target is WIndows 2003 server.

Cacti is 8.6h
autys
Posts: 14
Joined: Thu Nov 02, 2006 11:41 am

Post by autys »

Can anyone help?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

BSOD2600's Windows Install FAQ wrote: Q: Why doesn't Windows return Disk or CPU usage via SNMP?
A: Open up the SNMP Service and click on the Agent tab. Make sure all the service checkboxes are marked. Restart the SNMP service.
autys
Posts: 14
Joined: Thu Nov 02, 2006 11:41 am

Post by autys »

Still not working :(

Both the "SNMP - Get Mounted Partitions" and "SNMP - Get Processor Information" query's return 0 rows.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you remove and reinstall the SNMP service ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
autys
Posts: 14
Joined: Thu Nov 02, 2006 11:41 am

Post by autys »

GRRRRRRRRRRRR

I've tried that and get the same thing..

I've also tried monitoring a 2nd Windows 2003 server with the same result. I can get some information, but not Disks and CPU, both scripts keep returning 0 rows.
autys
Posts: 14
Joined: Thu Nov 02, 2006 11:41 am

Post by autys »

Now I'm confused..

I've tried a 2nd Cacti install on a different machine (a VMware server). This one appears to pick up the CPU and Processor information OK.

Both are running on Fedora Core, Both are fully patched, both have the same configuration.. One works, the other doesn't

:( :(

The only differenc eis that the working one is FC6, the non working is FC5.

FC6 reports Cacti 0.8.6i
FC5 reports Cacti 0.8.6h

I'm going to try to update the FC5 to i (even though Yum can't see the i version)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests