You need to add 

Options[5_2]: gauge

to your config. Then mrtg will just record and graph the actual values at each 
sample time, rather than trying to calculate a rate per second.

If the value returned is 2 at one sample time, and five minutes later is still 
2, when mrtg calculates a rate per second [(sample2 - sample1) / 300], it will 
record and graph 0. By telling mrtg this is a gauge, this calculation is 
skipped.

Jerry

-----Original Message-----
From: Andy Dills [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 4:47 PM
To: [EMAIL PROTECTED]
Subject: [mrtg] Getting values, but empty graphs 



I apologize in advance if this is something I should have found without
asking. It seems the mailing list isn't searchable, and I couldn't find
this addressed anywhere else.

I've run mrtg for around 6 years or so, and I've run into my first
difficulty.

I'm graphing amp loads on the various legs of our Liebert series 300 UPS.

I obtained the OIDs by digging through their mib and through snmpwalking.
The OIDs are good, and the data obtained from a manual snmpget is
consistent with the data at the top of the log files.

Here's a sample config:

Target[5_2]: 
.1.3.6.1.4.1.476.1.1.1.1.4.4.1.3.1&.1.3.6.1.4.1.476.1.1.1.1.4.4.1.3.1:[EMAIL 
PROTECTED]:
MaxBytes[5_2]: 1000
Title[5_2]: Liebert DC UPS1 - Amps on Leg 1
YLegend[5_2]: Amps
ShortLegend[5_2]: A
Legend1[5_2]: Amps
Legend2[5_2]: Amps
Legend3[5_2]: Max Amps
Legend4[5_2]: Max Amps
PageTop[5_2]: <H1>Liebert DC UPS1 - Amps on Leg 1</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>Liebert DC UPS1 in Frederick NOC</TD></TR>
   <TR><TD>Description:</TD><TD>Liebert UPS Leg 1 Amp Usage </TD></TR>
 </TABLE>

And here's the top of the log file:

1047508264 2 2
1047508264 0 0 0 0
1047508244 0 0 0 0
(etc)

Yet, when I look at the graphs, I get nothing but 0s regardless.

Any ideas why? Could it have something to do with the fact that regardless
of the number of samples (been running for a few hours now), the only line
with any data is the top of the log? And if so, what could be causing
that?

Thanks,
Andy

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Andy Dills                              301-682-9972
Xecunet, LLC                            www.xecu.net
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dialup * Webhosting * E-Commerce * High-Speed Access



--
Unsubscribe mailto:[EMAIL PROTECTED]
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


Confidentiality Notice: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information.  Any unauthorized review, use,
disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message.

--
Unsubscribe mailto:[EMAIL PROTECTED]
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

Reply via email to