[mrtg] Re: Explicit OID not populating logs correctly

Koelstra, J. (Jan) JKoelstra at MINSZW.NL
Fri Sep 16 11:55:47 MEST 2005


Joshua,

The counter you are trying to graph seems to change little in time.
By default MRTG calculates the rate per second.
The result for slow changing values is graphs with only zeroes.
If you want to graph slow changing counters you can add an options line with 'perminute' or even 'perhour' in your config file. These options wil show the rate per minute or per hour in your graphs.
For very slow changing values you can also graph the values as they are polled. To do this you have to use 'gauge' at the options line.

Hth,

Jan.

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On Behalf Of Joshua Wright
Sent: Friday, September 16, 2005 3:17 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Explicit OID not populating logs correctly


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to log data from an explicit OID to track the number of packets that fail transmission on a wireless access point.

Using Net-SNMP, I'm able to extract information from this counter type and I see the value increment:

$ snmpget -c public 172.16.0.92 .1.2.840.10036.2.2.1.3.1 iso.2.840.10036.2.2.1.3.1 = Counter32: 83484 $ sleep 120 $ snmpget -c public 172.16.0.92 .1.2.840.10036.2.2.1.3.1 iso.2.840.10036.2.2.1.3.1 = Counter32: 83488

I put together a simple mrtg.cfg to collect information about this MIB
entry:

$ cat mrtg.cfg
WorkDir: /home/jwright/failedtx
Target[172.16.0.92_1]: .1.2.840.10036.2.2.1.3.1&PseudoZero:public at 172.16.0.92
Title[172.16.0.92_1]: dot11FailedCount - excessive retries that failed to TX
MaxBytes[172.16.0.92_1]: 4096000

And I am able to reference this file and collect the MIB data:

$ /usr/local/mrtg-2/bin/mrtg mrtg.cfg
Rateup WARNING: /usr/local/mrtg-2/bin/rateup could not read the primary log file for 172.16.0.92_1 Rateup WARNING: /usr/local/mrtg-2/bin/rateup The backup log file for 172.16.0.92_1 was invalid as well Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't remove 172.16.0.92_1.old updating log file Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't rename 172.16.0.92_1.log to 172.16.0.92_1.old updating log file $ /usr/local/mrtg-2/bin/mrtg mrtg.cfg Rateup WARNING: /usr/local/mrtg-2/bin/rateup Can't remove 172.16.0.92_1.old updating log file $ /usr/local/mrtg-2/bin/mrtg mrtg.cfg $


My problem is that the log file doesn't appear to be collecting the information properly.  Each time I run "mrtg", the .log file is updated, but no previous statistics are collected.  For example:

$ head 172.16.0.92_1.log
1126832868 83493 0
1126832868 0 0 0 0
1126832866 0 0 0 0
1126832700 0 0 0 0
1126832400 0 0 0 0
1126832100 0 0 0 0
1126831800 0 0 0 0
1126831500 0 0 0 0
1126831200 0 0 0 0
1126830900 0 0 0 0
$ sleep 300 ; /usr/local/mrtg-2/bin/mrtg mrtg.cfg
$ /usr/local/mrtg-2/bin/mrtg mrtg.cfg
$ head 172.16.0.92_1.log
1126833288 83505 0
1126833288 0 0 0 0
1126833277 0 0 0 0
1126833000 0 0 0 0
1126832700 0 0 0 0
1126832400 0 0 0 0
1126832100 0 0 0 0
1126831800 0 0 0 0
1126831500 0 0 0 0
1126831200 0 0 0 0
$

For some reason, mrtg is replacing the previous logging entry instead of retaining the historical statistics.  Did I not configure my mrtg.cfg file appropriately to collect information from this MIB entry?

Thanks!

- -Josh
- --
- -Joshua Wright
jwright at hasborg.com

2005-2006 pgpkey: http://802.11ninja.net/pgpkey.htm
fingerprint: F00E 7A42 8375 0C55 964F E5A4 4D2F 22F6 3658 A4BF

Today I stumbled across the world's largest hotspot.  The SSID is "linksys". -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDKhz9TS8i9jZYpL8RAu83AKDIPI25jkM33I3AwZ4puPJIxLgJcACeME46
wNEWHocsyYL3FLo+9yJ2mXs=
=iH+s
-----END PGP SIGNATURE-----

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


_________________________________________________________

Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig overkomen van de informatie in deze e-mail.
Aan dit bericht kunnen geen rechten worden ontleend.

Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van dit bericht te vernietigen.
_________________________________________________________

The ministry of Social Affairs and Employment is not liable for any incorrect or incomplete transmission of the information in this e-mail or for any delay in its receipt.
This message shall not constitute any obligations.

This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and delete its content.
_________________________________________________________

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list