Problems with processor and mounted partitions information

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

Moderators: Developers, Moderators

Post Reply
Brainscanner
Posts: 24
Joined: Tue Oct 16, 2007 2:59 am

Problems with processor and mounted partitions information

Post by Brainscanner »

Hi everybody,

I've got a cacti installation running under Windows Server 2003 on IIS.

That installation used to work for a long time, but suddenly the system started to have gaps in the graphs for partition usage and processor information. These were about few hours to multiple day. It usually started to work again after a reboot or patient waiting.
To make this clear: I didn't change anything, neither on the querried machines nor on the cacti server in between these working/not_working-periods.

But some months ago it didn't recover and I now can't get any partition information from my windows machines. There are no linux machines with snmp enabled.

What always works and never stopped to do so are the network graphs.

I've tried most of the debugging steps mentioned on the cacti site, but haven't been successfull so far.
Filemon doesn't show any denied errors, so I guess the permission settings are correct.
I've just installed the spine addon, but that didn't change the situation.

Here's a debug output of one of the "mounted partition"-data query update:

Code: Select all

+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at 'E:/wwwroot/Php/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'c:\progra~1\php\php.exe -q E:\wwwroot\Php\cacti\scripts\ss_host_disk.php fileserver.brainscanner.dyndns.org 13 1:161:500:1:10:public:::MD5::DES: index'
+ Executing script query 'c:\progra~1\php\php.exe -q E:\wwwroot\Php\cacti\scripts\ss_host_disk.php fileserver.brainscanner.dyndns.org 13 1:161:500:1:10:public:::MD5::DES: query index'
+ Executing script query 'c:\progra~1\php\php.exe -q E:\wwwroot\Php\cacti\scripts\ss_host_disk.php fileserver.brainscanner.dyndns.org 13 1:161:500:1:10:public:::MD5::DES: query description'
+ Executing script query 'c:\progra~1\php\php.exe -q E:\wwwroot\Php\cacti\scripts\ss_host_disk.php fileserver.brainscanner.dyndns.org 13 1:161:500:1:10:public:::MD5::DES: query sau'
+ Found data query XML file at 'E:/wwwroot/Php/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'E:/wwwroot/Php/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'E:/wwwroot/Php/cacti/resource/script_server/host_disk.xml'
The windows boxes are configured as "Windows 2000/XP Host"s. The data query is "SNMP - Get Mounted Partitions".
The same problem goes for the processor information.

But, and that's most confusing in my opinion:
If I use a program like WSPingProPack to query the same snmp information (run from the cacti web server system) to query the same machines, I'm getting perfectly plausible values.

CPU Info (Dual Core):

Code: Select all

1.3.6.1.2.1.25.3.3.1.1.40.0
1.3.6.1.2.1.25.3.3.1.2.4	82	93
Partition Info:

Code: Select all

1.3.6.1.2.1.25.2.3.1.5.1	11490483	732380927	66631587	732380415	0	266201	131048
The paths I used for the query are copied from the corresponding cacti scripts (ss_host_disk.php and ss_host_cpu.php), so they are obviously correct and the queried machines seem to be setup correctly.

Anyone got an idea? I'm absolutely at my wits' end.
Attachments
Cacti.pdf
Technical support page from my cacti installation.
(38.81 KiB) Downloaded 123 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Generally, cacti doesn't like spaces in its path so installing PHP in the program files directory is bad and causes problems.

When you manually run the SS script from the commandline, does it work? Follow http://forums.cacti.net/viewtopic.php?t=7738

Could try increasing the snmp timeout to the device and decrease the max OIDs per request too.
Brainscanner
Posts: 24
Joined: Tue Oct 16, 2007 2:59 am

Post by Brainscanner »

Hi BSOD2600,

thanks for you help!

I'm using the German Windows installation. There the program files folder is called C:\Programme\. The wwwroot path doesn't contain spaces either.

I've tried one of the commands that causes problems. I'm just getting a line with "0". Is that good?

The SNMP timeout is already at 5000 ms because I'm also querying few machines over a wan connection.

Do you have any other ideas?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Brainscanner wrote:I've tried one of the commands that causes problems. I'm just getting a line with "0". Is that good?
Probably not, since that means no data :P. What query did you run? Try running the queries manually you see cacti executing -- either from the cacti.log or the poller cache.
Brainscanner wrote:The SNMP timeout is already at 5000 ms because I'm also querying few machines over a wan connection.
Could possibly need to increase it more. what is the average latency to the server? Does a manual snmpwalk of .1.3.6.1.2.1.25.2.3.1 return data?
Brainscanner
Posts: 24
Joined: Tue Oct 16, 2007 2:59 am

Post by Brainscanner »

BSOD2600 wrote:Probably not, since that means no data :P. What query did you run? Try running the queries manually you see cacti executing -- either from the cacti.log or the poller cache.
This one:

Code: Select all

E:\wwwroot\Php\cacti\scripts\ss_host_disk.php ss_host_disk <HOSTNAME> 7 1:161:500:1:10:public:::::: get used 5
BSOD2600 wrote:Could possibly need to increase it more. what is the average latency to the server?
Okay, set it to 10 seconds while the delay to the wan machines is usually not higher than 200ms, to the local machines between <1ms and 10ms.
BSOD2600 wrote:Does a manual snmpwalk of .1.3.6.1.2.1.25.2.3.1 return data?
The command snmpwalk -v 2c -c public localhost .1.3.6.1.2.1.25.2.3.1 gives me the following error messages:

Code: Select all

Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
but also the following correct output:

Code: Select all

HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageIndex.7 = INTEGER: 7
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-MIB::hrStorageTypes.5
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-MIB::hrStorageTypes.4
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-MIB::hrStorageTypes.7
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-MIB::hrStorageTypes.4
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-MIB::hrStorageTypes.7
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-MIB::hrStorageTypes.3
HOST-RESOURCES-MIB::hrStorageType.7 = OID: HOST-RESOURCES-MIB::hrStorageTypes.2
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: A:\
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: C:\ Label:System  Serial Number 483526e0
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: D:\
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: E:\ Label:Temp  Serial Number 80ce72fb
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: F:\
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Virtual Memory
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Physical Memory
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 0 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.7 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 6552503
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 2096383
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 39533
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 16374
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 2957170
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 1479066
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.6 = INTEGER: 18892
HOST-RESOURCES-MIB::hrStorageUsed.7 = INTEGER: 10542
HOST-RESOURCES-MIB::hrStorageAllocationFailures.1 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.2 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.3 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.4 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.5 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.6 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.7 = Counter32: 0
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Notice in your snmpwalk both index 3 and 5 are not returning total/used space? Both are hrStorageTypes.7, which is a CDROM.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests