Link to home
Start Free TrialLog in
Avatar of jonathanduane2010
jonathanduane2010

asked on

MRTG cfgmaker - generating cfg file correctly

hi guys,

I am trying to install mrtg on ubuntu for monitoring traffic coming on our router

and when i run the command indexmaker --output=/var/www/mrtg/index.html /etc/mrtg/mrtg.cfg

i get the following error

Error: did not find any matching data in cfg file

here is whats is in the cfg file

(i have attached)
photo.JPG
Avatar of noci
noci

does the cfg file reflect your hardware to be monitorred? [ id. are you requesting exiting data]
Do you have the snmp autorisations to request that data?

Those are the most likely causes...  

It might already been wrong with cfgmaker, cfgmaker should have told you which graphs it added. If it didn't tell you, most probable cause is authorizations.
Is that all that in the cfg file?  It looks a little empty to me.

Did the cfgmaker command run correctly?  To me it looks almost as if you ran it, but if failed due to an error, say like the wrong community string or some other issue trying to talk to the IP address you have listed.
Avatar of jonathanduane2010

ASKER

really?? Can you run it on all interfaces??

the community string is just public?

maybe its a rights issue??
if it is an authorisation issue, what is the best way to check??
When you ran the cfgmaker command what messages did you get back?

Can you post the whole config file that you are trying to run indexmaker against?
i get this error back

Error: did not find any matching data in cfg file

and i have attached the cfg file in my first post?
The message "Error: did not find any matching data in cfg file" is from the indexmaker command.  We need to see the messages from the cfgmaker command

You attached a screen shot of a the config file, not the actual file.

If that is the full config file, then the cfgmaker command did not work and created "null/empty" config file.  indexmaker will fail and generate the message you received when run against a null/empty file.
my snmpd.conf  just has

rocummunity public
ah ok...

I will run that now,.....
ok here is the error i get when i run the cfgmaker
configerror.JPG
ASKER CERTIFIED SOLUTION
Avatar of giltjr
giltjr
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
217.115.123.23 is the address of the machine i am trying to run the cfgmaker command on.

can i disable the firewall and test it, and if so how??
I can't tell you how, as I have no clue to many things I would need to know in order to do it.

Such as,

Is there a firewall (or more than one) between your host and 217.115.123.23?
Is there a firewall running on your host?
Is there a firewall running on 217.115.123.23?
What types of systems and firewalls are they?
What bad things may happen if you disable the firewall, such as services that are hosted on 217.115.123.23 may stop working or a unauthorized person could gain access to 217.115.123.23.
ok i have disabled the firewall, can i run the cfgmaker on eth1 or eth2?? if i wanted to monitor all traffic coming in and out of the network cards of the machine?

the background is that

i have a linux machine acting as a router with two network cards

one being 217.115.123.23

and its this machine that i am trying to install and configure mrtg
why not logon to 217.115.123.23
and run cfgmaker on localhost...
and publish the results using a webserver based on the output of indexmaker..?

no special fiddling needed with firewalls...
log on to it how?? i am loggged into it, i have the machine here in front of me??
The use of an Public IP implies a remote server in the current NAT riddled internet.
A lot of problems are prevented if the localhost address is used because no firewalls are crossed this way. (use of address 127.0.0.1 & interface lo0 are taken care of in host based firewalls as most systems can trust connections from itself.).

Also many server implementation have more trust in access from localhost.

With logging on i mean getting access to the command line on the system itself, if you can access the console then use that, use ssh otherwise.

If the cfgmake fails with error along being unable to access public@localhost you need to verify the snmp server setup. (configuration for snmp most probably is in /etc/snmp/snmpd.conf )
Can you run cfgmaker against the "inside" IP address?  The non-public one?