[solved] w/Win2008r2 client via SNMP - HDD works, CPU doesnt

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

Moderators: Developers, Moderators

Post Reply
Chilling_Silence
Posts: 4
Joined: Sun Aug 29, 2010 7:36 pm

[solved] w/Win2008r2 client via SNMP - HDD works, CPU doesnt

Post by Chilling_Silence »

Hi all,

We have a setup here where we're monitoring around about 30 different devices, from switches to routers to UPS to windows server 200X to linux machines.

The problem we've been having is with Server 2008r2, we can't seem to get the CPU usage to report.

Code: Select all

[root@localhost html]# time snmpwalk -v 2c -c public -t 10 172.19.37.5 .1.3.6.1.2.1.25.3.3.1
HOST-RESOURCES-MIB::hrProcessorFrwID.8 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.9 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.10 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.11 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorLoad.8 = INTEGER: 0
HOST-RESOURCES-MIB::hrProcessorLoad.9 = INTEGER: 0
HOST-RESOURCES-MIB::hrProcessorLoad.10 = INTEGER: 0
HOST-RESOURCES-MIB::hrProcessorLoad.11 = INTEGER: 0

real    0m0.502s
user    0m0.026s
sys     0m0.015s
We know that it's working fine from the command line, as we can compare it to other machines we've got which are running Server 2003

Code: Select all

[root@localhost html]# time snmpwalk -v 2c -c public -t 10 172.19.33.100 .1.3.6.1.2.1.25.3.3.1
HOST-RESOURCES-MIB::hrProcessorFrwID.2 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.3 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorLoad.2 = INTEGER: 6
HOST-RESOURCES-MIB::hrProcessorLoad.3 = INTEGER: 7

real    0m0.040s
user    0m0.028s
sys     0m0.010s
I've tried adjusting the timeout values to over 50 seconds, that's not helped either.

When I go into the Device Settings, I get the following from the 'Verbose query' for CPU utilization:

Code: Select all

+ 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 172.19.37.5 22 2:161:5000:1:100:public:admin:*****:MD5::DES: index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_cpu.php 172.19.37.5 22 2:161:5000:1:100:public:admin:*****:MD5::DES: query index'
+ Found item [hrProcessorFrwID='0'] index: 0
+ Found item [hrProcessorFrwID='1'] index: 1
+ Found item [hrProcessorFrwID='2'] index: 2
+ Found item [hrProcessorFrwID='3'] index: 3
+ 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'
It seems about right to me ?

The graph basically says "The RRD file does not exist", but the interesting part is that the HDD space reporting on that same server *does* work.
I setup the HDD and CPU usage reporting at the same time, so I'm presuming there's been no magical filesystem permissions or anything that might have changed while I was creating one or the other.

I'm not too sure where to turn to next to start looking into debugging this issue for myself. I've checked in both the logs under Console --> System Utilities and nothing there looks like it should be ringing any alarm bells.

Any thoughts / comments would be greatly appreciated.

Cheers


Chill.
Chilling_Silence
Posts: 4
Joined: Sun Aug 29, 2010 7:36 pm

Post by Chilling_Silence »

Hi all,

Long story short, this was resolved by deleting both the graph and the rrd files associated with it and re-creating them. Not sure why but it's happy this time around?

Odd but I'm pleased. Thanks anyway! :)


Chill.
NinjaSan
Posts: 8
Joined: Fri Jul 16, 2010 8:40 am

Post by NinjaSan »

Very interesting, because snmpwalk can't give you right data. Why deleting graph should resolve this problem ?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest