Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

SNMP MRTG TEMP, CPU, MEMORY

Bernie Johnson_1
Occasional Visitor

SNMP MRTG TEMP, CPU, MEMORY

I am running several Tru64 servers, mainly 4.0G and 5.1A. I am running Red Hat Liunx as my MRTG server and can monitor traffic, cpu, memory, process, connections, and temperature on my 4.0G servers with no problems at all.

But when I try to use the same MIBS on a 5.1A server I only get back readings for number of connections and traffic on ethernet.

I am assuming that it has somthing to do with the OS version. Can anyone help me with this as I can find no info and have already RTFM many times :)

Bernie--
6 REPLIES
Johan Brusche
Honored Contributor

Re: SNMP MRTG TEMP, CPU, MEMORY

Bernie,

Are all the mib-agents running on the V5.1A systems ?

/usr/sbin/snmpd
/usr/sbin/insightd
/usr/sbin/svrMgt_mib
/usr/sbin/svrSystem_mib
( /usr/sbin/clu_mibs )
/usr/sbin/os_mibs
/usr/sbin/cpq_mibs
/usr/sbin/cpqthresh_mib

Are all parmeters defined the same in /etc/snmpd.conf ?

Are the CPQIM subsets installed in one of these environments ?
ls /usr/.smdb./CPQIM*.lk

Johan.

_JB_
Bernie Johnson_1
Occasional Visitor

Re: SNMP MRTG TEMP, CPU, MEMORY

Johan,

All servers are running al of those processes and daemons, excep the 4.0G's are not running insightd, actually none of them were until this morning when I started insightd on the 5.1A's, and it made no difference.

THe two 5.1A's are showing some weird activity at around 11Pm they started showing processes in the MRTG RRDTOOL graphs but then immediately stopped showing processes after a reboot, very strange.

As for this:

ls /usr/.smdb./CPQIM*.lk

None of them have that running or installed, neither the 4.0G's or the 5.1A's.

Bernie--
Johan Brusche
Honored Contributor

Re: SNMP MRTG TEMP, CPU, MEMORY

OK, let's see if a V4.0G system can interrogate a snmp-MIB on a V5.1A system.
To that purpose use the command:

/usr/sbin/snmp_request public getnext -t 1.3.6.1.2.1.25.3.2.1.3

If you know the OID-tree you are interested in use it's number instead of the one in my example.

The result looks like:

1.3.6.1.2.1.25.3.2.1.3.1 = Digital Personal WorkStation 500au
1.3.6.1.2.1.25.3.2.1.3.2 = CPU0 EV5.6 (21164A)
1.3.6.1.2.1.25.3.2.1.3.4 = pci0
1.3.6.1.2.1.25.3.2.1.3.5 = pci0slot3
1.3.6.1.2.1.25.3.2.1.3.7 = pci0slot4
1.3.6.1.2.1.25.3.2.1.3.9 = pci0slot7
1.3.6.1.2.1.25.3.2.1.3.11 = pci0slot8
1.3.6.1.2.1.25.3.2.1.3.13 = pci0slot11
1.3.6.1.2.1.25.3.2.1.3.15 = pci0slot12
1.3.6.1.2.1.25.3.2.1.3.17 = tu0 Ethernet 21142
1.3.6.1.2.1.25.3.2.1.3.18 = ata0
1.3.6.1.2.1.25.3.2.1.3.19 = scsi0
1.3.6.1.2.1.25.3.2.1.3.20 = scsi1
1.3.6.1.2.1.25.3.2.1.3.21 = isa0
1.3.6.1.2.1.25.3.2.1.3.22 = isa0slot0
1.3.6.1.2.1.25.3.2.1.3.23 = keyboard0
1.3.6.1.2.1.25.3.2.1.3.24 = mouse0
1.3.6.1.2.1.25.3.2.1.3.25 = isa0slot2
1.3.6.1.2.1.25.3.2.1.3.26 = tty00
1.3.6.1.2.1.25.3.2.1.3.27 = isa0slot3
1.3.6.1.2.1.25.3.2.1.3.28 = tty01
1.3.6.1.2.1.25.3.2.1.3.29 = isa0slot4
1.3.6.1.2.1.25.3.2.1.3.30 = lp0
1.3.6.1.2.1.25.3.2.1.3.31 = isa0slot5
1.3.6.1.2.1.25.3.2.1.3.32 = fdi0
1.3.6.1.2.1.25.3.2.1.3.33 = FDI-fdi0-unit-0 floppy 3.5in floppy
1.3.6.1.2.1.25.3.2.1.3.34 = pci1
1.3.6.1.2.1.25.3.2.1.3.35 = pci1slot9
1.3.6.1.2.1.25.3.2.1.3.37 = pci1slot10
1.3.6.1.2.1.25.3.2.1.3.39 = isp0
1.3.6.1.2.1.25.3.2.1.3.40 = scsi2
1.3.6.1.2.1.25.3.2.1.3.41 = isp1
1.3.6.1.2.1.25.3.2.1.3.42 = scsi3
1.3.6.1.2.1.25.3.2.1.3.43 = Legacy-driver-(ingr_vga0)
1.3.6.1.2.1.25.3.2.1.3.44 = ingr0 3D p00e21091
1.3.6.1.2.1.25.3.2.1.3.45 = SCSI-WWID:0710002c:"TOSHIBA CD-ROM XM-6002B :d05b000t00000l00000" cdrom CD-ROM XM-6002B
1.3.6.1.2.1.25.3.2.1.3.46 = SCSI-WWID:03100022:"RZ2CC-KA (C) DECQUANTUM 4814631736" generic RZ2CC-KA (C) DEC
1.3.6.1.2.1.25.3.2.1.3.47 = SCSI-WWID:04100022:"DEC TZ89 (C) DECCX847S0497" TZ89 (C) DEC



