Problem with MRTG - SNMP Polling - 2.8.26

My server appears to be polling my MT (2.8.26), but it is not pulling any bandwidth data. In other words, my MRTG graphs does not show any data, but the stats continually show an updated time.

I am using the same basic config file on my other MT’s and they are working just fine: 2.8.19, 2.8.2, and 2.8.21.

Has anybody else experienced this problem with 2.8.26? Or any other suggestions?


This is what I get:

Traffic Analysis for 1 – GLP
System: GLP
Maintainer: tech@ilero.com
Description: Public1
ifType: ethernetCsmacd (6)
ifName: Public1
Max Speed: 10.0 Mbits/s
Ip: xxx.xxx.xxx.xxx


The statistics were last updated Saturday, 23 July 2005 at 20:00,
at which time ‘GLewisProp’ had been up for 58 days, 6:01:46.

`Daily’ Graph (5 Minute Average)
Max In: 0.0 b/s (0.0%) Average In: 0.0 b/s (0.0%) Current In: 0.0 b/s (0.0%)
Max Out: 0.0 b/s (0.0%) Average Out: 0.0 b/s (0.0%) Current Out: 0.0 b/s (0.0%)

Please post the relevant section of your MRTG config file. There are many possible reasons why you are getting a zero return.

Have you tried polling the same OID/router with another SNMP manager to see what return you get?

I do not have any other SNMP program to try it out. I am currently polling (3) other MikroTiks the same way. Here is my config file (which is the same template that works for all of the other routers):

Created by

./cfgmaker --global ‘workdir: /home/httpd/mrtg’ --global ‘options[_]: bits,growright’ --output /home/mrtg/cfg/mrtg.cfg GLP@xx.xx.xx.xx


\

Global Config Options

for UNIX

WorkDir: /home/http/mrtg

or for NT

WorkDir: c:\mrtgdata

Global Defaults

to get bits instead of bytes and graphs growing to the right

Options[_]: growright, bits

EnableIPv6: no
workdir: /home/httpd/mrtg
options[_]: bits,growright

######################################################################

System: GLP

Description: router

Contact: tech@ilero.com

Location:

######################################################################

\

Interface 1 >> Descr: ‘Public1’ | Name: ‘Public1’ | Ip: ‘xx.xx.xx.xx’ | Eth: ‘00-0c-42-02-2c-d6’

Target[xx.xx.xx.xx_1]: 1:GLP@xx.xx.xx.xx:
SetEnv[xx.xx.xx.xx_1]: MRTG_INT_IP=“xx.xx.xx.xx” MRTG_INT_DESCR=“Public1”
MaxBytes[xx.xx.xx.xx_1]: 1250000
Title[xx.xx.xx.xx_1]: Traffic Analysis for 1 – GLP
PageTop[xx.xx.xx.xx_1]:

Traffic Analysis for 1 – GLP

System: GLP
Maintainer:
Description:Public1
ifType: ethernetCsmacd (6)
ifName: Public1
Max Speed: 10.0 Mbits/s
Ip: xx.xx.xx.xx

Try increasing max bytes to at least 100000000 (100MB). Numbers above max bytes that are returned by the device are ignored by MRTG. If this works, reduce to the actual maximum data rate that this interface will see.

You can download NET-SNMP from:

http://net-snmp.sourceforge.net/

This gives you Windows/*nix command line tools snmpget, snmpwalk etc. These are very useful for seeing what output, if any, a device is giving in response to SNMP queries.

Try:

c:>snmpget -v 1 -c community_name ip_address oid

I would suggest using a cfg file that queries specific OIDs instead of using cfgmaker to create the cfg. This only seems to work half the time. To find the oid for the parameter you want to get in MT, go to the appropriate menu level and type print oid. So, to get bytes in and out for interface named Public1:

/interface print

This will assign and list numbers to each interface. Then

/interface print oid

This will list the OIDs for each interface. You want the OIDs for Public1 bytes in and bytes out. Then use your existing cfg file as a template and change it to look something like this:

Target[xx.xx.xx.xx_1]: oid_for_bytes_in&oid_for_bytes_out:community_name@ip_address:
SetEnv[xx.xx.xx.xx_1]: MRTG_INT_IP=“xx.xx.xx.xx” MRTG_INT_DESCR=“Public1”
MaxBytes[xx.xx.xx.xx_1]: 125000000
Title[xx.xx.xx.xx_1]: Traffic Analysis for 1 – GLP
PageTop[xx.xx.xx.xx_1]:

Traffic Analysis for 1 – GLP

'Hope that helps.

Guy - Thanks a lot for your feedback. I was able to get MRTG working using your suggestion of entering the specific OIDs. I really appreciate it…

Your welcome!

I have tried and installed PRTG to monitor my MT router and it works great! doesnt take too much configuration. Try it!

Robert S.