Total CPU Usage for HP Proliant Servers

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Post Reply
Author
Message
jgtm
Posts: 12
Joined: Tue Aug 23, 2005 9:16 am

Total CPU Usage for HP Proliant Servers

#1 Post by jgtm » Thu Aug 25, 2005 10:02 am

First of all, fantastic product. Well done on a great piece of software! I have been playing with it for 3 days now and it was at first confusing to use but I'm getting there.

Here's my first graph template.

This graph template uses the SNMP MIBs provided by the HP Smartstart management tools that come on the CD with all HP Proliant servers to graph cpu usage (user, system, total).

I am currently using Cacti on a HP Proliant DL740 with Red Hat Linux Advanced Server 3.0 installed.

I am also using the following software:

net-snmp-cmaX-libs-5.1.2-220 (Red Hat RPM)
net-snmp-cmaX-devel-5.1.2-220 (Red Hat RPM)
net-snmp-cmaX-utils-5.1.2-220 (Red Hat RPM)
net-snmp-cmaX-perl-5.1.2-220 (Red Hat RPM)
net-snmp-cmaX-5.1.2-220 (Red Hat RPM)
RRDTool 1.2.11 (compiled from source)
Apache 2.0.54 (compiled from source)
PHP 4.4.0 (compiled from source)
MySQL Standard 4.0.25 (Binary linux dist)
Cacti 0.8.6f

I'd like to monitor more than just plain old total cpu usage so I used snmpwalk and found better snmp OIDs for each individual CPU as follows:

Code: Select all

# snmpwalk -Of -c m3and3r -v 1 localhost .1.3.6.1.4.1.232.23.2.3.2.1
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.1.0 = INTEGER: 0
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.1.1 = INTEGER: 1
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.1.2 = INTEGER: 2
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.1.3 = INTEGER: 3
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.1.4 = INTEGER: 4
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.1.5 = INTEGER: 5
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.1.6 = INTEGER: 6
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.1.7 = INTEGER: 7
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.1.8 = INTEGER: 8
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.2.0 = STRING: "Total"
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.2.1 = STRING: "Processor 1"
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.2.2 = STRING: "Processor 2"
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.2.3 = STRING: "Processor 3"
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.2.4 = STRING: "Processor 4"
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.2.5 = STRING: "Processor 5"
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.2.6 = STRING: "Processor 6"
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.2.7 = STRING: "Processor 7"
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.2.8 = STRING: "Processor 8"
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.3.0 = Counter32: 370
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.3.1 = Counter32: 44
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.3.2 = Counter32: 28
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.3.3 = Counter32: 196
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.3.4 = Counter32: 0
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.3.5 = Counter32: 58
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.3.6 = Counter32: 0
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.3.7 = Counter32: 8
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.3.8 = Counter32: 33
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.4.0 = Counter32: 99
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.4.1 = Counter32: 99
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.4.2 = Counter32: 99
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.4.3 = Counter32: 99
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.4.4 = Counter32: 99
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.4.5 = Counter32: 99
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.4.6 = Counter32: 99
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.4.7 = Counter32: 99
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.4.8 = Counter32: 99
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.7.0 = Counter32: 75
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.7.1 = Counter32: 73
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.7.2 = Counter32: 73
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.7.3 = Counter32: 75
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.7.4 = Counter32: 74
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.7.5 = Counter32: 76
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.7.6 = Counter32: 77
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.7.7 = Counter32: 75
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.7.8 = Counter32: 77
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.8.0 = Counter32: 24
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.8.1 = Counter32: 25
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.8.2 = Counter32: 26
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.8.3 = Counter32: 24
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.8.4 = Counter32: 25
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.8.5 = Counter32: 23
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.8.6 = Counter32: 22
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.8.7 = Counter32: 24
.iso.org.dod.internet.private.enterprises.232.23.2.3.2.1.8.8 = Counter32: 22
My graph template uses the .1.4.0, .1.7.0 and .1.8.0 OIDs.

I shall probably configure a graph template for the others but I'm not sure what the .1.3.x OIDs are for. Anyone got an idea?

This server has 4 Xeon processors, which is why it shows up as 8 logical processors in "top" and in SNMP.
Attachments
hp_total_cpu_usage.xml
(21.82 KiB) Downloaded 4153 times
Last edited by jgtm on Thu Aug 25, 2005 1:23 pm, edited 1 time in total.

jgtm
Posts: 12
Joined: Tue Aug 23, 2005 9:16 am

#2 Post by jgtm » Thu Aug 25, 2005 10:05 am

A screenshot. Please bear in mind this server is cpu maxxed a lot. Thats why its at 99% cpu usage!
Attachments
hp_total_cpu_usage.JPG
hp_total_cpu_usage.JPG (31.06 KiB) Viewed 31770 times

jgtm
Posts: 12
Joined: Tue Aug 23, 2005 9:16 am

#3 Post by jgtm » Thu Aug 25, 2005 10:09 am

Oh the reason why I created this was because with the ucd/net snmp graph template that I got with Cacti, "system" was showing the total cpu usage and "nice" and "user" were showing as zero.

I couldn't figure out why because poller.php was getting good values back from the SNMP daemon and there were no errors in the cacti.log or in the graph management debug mode.

So that is why I decided to be creative.

Post Reply