_JB_
Bernie Johnson_1
Occasional Visitor

Re: SNMP MRTG TEMP, CPU, MEMORY

Johan,

This is the output of that command from a 5.1a server, I ran this on a 4.0G server:

# /usr/sbin/snmp_request 10.27.2.20 SkinS getnext -t 1.3.6.1.2.1.25.3.2.1.3
1.3.6.1.2.1.25.3.2.1.3.1 = Compaq AlphaServer ES45 Model 1B
1.3.6.1.2.1.25.3.2.1.3.2 = CPU0 EV6.8CB (21264C)
1.3.6.1.2.1.25.3.2.1.3.3 = CPU1 EV6.8CB (21264C)
1.3.6.1.2.1.25.3.2.1.3.5 = pci0
1.3.6.1.2.1.25.3.2.1.3.6 = pci0slot7
1.3.6.1.2.1.25.3.2.1.3.8 = pci0slot10
1.3.6.1.2.1.25.3.2.1.3.10 = pci0slot11
1.3.6.1.2.1.25.3.2.1.3.12 = pci0slot12
1.3.6.1.2.1.25.3.2.1.3.13 = Unconfigured-device-()-at-pci0slot12
1.3.6.1.2.1.25.3.2.1.3.14 = pci0slot16
1.3.6.1.2.1.25.3.2.1.3.16 = isa0
1.3.6.1.2.1.25.3.2.1.3.17 = isa0slot0
1.3.6.1.2.1.25.3.2.1.3.18 = keyboard0
1.3.6.1.2.1.25.3.2.1.3.19 = mouse0
1.3.6.1.2.1.25.3.2.1.3.20 = isa0slot2
1.3.6.1.2.1.25.3.2.1.3.21 = tty00
1.3.6.1.2.1.25.3.2.1.3.22 = isa0slot3
1.3.6.1.2.1.25.3.2.1.3.23 = tty01
1.3.6.1.2.1.25.3.2.1.3.24 = isa0slot4
1.3.6.1.2.1.25.3.2.1.3.25 = lp0
1.3.6.1.2.1.25.3.2.1.3.26 = isa0slot5
1.3.6.1.2.1.25.3.2.1.3.27 = fdi0
1.3.6.1.2.1.25.3.2.1.3.28 = itpsa0
1.3.6.1.2.1.25.3.2.1.3.29 = scsi0
1.3.6.1.2.1.25.3.2.1.3.30 = pci4
1.3.6.1.2.1.25.3.2.1.3.31 = pci4slot3
1.3.6.1.2.1.25.3.2.1.3.32 = Unconfigured-device-()-at-pci4slot3
1.3.6.1.2.1.25.3.2.1.3.33 = pci4slot4
1.3.6.1.2.1.25.3.2.1.3.35 = i2o0
1.3.6.1.2.1.25.3.2.1.3.36 = I2O Block Storage-iop-0-dev-0 generic i2o_bs
1.3.6.1.2.1.25.3.2.1.3.37 = ata0
1.3.6.1.2.1.25.3.2.1.3.38 = scsi1
1.3.6.1.2.1.25.3.2.1.3.39 = scsi2
1.3.6.1.2.1.25.3.2.1.3.41 = pci1
1.3.6.1.2.1.25.3.2.1.3.42 = pci1slot1
1.3.6.1.2.1.25.3.2.1.3.44 = pci1slot6
1.3.6.1.2.1.25.3.2.1.3.45 = Unconfigured-device-()-at-pci1slot6
1.3.6.1.2.1.25.3.2.1.3.46 = itpsa1
1.3.6.1.2.1.25.3.2.1.3.47 = scsi3
1.3.6.1.2.1.25.3.2.1.3.49 = pci2
1.3.6.1.2.1.25.3.2.1.3.50 = pci2slot5
1.3.6.1.2.1.25.3.2.1.3.52 = p3g0 2D Permedia3
1.3.6.1.2.1.25.3.2.1.3.54 = pci3
1.3.6.1.2.1.25.3.2.1.3.55 = pci3slot1
1.3.6.1.2.1.25.3.2.1.3.57 = pci3slot2
1.3.6.1.2.1.25.3.2.1.3.59 = pci3slot6
1.3.6.1.2.1.25.3.2.1.3.60 = Unconfigured-device-()-at-pci3slot6
1.3.6.1.2.1.25.3.2.1.3.61 = pci5
1.3.6.1.2.1.25.3.2.1.3.62 = pci5slot4
1.3.6.1.2.1.25.3.2.1.3.64 = pci5slot5
1.3.6.1.2.1.25.3.2.1.3.66 = ee0 Ethernet Intel 82559
1.3.6.1.2.1.25.3.2.1.3.67 = ee1 Ethernet Intel 82559
1.3.6.1.2.1.25.3.2.1.3.68 = SCSI-WWID:0710002c:"COMPAQ CRD-8402B :d05b001t00000l00000" cdrom CRD-8402B
1.3.6.1.2.1.25.3.2.1.3.69 = SCSI-WWID:0c000008:00e0-9e60-0005-1d1c DLT8000
1.3.6.1.2.1.25.3.2.1.3.70 = SCSI-WWID:03100032:"SDT-9000 SONY SDT-9000 0003084323" SDT-9000
1.3.6.1.2.1.25.3.2.1.3.71 = ciss0
1.3.6.1.2.1.25.3.2.1.3.72 = scsi4
1.3.6.1.2.1.25.3.2.1.3.73 = SCSI-WWID:04100026:"COMPAQ Smart Array 5300P62520CDAP106I" storage Smart Array 5300
Johan Brusche
Honored Contributor

