Operating System - OpenVMS
1748160 Members
4119 Online
108758 Solutions
New Discussion юеВ

Monitoring CPU stats with SNMP & MRTG or openview

 
SOLVED
Go to solution
Wayne Gillan
Advisor

Monitoring CPU stats with SNMP & MRTG or openview

Hi all,

I am trying to find a way to get CPU performance data via SNMP and then use MRTG or openview to graph it. I've tried to find MID's that have this but no luck yet. Does anyone know it? All I want is CPU BUSY or something like that.

The server is a HP Proliant RX2660 running V8.3.

If anyone has any ideas that would be much appreciated.

Cheers,
Wayne
16 REPLIES 16
labadie_1
Honored Contributor

Re: Monitoring CPU stats with SNMP & MRTG or openview

Hello

I did not know that Vms was available on Proliant :-)

What is Cpu busy ? busy at 100% avec 2 processes in COM on a GS1280, or with 45 processes in COM on an Alpha 1000 ?

It is possible to graph Cpu performance, one example, among many possibilities, hyperspi++

http://pi-net.dyndns.org/hyperspi++

Just click on Cpu and remove anything else.

I do not know how to do this via Snmp, sorry.
Ian Miller.
Honored Contributor

Re: Monitoring CPU stats with SNMP & MRTG or openview

The MIB provided by HP TCPIP are described at

http://h71000.www7.hp.com/doc/82final/6530/6530pro_001.html#mibs_chap

perhaps there is a suitable item you can get
____________________
Purely Personal Opinion
Solution

Re: Monitoring CPU stats with SNMP & MRTG or openview

Hi Wayne

We use Cricket/RRDtool for the same job. You need to tell MRTG to query the hrProcessorLoad value (a percentage), 1.3.6.1.2.1.25.3.3.1.2.x, where x is the deviceID as reported by hrDeviceDescr (1.3.6.1.2.1.25.3.2.1.3).

I have had this working on Cricket for the past few weeks but have come across a problem of my own. We have two 4 processor systems in a cluster, however the SNMP process only seems to report on 3 of the processors on both systems:

bash# snmpwalk -v 2c -c 1.3.6.1.2.1.25.3.2.1.3 | grep -i CPU
HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: CPU 00 AlphaServer ES45 Model 2
HOST-RESOURCES-MIB::hrDeviceDescr.2 = STRING: CPU 01 AlphaServer ES45 Model 2
HOST-RESOURCES-MIB::hrDeviceDescr.3 = STRING: CPU 02 AlphaServer ES45 Model 2

If anyone can shed any light as to why CPU 03 isn't listed, please let me know!
Wayne Gillan
Advisor

Re: Monitoring CPU stats with SNMP & MRTG or openview

Thanks Steven, those OID's were exactly what I was after. How did you come across them?

It seems though that I have the same problem with our dual processor, CPU 01 won't show.

MOO>snmp_request moo "public" get 1.3.6.1.2.1.25.3.2.1.3.1
1.3.6.1.2.1.25.3.2.1.3.1 = CPU 00 HP rx2660 (1.59GHz/9.0MB)
MOO>snmp_request moo "public" get 1.3.6.1.2.1.25.3.2.1.3.2
- no such name - returned for variable 1

When a walk is performed, it misses the .2 altogether. However it appears to show a correct value for hrProcessorLoad.

MOO>snmp_request moo "public" get 1.3.6.1.2.1.25.3.3.1.2.1
1.3.6.1.2.1.25.3.3.1.2.1 = 2
MOO>snmp_request moo "public" get 1.3.6.1.2.1.25.3.3.1.2.2
1.3.6.1.2.1.25.3.3.1.2.2 = 2

Anyway, I will just have to wait and see how the graph appears after the daily backup.

Thanks again,
Wayne

Re: Monitoring CPU stats with SNMP & MRTG or openview

Can't remember exactly how I found them, I think I went looking for them on HP's OpenVMS site after the normal CPU OID (that I use for monitoring our Unix machines) didn't work.

Regarding the missing entry for CPU 01 (or CPU 03 in my case), I am willing to bet that over time your CPU 01 processor load will graph exactly the same figures as your CPU 00 processor load.

On our systems, the hrProcessorLoad OID for what should be CPU 03 responds with data but it's an exact copy of the data for CPU 02.... let me know what you find!
Wayne Gillan
Advisor

Re: Monitoring CPU stats with SNMP & MRTG or openview

Yes as you can see from the output above CPU01 (...2) returned the same data as CPU00 (...1).

Thanks again,
Wayne
Wim Van den Wyngaert
Honored Contributor

Re: Monitoring CPU stats with SNMP & MRTG or openview

Wim Van den Wyngaert
Honored Contributor

Re: Monitoring CPU stats with SNMP & MRTG or openview

This explains the cpu usage
http://www.mnlab.cs.depaul.edu/cgi-bin/sbrowser.cgi?HOST=&OID=HOST-RESOURCES-MIB!hrProcessorLoad (but my test suggest that it's the average of several minutes) and http://www.mnlab.cs.depaul.edu/cgi-bin/sbrowser.cgi?HOST=&OID=HOST-RESOURCES-MIB!hrProcessorLoad&ACTION=WELCOME is a very good walk trhu starting point.

Wim (using snmp to monitor san switches and hub900)
Wim
Wim Van den Wyngaert
Honored Contributor

Re: Monitoring CPU stats with SNMP & MRTG or openview

Not on topic but you can minitor the snmp enabled printers on item 1.3.6.1.4.1.11.2.4.3.1.2.0 and it returns "ready to be printed" or "out of paper" or "not connected" etc. Very usefull because VMS is not giving that info in a reliable way.

Wim
Wim