Comments on How to Install and Configure MRTG on Ubuntu 18.04
MRTG also known as "Multi Router Traffic Grapher" is a free and open source tool to monitor the traffic load on network links. In this tutorial, we will learn how to install MRTG on Ubuntu 18.04 server.
5 Comment(s)
Comments
I get to the line:
sudo cfgmaker public@localhost > /etc/mrtg.cfgbash: /etc/mrtg.cfg: Permission denied
I do not have a user public on my machine. Should I?Does it need to be set up in a particular way?
the public is for your SNMP daemon. You will need to ensure snmpd is installed and running. You will also have to put an entry into cron so that mrtg can update the entries.
I get to
sudo indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.htmland get error message:
ERROR: did not find any matching data in cfg file
also make some changes on the
mrtg.conf files by replacing yourdomain.com to mydomain.local and port 80 to 82
and get err_connection_reffused message
Also try with port *:80 with Apache2 Ubuntu Default Page reply.
Everything works up until you need to make the index file. At that point, when I use that command "sudo indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html" I get an error back that says ERROR: did not find any matching data in cfg file.
It will not let me make the index page. What am I missing here?
I found the error in your documentation. Before you run the indexmaker, you need to first edit the snmpd.conf file and uncomment the line that says "#rocommunity public localhost" so it looks like "rocommunity public localhost"