Re: SNMP MRTG TEMP, CPU, MEMORY


So snmp seems OK on the V5.1A system, did you check for mrtg errors in /var/log/mrtg.log ?

I found the following template in the comp.unix.tru64 news archives for creating a working CPU usage template:

/usr/bin/cfgmaker --host-template=cpu.CPQ.template

and cpu.CPQ.template contains

$head_lines .= <
ECHO my $target_name = $router_name . ".cpu"; $target_lines .= <
YLegend[$target_name]: Percentage CPU 0 load ShortLegend[$target_name]: %
Legend1[$target_name]: CPU 0 load in % Legend2[$target_name]: CPU 1 load in %
Legend3[$target_name]: Max Observed CPU 0 load Legend4[$target_name]: Max Observed
CPU 1 load LegendI[$target_name]: CPU 0 Load: LegendO[$target_name]: CPU
1 Load: WithPeak[$target_name]: ywm MaxBytes[$target_name]: 100
Options[$target_name]: growright, gauge, nopercent Title[$target_name]: $router_name
CPU load Target[$target_name]:
.1.3.6.1.2.1.25.3.3.1.2.1&.1.3.6.1.2.1.25.3.3.1.2.2:$router_connect
PageTop[$target_name]:
$router_name CPU load

System: $router_name in $html_syslocation

Maintainer: $html_syscontact
VALIGN="top">Description: $html_sysdescr

Resource: CPU.
ECHO

==============
Beware that above template migth contain redundant linebreaks....
What MIB numbers do you use in your templates ?

Rgds,
Johan.

_JB_
Bernie Johnson_1
Occasional Visitor

Re: SNMP MRTG TEMP, CPU, MEMORY

Johan,

Thank you so much for your help so far, I have gotten the CPU to work on 5.1A systems now.

Any idea where I should look for memory, temp and disk space mibs, so that I can monitor these as well.

So far I have everything working on the 4.0G servers and on the 5.1A server I have:

ethernet
connections
CPU0
CPU1

Thanks,
Bernie--