<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Aug 8, 2008 at 3:47 PM, Karanbir Singh <span dir="ltr"><<a href="mailto:mail-lists@karan.org">mail-lists@karan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Rudi Ahlers wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Sure, that's for XEN, but it's not very effective. I need graph the<br>
traffic for each VM, not the vif - the vifs tend to change on a reboot,<br>
and also reset with the stats.<br>
<br>
How can I graph the traffic over a perioud of time, for any given IP<br>
address?<br>
<br>
Cacti works well, for switches & routers, but I can't get Cacti to graph<br>
an individual VM on the server.<br>
<br>
On Fri, Aug 8, 2008 at 3:34 PM, Karanbir Singh <<a href="mailto:mail-lists@karan.org" target="_blank">mail-lists@karan.org</a><br></div><div class="Ih2E3d">
<mailto:<a href="mailto:mail-lists@karan.org" target="_blank">mail-lists@karan.org</a>>> wrote:<br>
<br>
    Rudi Ahlers wrote:<br>
<br>
        Hi all<br>
<br>
        Can someone please tell me how to monitor each VM's traffic on a<br>
        CentOS<br>
        5.2 server, running either Xen or OpenVZ? I need to bill my<br>
        users for<br>
        the traffic they use, and would like to have a traffic usage<br>
        graph for<br>
        each Xen / OpenVZ Virtual Machine on the server.<br>
<br>
<br>
    if you look at how xen sets up the Vif interfaces, you will note<br>
    that its quite trivial. just watch the vif as you would an eth<br>
    interface.<br>
</div></blockquote>
<br>
You've been on the list long enough to consider trimming your posts and not top posting.<br>
<br>
also, you seem confused about what a virtual interface is. take a look at virsh and see how you can bring up and take down a xen domu while getting info on what interfaces its using and how.<div><div></div><div class="Wj3C7c">
<br>
_______________________________________________<br>
</div></div></blockquote></div>Yes, but that's not going to help me. Sure, I can SSH into the server and see the usage with ifconfig, or virsh as you say - but I can't allow clients to login into the main server. <br>
<br>I need a way for a client to login to a PHP / MySQL based sytem, which can show them traffic graphs for their VPS's, and OpenVZ works different from Xen, so I can't even rely on the Xen stuff. <br><br>I'm looking for something similar to Cacti / MRTG - but something that can graph traffic for each IP / VM on a server<br clear="all">
<br>-- <br><br>Kind Regards<br>Rudi Ahlers<br>
</div>