[mrtg] Re: problems with APC ups & mrtg

Anthony L. Sollars tony at sightward.com
Tue Dec 18 20:28:22 MET 2001


Which APC are you using, I am preparing to buy a symmetra with the snmp
card, and plan on doing this same procedure.

-TOny

-----Original Message-----
From: Paul C. Williamson [mailto:pwilliamson at mandtbank.com]
Sent: Tuesday, December 18, 2001 10:43 AM
To: mrtg at list.ee.ethz.ch; canderso at TTACS.TTU.EDU
Cc: colin at beyondboxes.com
Subject: [mrtg] Re: problems with APC ups & mrtg



Look at the result...

enterprises.318.1.1.1.3.2.1.0 = Gauge32: 124

and look at your request in the cfg file...

Target[65.169.190.22]:
1.3.6.1.4.1.318.1.1.1.3.2.1&1.3.6.1.4.1.318.1.1.1.4.2.1:public at 65.169.190.22


You are missing the .0 in the OID.

Paul

>>> <canderso at TTACS.TTU.EDU> 12/18/01 01:34PM >>>

Hello, I've been using mrtg to graph my (Cisco) router and switch traffic
for over a year. I had no problems configuring the software after having
read the documentation. To this day, mrtg is still graphing my router and
switch traffic without any problems.

However, I have been trying without success to get mrtg to graph my (APC)
UPS stats. I re-read the docs and faqs and continue to run into the same
problem...

I would like to graph the voltage input. I have no problems getting this
data via snmpwalk:

# snmpwalk 65.169.190.22 public .1.3.6.1.4.1.318.1.1.1.3.2.1
enterprises.318.1.1.1.3.2.1.0 = Gauge32: 124

However, when I create a mrtg.cfg with the same oid, I get the following
errors when running mrtg:

# ./usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/cfg/mrtg.cfg
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.4.1.318.1.1.1.3.2.1)
SNMPv1_Session (remote host: "65.169.190.22" [65.169.190.22].161)
                  community: "public"
                 request ID: 1011030818
                 PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for 1.3.6.1.4.1.318.1.1.1.3.2.1
1.3.6.1.4.1.318.1.1.1.4.2.1 sysName on public at 65.169.190.22 
 at ./usr/local/mrtg-2/bin/mrtg line 1485
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''

I trimmed down my mrtg.cfg to almost nothing to try to isolate the
problem. Here is my full mrtg.cfg:

# cat mrtg.cfg
WorkDir: /usr/local/apache/htdocs/admin/mrtg
Options[_]: bits,growright
#Voltage In
Target[65.169.190.22]:
1.3.6.1.4.1.318.1.1.1.3.2.1&1.3.6.1.4.1.318.1.1.1.4.2.1:public at 65.169.190.22

MaxBytes[65.169.190.22]: 150
Title[65.169.190.22]: SmartUPS 3000 RM
PageTop[65.169.190.22]: <H2>Input Voltage</H2>
Options[65.169.190.22]: gauge, nopercent, absolute
Unscaled[65.169.190.22]: dwmy
XSize[65.169.190.22]: 380
YSize[65.169.190.22]: 175
YLegend[65.169.190.22]: Input Voltage
ShortLegend[65.169.190.22]: Volts
Legend1[65.169.190.22]: Input Voltage
Legend2[65.169.190.22]: Input Voltage

Perhaps I am missing something quite simple, I don't know. All I know is
it isn't working, I get the above errors and the log fills up with the
number "1". The resultant HTML claims "1 Volt" current and average.

Thank you in advance for any help.

Colin Anderson


--
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 



--
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

--
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