This is bit tricky. But it is possible to configure MRTG for Virtuozzo VPS Linux. Please see MRTG configuration howto if you are new to MRTG. After running command:
# cfgmaker --global 'WorkDir: /var/www/html/mymrtg' --output /etc/mrtg/mymrtg1.cfg public@rh3.cyberciti.org
Above command will only look for 127.0.0.1 (both lo and venet0)as rest of real ips are alias to venet0 interface. You need to open mrtg file /etc/mrtg/mymrtg.cfg and edit it by hand:
1) Comment out lines (as follows)
2) Add IP addrss 127.0.0.1 and MaxBytes 1250000 as shown in bold letter as follows:
Target[rh3_2]: 2:public@rh3:
SetEnv[rh3_2]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="venet0"
MaxBytes[rh3_2]: 1250000
Title[rh3_2]: Traffic Analysis for 2 -- rh3.cyberciti.org
PageTop[rh3_2]:Traffic Analysis for 2 -- rh3.cyberciti.org
System: rh3.cyberciti.org in Linux (RH3_UP2), EV1 IDC2,TX. Maintainer: Vivek G Gite <vivek@nixcraft.com> Description: venet0 ifType: Other (1) ifName: Max Speed: 1250.0 kBytes/s
Make sure you have properly configured snmp server. After that run mrtg as usual.
For more information see my Linux MRTG+SNMP step-by-step tutorial.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop











{ 2 comments… read them below or add one }
Dear Sir,
Thank you for mrtg installation guide it is working tremendously in my network we have three connection that is eth0, eth1 & eth2
My problem is the graphs are showing network traffic by Bytes per second. I need the out graph should be bites per second. Please advice me what should I do? It is very need ful to me please help.
It seems like there is some data missing from the above post….. There is nothing under the “1) Comment out lines (as follows)” section. Would really like to get mrtg working under my VPS!