[mrtg] Re: Large values returned by perl scripts
brett at asroma.homeip.net
Sat Jan 25 06:59:14 MET 2003
> 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?
.126.96.36.199.4.1.2021.9.1.7.1 (disk free)
.188.8.131.52.4.1.2021.9.1.8.1 (disk used)
pc-linux% snmpwalk -v1 -c private 127.0.0.1 .184.108.40.206.4.1.2021.9.1.7.1
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 249252
pc-linux% snmpwalk -v1 -c private 127.0.0.1 .220.127.116.11.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]: .18.104.22.168.4.1.2021.9.1.6.1&.22.214.171.124.4.1.2021.9.1.8.1:community at 1.2
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
-- 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
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
More information about the mrtg