Edited Configuration File Once I finish editing the
Edited Configuration File Once I finish editing the basic MRTG config to my taste to monitor a network interface, it generally looks like this: ………………………………………………………………………………………. WorkDir: /usr/local/share/apache/htdocs/mrtg Target[webserver1.EthernetTraffic]: 3:GetLostLoser@localhost MaxBytes[webserver1.EthernetTraffic]: 1250000 Title[webserver1.EthernetTraffic]: Ethernet Interface PageTop[webserver1.EthernetTraffic]:
Traffic Throughput for Ethernet Interface
Call the Helpdesk if you have any questions ………………………………………………………………………………………. You’ll notice that, first of all, the label has been changed to something meaningful. Also, the HTML under PageTop has been trimmed considerably, because I know perfectly well where the system is, after all, and who to talk to about it. If these pages are intended for management, I might add a couple of lines of HTML after PageTop describing what the machine does or how to interpret the data. You can list any number of machines or interfaces in one configuration file. Set up things appropriately for your system. Testing MRTG When you have a configuration you like, test it by running MRTG by hand a few times: ………………………………………………………………………………………. # mrtg mrtg.cfg ………………………………………………………………………………………. MRTG will warn you that it can’t find log files the first two times, after which it should run silently. This alone is not a problem. However, if you get an error that MRTG cannot reach a target, the Target entry is misconfigured, and either the community name, hostname, or MIB is wrong. Check those, correct the problem, and try again. Once MRTG runs silently, add it to root’s cron to run every five minutes. (You can also set up a specific user to run MRTG, but there’s no real need for this.) MRTG will send its output to the directory you specify in WorkDir in the configuration file. If you followed the previous example, when you look at http://
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Unix Web Hosting services