Operating System - HP-UX
1828631 Members
4175 Online
109983 Solutions
New Discussion

system load average via snmp?

 
SOLVED
Go to solution
robert lojek_1
Occasional Advisor

system load average via snmp?

I've been trying like the devil to get load average information from the HPUX 11.00 built-in SNMP agent (running on an L-1000), but I can't figure out which OID represents load, if any. We pointed our NNM X-based snmp-walking-utility at the machine, which at least translates the OIDs to text, then grep'd for "load", etc.--nothing.

This is standard fare under net-snmp (ucd-snmp) under ...private.enterprises, but HPUX's snmp agents' 4000-lines+ don't seem to contain the elusive load average numbers (1,5,15-minute).

Can I get load from the stock setup?

If not, what have others done? I'm not interested in workarounds, sar, etc., I'm trying to scale the tool we already have in place to gather this information.

Thanks for any help!

--Rob Lojek
It is said that power corrupts, but actually it's more true that power attracts the corruptible. The sane are usually attracted by other things than power. --David Brin
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor
Solution

Re: system load average via snmp?

Hi Rob,

You can use snmpwalk/get to get the system load.

There are some good metrics under the tree

.iso.org.dod.internet.private.enterprises.hp.nm.system.general.computerSystem

If you are looking at the load, the following are the oids.

load average for 1 min * 100

.1.3.6.1.4.1.11.2.3.1.1.3

For 5 min

.1.3.6.1.4.1.11.2.3.1.1.4

For 15 min

.1.3.6.1.4.1.11.2.3.1.1.4

It will help you a lot if you have any snmpbrowsers or you can use snmpwalk and get all the possible values.

-Sri


You may be disappointed if you fail, but you are doomed if you don't try
Sridhar Bhaskarla
Honored Contributor

Re: system load average via snmp?

Hi Rob,

You can use snmpwalk/get to get the system load.

There are some good metrics under the tree

.iso.org.dod.internet.private.enterprises.hp.nm.system.general.computerSystem

If you are looking at the load, the following are the oids.

load average for 1 min * 100

.1.3.6.1.4.1.11.2.3.1.1.3

For 5 min

.1.3.6.1.4.1.11.2.3.1.1.4

For 15 min

.1.3.6.1.4.1.11.2.3.1.1.5

It will help you a lot if you have any snmpbrowsers or you can use snmpwalk and get all the possible values.

-Sri


You may be disappointed if you fail, but you are doomed if you don't try
harry d brown jr
Honored Contributor

Re: system load average via snmp?

look for sysUpTime, use the grep -i option also.

live free or die
harry
Live Free or Die
robert lojek_1
Occasional Advisor

Re: system load average via snmp?

Sri--
thanks for the note! I haven't tried your suggestion yet, since I just got finished building/installing net-snmp (4.2.4.pre3) (using:

binutils 2.9.1 binutils
gcc 2.95.2 gcc

packages), which compiled/installed without fanfare. It seems to be running stable, and it gives me the familiar
.1.3.6.1.4.1.2021.10.1.3.[1-3] OIDs that I've grown to love on our linux boxes. (no more HPUX one-offs).

I'm going to try your suggestion, but looks like net-snmp might be a good alternative, too.

thanks!

--Rob Lojek
It is said that power corrupts, but actually it's more true that power attracts the corruptible. The sane are usually attracted by other things than power. --David Brin