1754379 Members
4494 Online
108813 Solutions
New Discussion юеВ

Loading MIBs in hpux

 
SOLVED
Go to solution
Sabin Mathew
Advisor

Loading MIBs in hpux

I was working with mrtg to monitor the disk usage in Hp-ux.
Could I know how I can load the mib /opt/OV/newconfig/AGENT-MAN/snmp_mibs/hp-unix
25 REPLIES 25
Geoff Wild
Honored Contributor

Re: Loading MIBs in hpux

Add it to the top of your mrtg.cfg file:

LoadMIBs: /opt/OV/newconfig/AGENT-MAN/snmp_mibs/hp-unix

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sabin Mathew
Advisor

Re: Loading MIBs in hpux

Thanks for the reply.

I have added this line to the top of the .cfg file.

But when I run mrtg, it gives snmp error, unable to poll the OID that I specified.

Thanks,
Sabin
Geoff Wild
Honored Contributor

Re: Loading MIBs in hpux

What are you polling for OID...

Here's how I do it (though I don't use the OVO mibs - but it may help):

more mrtg.cfg
EnableIPv6: no
LoadMIBs: /usr/local/share/snmp/mibs/UCD-SNMP-MIB.txt
WorkDir: /htdocs/mambo/mrtg/
Options[_]: bits,growright

######################################################################
# System: sha1
# Description: HP-UX sha1 B.11.11 U 9000/785
# Contact:
# Location:
######################################################################


RunAsDaemon: no
Interval: 5

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

# Email an ...
PageTop[$]:
Questions and references Geoff Wild.

### End of Global Config Options

######################################################################


Target[sha1.mydomain.comcpup]:.1.3.6.1.4.1.11.2.3.1.1.15.0&.1.3.6.1.4.1.11.2.3.1.1.13.0:mysnmpname@sha1.mydomain.com + .1.3.6.1.
4.1.11.2.3.1.1.16.0&.1.3.6.1.4.1.11.2.3.1.1.14.0:mysnmpname@sha1.mydomain.com
Title[sha1.mydomain.comcpup]: CPU Load on sha1.mydomain.com
MaxBytes[sha1.mydomain.comcpup]: 100
Ylegend[sha1.mydomain.comcpup]: CPU Load
ShortLegend[sha1.mydomain.comcpup]: %
PageTop[sha1.mydomain.comcpup]:

CPU Load on sha1.mydomain.com


Options[sha1.mydomain.comcpup]: integer, growright, nopercent
WithPeak[sha1.mydomain.comcpup]: wmy
LegendO[sha1.mydomain.comcpup]: User/System:  
LegendI[sha1.mydomain.comcpup]: Idle/Nice:  
Legend1[sha1.mydomain.comcpup]: Idle/Nice CPU Time
Legend2[sha1.mydomain.comcpup]: User/System CPU Time
Legend3[sha1.mydomain.comcpup]: Maximal Idle/Nice CPU Time
Legend4[sha1.mydomain.comcpup]: Maximal User/System CPU Time

######################################################################

Target[sha1.mydomain.commem]: .1.3.6.1.4.1.11.2.3.1.1.7.0&.1.3.6.1.4.1.11.2.3.1.1.8.0:mysnmpname@sha1.mydomain.com
Title[sha1.mydomain.commem]: Memory on sha1.mydomain.com
MaxBytes[sha1.mydomain.commem]: 100000000
Ylegend[sha1.mydomain.commem]: Memory Usage
ShortLegend[sha1.mydomain.commem]:  
PageTop[sha1.mydomain.commem]:

Memory on sha1.mydomain.com


Options[sha1.mydomain.commem]: integer, gauge, growright, nopercent
kilo[sha1.mydomain.commem]: 1024
WithPeak[sha1.mydomain.commem]: wmy
LegendO[sha1.mydomain.commem]: Total:  
LegendI[sha1.mydomain.commem]: Free:  
Legend1[sha1.mydomain.commem]: Free System Memory
Legend2[sha1.mydomain.commem]: Total Available System Memory
Legend3[sha1.mydomain.commem]: Maximal Available System Memory
Legend4[sha1.mydomain.commem]: Maximal Free System Memory

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sabin Mathew
Advisor

Re: Loading MIBs in hpux

Thanks again for the reply.

Here, the scenario is, mrtg is installed in a test server and I need to monitor the file system usage of another server in the production environment.

I created a .cfg file using the cfgmaker and it worked well for the network monitoring part.But for the filesystem monitoring, I am stucked up..

I just added the mib in the .cfg file and still its giving snmp error.
Please find below the error messsage.

SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.4.1.11.2.3.1.2.2.1.4)
SNMPv1_Session (remote host: "167.6.249.33" [167.6.249.33].161)
community: "public"
request ID: 767096839
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/bin/../lib/mrtg2/SNMP_util.pm line 490
SNMPGET Problem for .1.3.6.1.4.1.11.2.3.1.2.2.1.4 .1.3.6.1.4.1.11.2.3.1.2.2.1.5
sysUptime sysName on public@167.6.249.33::::::v4only
at /usr/local/bin/mrtg line 1921
ERROR: Target[167.6.249.33_disk][_IN_] ' $target->[8]{$mode} ' did not eval into
defined data
ERROR: Target[167.6.249.33_disk][_OUT_] ' $target->[8]{$mode} ' did not eval int
o defined data


Thanks,
Sabin
Geoff Wild
Honored Contributor

Re: Loading MIBs in hpux

I'll try those mibs tomorrow when I'm at work....

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor

Re: Loading MIBs in hpux

Couldn't get it to work - saw this on the net:

http://www.admins-tipps.net/management/mrtg_hpux.txt

AT the bottom, it mentions using a tool like getif to get the actual numbers for the disks...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sabin Mathew
Advisor

Re: Loading MIBs in hpux

Thanks again for the reply and info.
I was just exploring the URL you provided; could see a getif install file.

" Following is a sample for the drive allocations. You must find out
the numbers yourself."

Does this mean, we need to find out the actual disk usage percentages or what? I am confused what does this 'numbers' mean..

Thanks,
Sabin
Geoff Wild
Honored Contributor

Re: Loading MIBs in hpux

I believe - those are the disk id's...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor

Re: Loading MIBs in hpux

Wow - getif seems to work - yet I can't make heads or tails of it...

Example, found this:

.iso.org.dod.internet.private.enterprises.hp.nm.hpnsa.hpnsaStorageCap.hpnsaSCDrv.hpnsaSCDrvTable.hpnsaSCDrvEntry.hpnsaSCDrvCurrentAvailable

.1.3.6.1.4.1.11.2.23.15.3.2.1.12

But, I get nothing when I connect...tried version 1 and 2c:

# snmpget -v 1 -c mysnmp myserver .1.3.6.1.4.1.11.2.23.15.3.2.1.12
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.4.1.11.2.23.15.3.2.1.12

# snmpget -v 2c -c mysnmp myserver .1.3.6.1.4.1.11.2.23.15.3.2.1.12
iso.3.6.1.4.1.11.2.23.15.3.2.1.12 = No Such Object available on this agent at this OID

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.