[mrtg] problems with APC ups & mrtg
canderso at TTACS.TTU.EDU
canderso at TTACS.TTU.EDU
Tue Dec 18 19:34:20 MET 2001
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
More information about the mrtg
mailing list