[mrtg] Re: Large values returned by perl scripts

Brett Marler brett at asroma.homeip.net
Sat Jan 25 06:59:14 MET 2003


Mark,

> I am calling a Perl script as one of the sources to get the amount of
> used and free disk space in bytes on a Red Hat 8 server. Unfortunately
> it seems that the numbers returned are to large to be graphed by MRTG /
> rateup and I am just getting a graph with a line along the zero line.
> 
> Is there anything I can do to make the combination of MRTG and rateup
> graph this data correctly? I haven't found anything in the documentation
> that sounded like it would help me with this dilemma.
Have you tried using the OID's for used and free space under Linux?

--
.1.3.6.1.4.1.2021.9.1.7.1  (disk free)
.1.3.6.1.4.1.2021.9.1.8.1  (disk used)

pc-linux% snmpwalk -v1 -c private 127.0.0.1 .1.3.6.1.4.1.2021.9.1.7.1
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 249252
pc-linux% snmpwalk -v1 -c private 127.0.0.1 .1.3.6.1.4.1.2021.9.1.8.1
UCD-SNMP-MIB::dskUsed.1 = INTEGER: 1479788
--

I graph "disk total vs disk used", which works fine. My Target looks like:

--
Target[disk]: .1.3.6.1.4.1.2021.9.1.6.1&.1.3.6.1.4.1.2021.9.1.8.1:community at 1.2
.3.4
--

If you think MRTG is having issues graphing the data your Perl script is 
fetching, what do you have "MaxBytes" set to? It may be the values being 
returned are higher than MaxBytes and are thereforre being cutoff. Just a 
thought.


Regards,
Brett.



-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: application/pgp-signature


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