[mrtg] Can't get MRTG to monitor NET-SNMP

Brian L. Brush brian at paradyne.com
Thu Mar 7 17:57:29 MET 2002



I'm trying to use MRTG 2.9.17 to monitor NET-SNMP 4.2.3 on SPARC Solaris
2.6. I know MRTG works, because I get a working configuration when I
point cfgmaker at one of my Cisco switches. When I do the same for one
of my NET-SNMP Solaris boxes, the graphs are all blank, and all of the
numerical values are 0.0 on the web page. I do, however, see the proper
numbers in the MRTG *.log files, and I've also checked the MRTG
debugging output, so I know I'm getting non-zero values via SNMP. The
line wrapping will mangle it, but here is a config entry that causes
such behavior (generated by cfgmaker, but I changed MaxBytes):

### Interface 2 >> Descr: 'le0' | Name: '' | Ip: '' | Eth: '' ###

Target[ace_2]: 2:sig at ace:
SetEnv[ace_2]: MRTG_INT_IP="" MRTG_INT_DESCR="le0"
MaxBytes[ace_2]: 9999999999
Title[ace_2]: Traffic Analysis for 2 -- ace.is.paradyne.com
PageTop[ace_2]: <H1>Traffic Analysis for 2 -- ace.is.paradyne.com</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>ace.is.paradyne.com in Largo Data
Center</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>SIG &lt;sig at paradyne.com&gt;</TD></TR>
   <TR><TD>Description:</TD><TD>le0  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>1250.0 kBytes/s</TD></TR>
 </TABLE>

I've also tried to monitor other values from NET-SNMP but have the same
problem. Here is an attempt based on the tutorial on the NET-SNMP page:

LoadMIBs: /opt/local/share/snmp/mibs/UCD-SNMP-MIB.txt
Target[atlas.is.paradyne.com.cpu]:
ssCpuUser.0&ssCpuIdle.0:sig at atlas.is.paradyne.com
RouterUptime[atlas.is.paradyne.com.cpu]: sig at atlas.is.paradyne.com
MaxBytes[atlas.is.paradyne.com.cpu]: 99999999
Title[atlas.is.paradyne.com.cpu]: CPU Load
PageTop[atlas.is.paradyne.com.cpu]: <H1>User CPU Load %</H1>
Unscaled[atlas.is.paradyne.com.cpu]: ymwd
ShortLegend[atlas.is.paradyne.com.cpu]: CPU Utilization
Legend1[atlas.is.paradyne.com.cpu]: User CPU in % (Load)
Legend2[atlas.is.paradyne.com.cpu]: Idle CPU in % (Load)
Legend3[atlas.is.paradyne.com.cpu]:
Legend4[atlas.is.paradyne.com.cpu]:
LegendI[atlas.is.paradyne.com.cpu]: User
LegendO[atlas.is.paradyne.com.cpu]: Idle
Options[atlas.is.paradyne.com.cpu]: growright,nopercent

Again, I see sane values in the *.log files, but the graphs and HTML
show all zeroes. I've found no references to this problem in my searches
of the news group and mailing list archives. Tell me I'm a bone-head,
but please tell me what I'm doing wrong!

--Brian L. Brush
Senior Systems Administrator
Paradyne Corporation

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list