CPU Graph problem

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

Moderators: Developers, Moderators

Post Reply
karthick1978
Posts: 3
Joined: Wed Jun 13, 2007 6:49 am

CPU Graph problem

Post by karthick1978 »

Hi,

I'm not getting CPU utilization graph, rest of the graphs are working perfectly. I'm facing this problem only in new version 0.8.6j,where as in 0.8.6h there is no issue.Applied all patches,still not working, even i tried installing thrice .Same problem . If i monitor multi processor server in that CPU 1 ,CPU2,CPU3,CP4, some time i'm getting values for any one of the processor, after 1 or 2 cycles current value is showing 0 like broken sometime or no graph at all.
I'm monitoring nearly 60 servers ..am facing problem in all servers. When i debug
+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at 'C:/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'c:\php\php.exe -q C:\cacti\scripts\ss_host_cpu.php 172.16.2.25 197 2:161:500:public:::MD5::[None] index'
+ Executing script query 'c:\php\php.exe -q C:\cacti\scripts\ss_host_cpu.php 172.16.2.25 197 2:161:500:public:::MD5::[None] query index'
+ Found data query XML file at 'C:/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'C:/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'C:/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'C:/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'C:/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'C:/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at 'C:/cacti/resource/script_server/host_cpu.xml'

SNMP services stopped and started...No use
Cacti: 0.8.6j
PHP: 5.2.1
Os: Windows2000
RRD: 1.2.15
Note:
1) I have full permission to everyone
2) I followed installation "http://bsod2600.home.comcast.net/install_windows.html"

Regards,
Karthick.M
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Manually run net-snmp smpwalk against 172.16.2.25 197 for the cpu stats and see if it returns any data.
User avatar
bmarofsky
Posts: 49
Joined: Tue Aug 28, 2007 8:35 am
Location: Southington, CT

Post by bmarofsky »

I am having a similar issue and the results of snmpwalk are

snmpwalk: Timeout
Brian

Cacti Version 0.8.7g
Plugin Architecture 2.8
Poller Type Cactid v
Server Info Linux 2.6.9-89.29.1.plus.c4
Web Server Apache/2.0.63 (CentOS)
PHP Version 5.1.6
MySQL Version 5.0.82sp1
RRDTool Version 1.2.23
SNMP Version 5.1.2
Plugins:
Global Plugin Settings (settings - v0.7)
Cycle Graphs (Cycle Graphs - v0.7+)
Thresholds (thold - v0.4.2)
Create Aggregate Graphs (aggregate - v0.75)
Device Monitoring (monitor - v1.2)
Network Tools (tools - v0.3)
Update Checker (update - v0.4)
Host Info (hostinfo - v0.2)
Error Images (errorimage - v0.1)
Cacti-ReportIt (reportit - v0.7.2)
WMI Query (wmi - v0.1)
Realtime Graph Viewer (realtime - v0.42)
Watermark (watermark - v0.1)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

bmarofsky: you have a completely different problem -- snmp isn't working.
User avatar
bmarofsky
Posts: 49
Joined: Tue Aug 28, 2007 8:35 am
Location: Southington, CT

Post by bmarofsky »

I am still searching thru the forums for answers. I am able to graph memory usage and traffic but not CPU.
Brian

Cacti Version 0.8.7g
Plugin Architecture 2.8
Poller Type Cactid v
Server Info Linux 2.6.9-89.29.1.plus.c4
Web Server Apache/2.0.63 (CentOS)
PHP Version 5.1.6
MySQL Version 5.0.82sp1
RRDTool Version 1.2.23
SNMP Version 5.1.2
Plugins:
Global Plugin Settings (settings - v0.7)
Cycle Graphs (Cycle Graphs - v0.7+)
Thresholds (thold - v0.4.2)
Create Aggregate Graphs (aggregate - v0.75)
Device Monitoring (monitor - v1.2)
Network Tools (tools - v0.3)
Update Checker (update - v0.4)
Host Info (hostinfo - v0.2)
Error Images (errorimage - v0.1)
Cacti-ReportIt (reportit - v0.7.2)
WMI Query (wmi - v0.1)
Realtime Graph Viewer (realtime - v0.42)
Watermark (watermark - v0.1)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

What command did you run to get the snmp timeout, yet other things still graph?

Same as karthick1978, post a verbose query of the host cpu query.
uidzer0
Posts: 6
Joined: Fri Sep 21, 2007 11:42 am
Location: Washington D.C.

Post by uidzer0 »

I am actually also having this same problem when trying to use the processor information data query. Here is my information:

OS: Redhat WS3
Cacti: 0.8.6j (fully patched)
php: 5.2.4
rrdtool: 1.2.23
net-snmp: 5.0.9

Data Query Debug Information

+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/path/to/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/path/to/php/bin/php -q /path/to/cacti/scripts/ss_host_cpu.php server24 15 2:161:500:COMMUNITY:::MD5::[None] index'
+ Executing script query '/path/to/php/bin/php -q /path/to/cacti/scripts/ss_host_cpu.php server24 15 2:161:500:COMMUNITY:::MD5::[None] query index'
+ Found data query XML file at '/path/to/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/path/to/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/path/to/cacti/resource/script_server/host_cpu.xml'

host_cpu.xml calls ss_host_cpu.php and looking in there, I see the following:

$oids = array(
"index" => ".1.3.6.1.2.1.25.3.3.1",
"usage" => ".1.3.6.1.2.1.25.3.3.1"
);

Output from snmpwalk command based on those:

[root@cactiserver]# snmpwalk -v 2c -c COMMUNITY server24 .1.3.6.1.2.1.25.3.3.1
HOST-RESOURCES-MIB::hrProcessorFrwID.769 = OID: SNMPv2-SMI::zeroDotZero

UPDATE:

I decided to try a newer version of net-snmp (5.2.4) and I got the same output.
Last edited by uidzer0 on Fri Sep 21, 2007 2:13 pm, edited 1 time in total.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

uidzer0: you having problems against a windows or linux host? If linux, post in the linux forum. If windows, does that box respond to general snmp queries?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests