Re: [Vserver] snmp & vserver

From: John Alberts <john.m.alberts_at_gmail.com>
Date: Mon 04 Dec 2006 - 20:13:51 GMT
Message-ID: <a23b6f900612041213p30dbaa1cj6c59d267b4d169e7@mail.gmail.com>

Is this what the new option 'Remap Source IP Address' is for?
The description reads:
CONFIG_VSERVER_REMAP_SADDR:
  
   This allows to remap the source IP address of 'local'
   connections from 127.0.0.1 to the first assigned
   guest IP.
  
   Symbol: VSERVER_REMAP_SADDR [=n]
   Prompt: Remap Source IP Address
   Defined at kernel/vserver/Kconfig:50
   Depends on: EXPERIMENTAL && !VSERVER_LEGACY

Is there a disadvantage to turning this on? It seems that this would
even be a nice default config option for vserver.

- John

On 12/3/06, Herbert Poetzl <herbert@13thfloor.at> wrote:
> On Sun, Dec 03, 2006 at 09:31:14PM -0500, Adrien Laurent wrote:
> > Hi,
> >
> > With the setup:
> > host: centos 4 - 2.6.18.1-vs2.0.2.2-rc4 - eth0(192.168.0.1) -
> > lo(127.0.0.1) -> runs snmp
> > guest: centos 4 - eth0(192.168.0.2) -> runs snmp & cacti
>
> you probably do not want to run snmp inside a guest,
> instead you want to monitor the guest from the host
> (which saves you tasks and provides more information)
>
> > I'm trying to graph the usage of my vserver using snmp and cacti; I
> > face the following problems:
> >
> > - Cacti default setup ping 127.0.0.1 which is not activated by default
> > on my vserver guest, is it possible to enable lo(127.0.0.1) on a guest
> > ?
>
> it should 'ping' localhost, if it actually 'pings'
> 127.0.0.1, it is broken, otherwise just adjust
> /etc/hosts to list the first assigned ip as localhost
>
> > - When I graph the snmp from guest I get the ip & data of the host
> > 192.168.0.1
>
> probably because you actually connect to the snmp
> running on the host ...
>
> > - Do you know an easy way on how I could get network stat per ip for
> > all the vservers ?
>
> use an iptables accounting rule to get 'on wire'
> statistics for single ips (or groups of ips)
>
> HTH,
> Herbert
>
> > Thanks a lot for any help !
> >
> >
> > Adrien
> >
> >
> >
> > --
> > Adrien Laurent
> > Chief Information Officer
> > (514) 284-2020 x 202
> > adrien@modulis.ca
> > www.modulis.ca
> >
> > Technical questions? support@modulis.ca
> > _______________________________________________
> > Vserver mailing list
> > Vserver@list.linux-vserver.org
> > http://list.linux-vserver.org/mailman/listinfo/vserver
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
>

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Mon Dec 4 20:15:00 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 04 Dec 2006 - 20:15:05 GMT by hypermail 2.1.8