does mrtg need username and pw to begin monitoring

Unanswered Question
Feb 11th, 2008
User Badges:

Im trying to set up mrtg to run on my windows desktop for some experimenting..

I have downloaded mrtg and pearl..

and have entered the following command

C:\mrtg\bin>perl cfgmaker [email protected] --global "WorkDir: c:\mrtgh

ml" --output server.cfg

however, per the tutorial, it says i should get an ouput of port inventory..after just that one command..but i dont see how mrtg can access the router without a username and i missing something?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Joe Clarke Mon, 02/11/2008 - 14:03
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

MRTG uses SNMP to query the router. That "public@" indicates the SNMP community string that will be used. public is the typical example read-only community string, but configuring it on a production device is a very bad idea for security reasons.

Therefore, check your device's config for "snmp-server community" commands. You will need to use one of those community strings in order for MRTG to be able to successfully query your device.

If you do not have SNMP configured (it is not on by default), see for the steps you will need to take.

nygenxny123 Tue, 02/12/2008 - 06:10
User Badges:

I confirmed that we do indeed have a

snmp-server community public RO

statement in our router config..

however, does mrtg need a username and pw

to initially log into the router?.

Joe Clarke Tue, 02/12/2008 - 08:20
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

No, MRTG uses SNMP to gather its information.


This Discussion