Virtuozzo VPS Linux MRTG configuration

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

Above command will only look for (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 and MaxBytes 1250000 as shown in bold letter as follows:

Target[rh3_2]: 2:public@rh3:
SetEnv[rh3_2]: MRTG_INT_IP="" MRTG_INT_DESCR="venet0"
MaxBytes[rh3_2]: 1250000
Title[rh3_2]: Traffic Analysis for 2 --

Traffic Analysis for 2 --

System: in Linux (RH3_UP2), EV1 IDC2,TX.
Maintainer: Vivek G Gite <>
Description: venet0
ifType: Other (1)
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.

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

2 comments… add one
  • Amalrajstalin Mar 5, 2007 @ 6:25

    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.

  • Joel Carter Feb 5, 2009 @ 21:17

    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!

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.